Class MeshGeometry3D
- Namespace
- HelixToolkit.SharpDX
- Assembly
- HelixToolkit.SharpDX.dll
[Serializable]
[DataContract]
public class MeshGeometry3D : Geometry3D, INotifyPropertyChanged, IGUID
- Inheritance
-
MeshGeometry3D
- Implements
- Derived
- Inherited Members
- Extension Methods
Fields
EnableSmallTriangleHitTestScaling
Used to enable small triangle hit test. It uses SmallTriangleEdgeLengthSquare to determine if triangle is too small. If it is too small, scale up the triangle before hit test.
public static bool EnableSmallTriangleHitTestScaling
Field Value
SmallTriangleEdgeLengthSquare
Used to determine if the triangle is small. Small triangle is defined as any edge length square is smaller than SmallTriangleEdgeLengthSquare.
public static float SmallTriangleEdgeLengthSquare
Field Value
SmallTriangleHitTestScaling
Used to scale up small triangle during hit test.
public static float SmallTriangleHitTestScaling
Field Value
Properties
BiTangents
Does not raise property changed event
[DataMember]
public Vector3Collection? BiTangents { get; set; }
Property Value
Normals
Does not raise property changed event
[DataMember]
public Vector3Collection? Normals { get; set; }
Property Value
ReturnMultipleHitsOnHitTest
Callers should set this property to true before calling HitTest if the callers need multiple hits throughout the geometry. This is useful when the geometry is cut by a plane.
public bool ReturnMultipleHitsOnHitTest { get; set; }
Property Value
Tangents
Does not raise property changed event
[DataMember]
public Vector3Collection? Tangents { get; set; }
Property Value
TextureCoordinates
Texture Coordinates
[DataMember]
public Vector2Collection? TextureCoordinates { get; set; }
Property Value
TriangleIndices
A proxy member for Indices
[IgnoreDataMember]
public IntCollection? TriangleIndices { get; set; }
Property Value
Triangles
public IEnumerable<Geometry3D.Triangle> Triangles { get; }
Property Value
Methods
CreateOctree(OctreeBuildParameter)
Override to create different octree in subclasses.
protected override IOctreeBasic? CreateOctree(OctreeBuildParameter parameter)
Parameters
parameterOctreeBuildParameter
Returns
HitTest(HitTestContext?, Matrix4x4, ref List<HitTestResult>, object?)
public virtual bool HitTest(HitTestContext? context, Matrix4x4 modelMatrix, ref List<HitTestResult> hits, object? originalSource)
Parameters
contextHitTestContextmodelMatrixMatrix4x4hitsList<HitTestResult>originalSourceobject
Returns
Merge(params MeshGeometry3D[])
Merge meshes into one
public static MeshGeometry3D Merge(params MeshGeometry3D[] meshes)
Parameters
meshesMeshGeometry3D[]
Returns
OnAssignTo(Geometry3D)
protected override void OnAssignTo(Geometry3D target)
Parameters
targetGeometry3D
OnClearAllGeometryData()
protected override void OnClearAllGeometryData()
UpdateNormals()
public void UpdateNormals()
UpdateTextureCoordinates()
Call to manually update texture coordinate buffer.
public void UpdateTextureCoordinates()