JavaFX 3D : Is FXML support for TriangleMesh available or planned?
Milan Kubec
milan.kubec at oracle.com
Mon Apr 8 04:32:11 PDT 2013
Hello,
this functionality is not yet implemented in FXML.
Milan
Dne 8.4.2013 11:08, August Lammersdorf, InteractiveMesh napsal(a):
> FXMLLoader loads following MeshView element correctly with an 'empty'
> TriangleMesh.
>
> How do I add elements for the primitive arrays of points, texCoords,
> etc.?
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <?import javafx.scene.paint.*?>
> <?import javafx.scene.shape.*?>
>
> <MeshView>
> <material>
> <PhongMaterial>
> <diffuseColor>
> <Color red="1.0" green="0.0" blue="0.0"/>
> </diffuseColor>
> </PhongMaterial>
> </material>
> <mesh>
> <TriangleMesh>
> <!-- TODO float[] points -->
> <!-- TODO float[] texCoords -->
> <!-- TODO int[] faces -->
> <!-- TODO int[] faceSmoothingGroups -->
> </TriangleMesh>
> </mesh>
> </MeshView>
>
> Thanks, August
More information about the openjfx-dev
mailing list