class MAGES::MeshDeformations::Triangular2PlaneCutter

Component that performs a cut on a Triangular2PlaneCuttable using two planes defined by the cutter’s position and local rotations. Can be used for both local and remote cutting, depending on whether the targetCuttable is assigned or not.

class Triangular2PlaneCutter: public MonoBehaviour
{
public:
    // fields

    Triangular2PlaneCuttable targetCuttable;
    Vector3 plane1LocalRotation = Vector3.zero;
    Vector3 plane2LocalRotation = new Vector3(0f, 0f, 90f);
    float visualizationSize = 0.25f;

    // methods

    Plane GetPlane1World();
    Plane GetPlane2World();
    bool PerformCut();
};