01-24-2012, 11:46 PM
Each UIElement3D from Ab3d.PowerToys has a Model property.
You can get the Positions, TriangleIndices, TextureCoordinates and Normals from the MeshGeometry3D - see the following code (if Cone1 is the name of the ConeUIElement3D):
GeometryModel3D geometryModel3D = (GeometryModel3D)Cone1.Model;
MeshGeometry3D mesh = (MeshGeometry3D)geometryModel3D.Geometry;
You can get the Positions, TriangleIndices, TextureCoordinates and Normals from the MeshGeometry3D - see the following code (if Cone1 is the name of the ConeUIElement3D):
GeometryModel3D geometryModel3D = (GeometryModel3D)Cone1.Model;
MeshGeometry3D mesh = (MeshGeometry3D)geometryModel3D.Geometry;
Andrej Benedik

