Click or drag to resize
Ab4d.SharpEngine logo

SlicerGetProjectedIntersectionPoints(StandardMesh, Boolean, Vector2, Vector2) Method

GetProjectedIntersectionPoints can be called after any Slice method is called and returns the 2D intersection points that lie on the plane. Each intersection line is defined by two consecutive points.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public Vector2[]? GetProjectedIntersectionPoints(
	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

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