C# Class WhiteCore.Physics.Meshing.Meshmerizer

Inheritance: IMesher
Afficher le fichier Open project: WhiteCoreSim/WhiteCore-Dev

Méthodes publiques

Méthode Description
CreateMesh ( string primName, PrimitiveBaseShape primShape, System.Vector3 size, float lod, bool isPhysical, bool shouldCache ) : IMesh
GetBoundingHull ( System.Vector3 size ) : List

temporary prototype code - please do not use until the interface has been finalized!

GetConvexHulls ( System.Vector3 size ) : List>

temporary prototype code - please do not use until the interface has been finalized!

Meshmerizer ( IConfigSource config, IRegistryCore registry ) : System

Private Methods

Méthode Description
AddSubMesh ( OSDMap subMeshMap, System.Vector3 size, List coords, List faces ) : void

Add a submesh to an existing list of coords and faces.

CreateBoundingBoxMesh ( System.Vector3 size, ulong key ) : WhiteCore.Physics.Meshing.Mesh

Creates a simple bounding box mesh for a complex input mesh

CreateMeshFromPrimMesher ( string primName, PrimitiveBaseShape primShape, System.Vector3 size, float lod, ulong key ) : WhiteCore.Physics.Meshing.Mesh

Create a physics mesh from data that comes with the prim. The actual data used depends on the prim type.

CreateSimpleBoxMesh ( float minX, float maxX, float minY, float maxY, float minZ, float maxZ, ulong key ) : WhiteCore.Physics.Meshing.Mesh

creates a simple box mesh of the specified size. This mesh is of very low vertex count and may be useful as a backup proxy when level of detail is not needed or when more complex meshes fail for some reason

DecompressOsd ( byte meshBytes ) : OSD

decompresses a gzipped OSD object

GenerateFromPrimMeshData ( string primName, PrimitiveBaseShape primShape, System.Vector3 size, ulong key ) : WhiteCore.Physics.Meshing.Mesh

Generate a mesh from the mesh data the accompanies a prim.

GenerateFromPrimSculptData ( string primName, PrimitiveBaseShape primShape, System.Vector3 size, float lod, ulong key ) : WhiteCore.Physics.Meshing.Mesh

Generate a mesh from the sculpt data the accompanies a prim.

GenerateFromPrimShapeData ( string primName, PrimitiveBaseShape primShape, System.Vector3 size, float lod, ulong key ) : WhiteCore.Physics.Meshing.Mesh

Generate a mesh from the shape data the accompanies a prim.

GetLevelOfDetail ( float lod ) : int

Gets the level of detail for circles.

ReportPrimError ( string message, string primName, PrimMesh primMesh ) : void

Method Details

CreateMesh() public méthode

public CreateMesh ( string primName, PrimitiveBaseShape primShape, System.Vector3 size, float lod, bool isPhysical, bool shouldCache ) : IMesh
primName string
primShape PrimitiveBaseShape
size System.Vector3
lod float
isPhysical bool
shouldCache bool
Résultat IMesh

GetBoundingHull() public méthode

temporary prototype code - please do not use until the interface has been finalized!
public GetBoundingHull ( System.Vector3 size ) : List
size System.Vector3 value to scale the hull points by
Résultat List

GetConvexHulls() public méthode

temporary prototype code - please do not use until the interface has been finalized!
public GetConvexHulls ( System.Vector3 size ) : List>
size System.Vector3 value to scale the hull points by
Résultat List>

Meshmerizer() public méthode

public Meshmerizer ( IConfigSource config, IRegistryCore registry ) : System
config IConfigSource
registry IRegistryCore
Résultat System