Click or drag to resize
AB4D logo

SlicerGetProjectedIntersectionPolylines(MeshGeometry3D, Boolean, Rect) Method

GetProjectedIntersectionPolylines can be called after any Slice method is called and returns an array of 2D intersection polygon lines that lie on the plane. The polygon is defined by connected points. When the closed polygon cannot be created, then the HasBrokenIntersectionPolylines is set to true. In this case you need to call GetProjectedIntersectionPoints(MeshGeometry3D, Boolean, Rect), GetProjectedIntersectionPoints(MeshGeometry3D, Boolean) to get individual intersection lines.

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 12.0.9484.2048
Syntax
C#
public List<Point>[] GetProjectedIntersectionPolylines(
	MeshGeometry3D mesh,
	bool useMeshTransform,
	out Rect bounds
)

Parameters

mesh  MeshGeometry3D
MeshGeometry3D
useMeshTransform  Boolean
when true, the returned points are transformed by the mesh transformation (defined by parent Model3D and Visual3D transformations).
bounds  Rect
bounding box of the returned intersection points

Return Value

ListPoint
An array of List of Point items or null when no intersection points exist
See Also