Click or drag to resize
AB4D logo

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.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
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

ListListPoint3D
List of Lists of Point3D structs that represents polygons or null when PolygonIndices are not defined.
See Also