|
MeshUtilsGetPolygons Method |
GetPolygons method returns a List of Lists of Point3D structs that represents polygons (each polygon is defined by a List of Point3D structs) that are created from the
PolygonIndicesProperty DependencyProperty on the MeshGeometry3D object.
When PolygonIndices are not defined, then null is returned.
See remarks in
PolygonIndicesProperty for more info.
Namespace: Ab3d.UtilitiesAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public static List<List<Point3D>> GetPolygons(
MeshGeometry3D meshGeometry3D,
bool addClosePosition = false,
Transform3D transform = null
)
Parameters
- meshGeometry3D MeshGeometry3D
- MeshGeometry3D
- addClosePosition Boolean (Optional)
- when true, then the starting point of a polygon is added as end point on each polygon (default value is false)
- transform Transform3D (Optional)
- Transform3D that can be added to each line position (null by default)
Return Value
ListListPoint3DList of Lists of Point3D structs that represents polygons or null when PolygonIndices are not defined.
See Also