Operation::ExportDefectNetwork

Exports the defect network of a mesh to analyze non-supersolid edges

A mesh is not supersolid if it has (resolved) edges that are not topologically supersolid, i.e. where not every edge segment is matched by another primitive that has this segment in opposite direction. An edge segment with a mismatch is called a defect edge. The integer defect denotes how often the segment needs to be added in opposite direction to make it supersolid.

This network is internally used as the basis for Operation::Heal.

The result is stored in a TypedBlob with BlobType::DefectNetwork and DataSlot::PositionsF32/SegmentsIndexed/Defects.

Signature

class Operation:
    // Exports the defect network of a mesh to analyze non-supersolid edges
    fun exportDefectNetwork(
        mesh: MeshOperand,
    ) -> TypedBlob