class MAGES::MeshDeformations::SceneGraph::SuturingTriangleGhostMarker¶
Overview¶
Keeps a marker centered on the observed puncturable triangles. More…
class SuturingTriangleGhostMarker: public MonoBehaviour
{
public:
// methods
void Initialize(Puncturable puncturableDetector);
static bool TryCalculateCenter(
Puncturable puncturableDetector,
out Vector3 center
);
};
Detailed Documentation¶
Keeps a marker centered on the observed puncturable triangles.
Methods¶
void Initialize(Puncturable puncturableDetector)
Initializes the marker for the specified puncturable detector.
Parameters:
puncturableDetector |
The detector whose observed triangles define the marker position. |
static bool TryCalculateCenter(
Puncturable puncturableDetector,
out Vector3 center
)
Tries to calculate the average center of the detector’s observed triangles.
Parameters:
puncturableDetector |
The detector to sample. |
center |
The calculated world-space center. |
Returns:
true if at least one observed triangle was sampled.