Click or drag to resize
Ab4d.SharpEngine logo

SlicerGetProjectedIntersectionPolylines(StandardMesh, Boolean) 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(StandardMesh, Boolean, Vector2, Vector2), GetProjectedIntersectionPoints(StandardMesh, Boolean) to get individual intersection lines.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public List<Vector2[]>? GetProjectedIntersectionPolylines(
	StandardMesh mesh,
	bool useMeshTransform
)

Parameters

mesh  StandardMesh
StandardMesh
useMeshTransform  Boolean
when true, the returned points are transformed by the mesh transformation (defined by parent SceneNode and Visual3D transformations).

Return Value

ListVector2
An array of List of Vector2 items or null when no intersection points exist
See Also