VisualEntityMesh Members

Microsoft Robotics Class Reference

The VisualEntityMesh type exposes the following members.

Constructors

  Name Description
Public method VisualEntityMesh(GraphicsDevice, BoxShapeProperties)
Create a box mesh from BoxShapeProperties
Public method VisualEntityMesh(GraphicsDevice, CapsuleShapeProperties)
Create a capsule using CapsuleShapeProperties
Public method VisualEntityMesh(GraphicsDevice, HeightFieldShapeProperties)
Create a terrain mesh using HeightFieldShapeProperties
Public method VisualEntityMesh(GraphicsDevice, SphereShapeProperties)
Create a sphere mesh from SphereShapeProperties
Public method VisualEntityMesh(GraphicsDevice, WheelShapeProperties)
Create a torus using WheelShapeProperties
Public method VisualEntityMesh(GraphicsDevice, Stream, Boolean)
Create mesh based on file data
Public method VisualEntityMesh(GraphicsDevice, Single, Single)
Create a Sprite Mesh with the specified width and height
Public method VisualEntityMesh(GraphicsDevice, HeightFieldShapeProperties, Int32, Int32, Int32, Int32, Int32)
Create an advanced terrain mesh, with Level Of Detail (LOD) support using HeightFieldShapeProperties

Methods

  Name Description
Public method ComputeBoundingVolume
Compute bounding sphere
Public methodStatic member CreateConvexMeshShape
Generates a convex physics collision mesh using the geometry data from the supplied graphics mesh
Public methodStatic member CreateTriangleMeshShape
Generates a physics collision mesh using the geometry data from the supplied graphics mesh
Public method Dispose
Frees resources
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method Intersect
Intersects a ray with this mesh and returns a list of intersection records
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns short name for property editor
(Overrides Object. . :: . .ToString() () () ().)
Public method UpdateNormals
Simulation internal use. Not implemented

Properties

  Name Description
Public property AllowInstancing
Defaults to true to give the capability for this mesh to use batched instancing. Under the scenerio you don't want this or are noticing artifacts, set this to false. Generally, you shouldn't need to modifify this value
Public property BoundingBox
Bounding Box, calculated once on mesh creation
Public property BoundingSphere
Bounding sphere, calculated once on mesh creation
Public property FaceCount
Number of triangle faces
Public property IndexBuffer
Index buffer
Public property IndexBufferData
Array of index buffer data
Public property PhysicsIndexBufferData
Array of index buffer data where each index batch is not zero-based
Public property RenderingMaterials
Materials
Public property RequiresTexture
True if this VisualEntityMesh uses one or more textures
Public property SimplifiedIndexBufferData
Array of simplified index buffer data
Public property SimplifiedVertexBufferData
Array of simplified vertex buffer data
Public property TextureFilenames
Textures Filenames
Public property Textures
Textures
Public property TransformedVertexBufferData
Array of vertex buffer data transformed by its model transform
Public property VertexBuffer
Vertex buffer
Public property VertexBufferData
Array of vertex buffer data
Public property VertexCount
Number of vertices
Public property VertexDeclaration
Vertex declaration

See Also

VisualEntityMesh Class

Microsoft.Robotics.Simulation.Engine Namespace