Click or drag to resize
Ab4d.SharpEngine logo

SlicerGetProjectedIntersectionPolylines(StandardMesh, Boolean, Vector2, Vector2) 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,
	out Vector2 boundsMin,
	out Vector2 boundsMax
)

Parameters

mesh  StandardMesh
StandardMesh
useMeshTransform  Boolean
when true, the returned points are transformed by the mesh transformation (defined by parent SceneNode and Visual3D transformations).
boundsMin  Vector2
out: minimum Vector2 coordinates for the bounding box of the returned intersection points
boundsMax  Vector2
out: maximum Vector2 coordinates for the bounding box of the returned intersection points

Return Value

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