Vixen
dd8b0a81
csharp
public readonly record struct KnifeCut

One free cut: a face, and the two points on its boundary the cut runs between.

Read the guide page for this →

Remarks

⚠ Points and not parameters, because the caller is a gesture rather than an algorithm. What a knife has is where the pointer was, snapped to an edge or a midpoint; asking it for "corner two, seven tenths along" would be asking it to resolve that twice and then disagree with Knife about the answer.

Fields and properties (3)

  • public int Face

    Which face.

  • public Vector3 From

    Where the cut enters, on that face's boundary.

  • public Vector3 To

    Where it leaves.

Methods (1)

  • public KnifeCut(int Face, Vector3 From, Vector3 To)

    One free cut: a face, and the two points on its boundary the cut runs between.

Used by (4)

  • MeshKnifeTestsVixen.Geometry.Tests
  • MeshOperationsVixen.Geometry
  • BlockoutGeometryVixen.Editor.Blockout
  • BlockoutKnifeVixen.Editor.Blockout