C# 클래스 WhiteCore.Physics.Meshing.Meshmerizer

상속: IMesher
파일 보기 프로젝트 열기: WhiteCoreSim/WhiteCore-Dev

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

CreateMesh() 공개 메소드

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
리턴 IMesh

GetBoundingHull() 공개 메소드

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
리턴 List

GetConvexHulls() 공개 메소드

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
리턴 List>

Meshmerizer() 공개 메소드

public Meshmerizer ( IConfigSource config, IRegistryCore registry ) : System
config IConfigSource
registry IRegistryCore
리턴 System