Class EditMeshSpatial
For use case where we are making local edits to a source mesh. We mask out
removed triangles from base mesh SpatialDS, and raycast new triangles separately.
Inheritance
EditMeshSpatial
Namespace: gs
Assembly: cs.temp.dll.dll
Syntax
public class EditMeshSpatial : ISpatial
Fields
EditMesh
Declaration
Field Value
SourceMesh
Declaration
Field Value
SourceSpatial
Declaration
public DMeshAABBTree3 SourceSpatial
Field Value
Type |
Description |
DMeshAABBTree3 |
|
Properties
SupportsNearestTriangle
Declaration
public bool SupportsNearestTriangle { get; }
Property Value
SupportsPointContainment
Declaration
public bool SupportsPointContainment { get; }
Property Value
SupportsTriangleRayIntersection
Declaration
public bool SupportsTriangleRayIntersection { get; }
Property Value
Methods
AddTriangle(Int32)
Declaration
public void AddTriangle(int tid)
Parameters
Type |
Name |
Description |
Int32 |
tid |
|
FindNearestHitTriangle(Ray3d, Double)
Declaration
public int FindNearestHitTriangle(Ray3d ray, double fMaxDist = 1.7976931348623157E+308)
Parameters
Type |
Name |
Description |
Ray3d |
ray |
|
Double |
fMaxDist |
|
Returns
FindNearestTriangle(Vector3d, Double)
Declaration
public int FindNearestTriangle(Vector3d p, double fMaxDist = 1.7976931348623157E+308)
Parameters
Type |
Name |
Description |
Vector3d |
p |
|
Double |
fMaxDist |
|
Returns
IsInside(Vector3d)
Declaration
public bool IsInside(Vector3d p)
Parameters
Type |
Name |
Description |
Vector3d |
p |
|
Returns
RemoveTriangle(Int32)
Declaration
public void RemoveTriangle(int tid)
Parameters
Type |
Name |
Description |
Int32 |
tid |
|