Class PhysicsTriangleMatcher
Namespace: ValveResourceFormat.IO
Assembly: ValveResourceFormat.dll
Finds the physics triangles that render geometry already covers in order to delete them, because reconstructed solid render meshes regenerate this physics geometry.
csharp
public class PhysicsTriangleMatcherInheritance
object ← PhysicsTriangleMatcher
Constructors
PhysicsTriangleMatcher(MeshDescriptor[])
Initializes a new instance of the class.
csharp
public PhysicsTriangleMatcher(MeshDescriptor[] meshes)Parameters
meshes MeshDescriptor[]
Properties
PhysicsMeshes
Gets the list of physics meshes.
csharp
public List<PhysicsTriangleMatcher.PhysMeshData> PhysicsMeshes { get; }Property Value
List<PhysicsTriangleMatcher.PhysMeshData>
Methods
MarkTrianglesCoveredBy(ReadOnlySpan<Vector3>, ReadOnlySpan<int>, IProgress<string>?)
Marks the physics triangles the given render triangles cover.
csharp
public void MarkTrianglesCoveredBy(ReadOnlySpan<Vector3> positions, ReadOnlySpan<int> indices, IProgress<string>? progressReporter)Parameters
positions ReadOnlySpan<Vector3>
Render mesh positions, in world space.
indices ReadOnlySpan<int>
Three position indices per render triangle.
progressReporter IProgress<string>?
Receives what was covered.

