AB4D Forum

Full Version: ConeUIElement3D Point Set
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Does anyone know if there is a set of Points I can have access to if I have a ConeUIElement3D with say, 10 Segments? I have the BottomCenterPosition and radius etc but wondered if there's a way to get, for instance, the corner points of each segment etc, a lower-level description of the cone?

thanks in advance
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;
Thank you! :)