C# Class Universe.Physics.PrimMesher.PrimMesh

Afficher le fichier Open project: Virtual-Universe/Virtual-Universe Class Usage Examples

Méthodes publiques

Свойство Type Description
calcVertexNormals bool
coords List
dimpleBegin float
dimpleEnd float
errorMessage string
faces List
holeSizeX float
holeSizeY float
normals List
numPrimFaces int
pathCutBegin float
pathCutEnd float
radius float
revolutions float
skew float
sphereMode bool
stepsPerRevolution int
taperX float
taperY float
topShearX float
topShearY float
twistBegin int
twistEnd int
viewerFaces List
viewerMode bool

Méthodes publiques

Méthode Description
AddPos ( float x, float y, float z ) : void

Adds a value to each XYZ vertex coordinate in the mesh

AddRot ( Quat q ) : void

Rotates the mesh

CalcNormals ( ) : void

Calculate surface normals for all of the faces in the list of faces in this mesh

Copy ( ) : PrimMesh

Duplicates a PrimMesh object. All object properties are copied by value, including lists.

DumpRaw ( string path, string name, string title ) : void

Dumps the mesh to a Blender compatible "Raw" format file

Extrude ( PathType pathType ) : void

Extrudes a profile along a path.

ExtrudeCircular ( ) : void

DEPRICATED - use Extrude(PathType.Circular) instead Extrude a profile into a circular path prim mesh. Used for prim types torus, tube, and ring.

ExtrudeLinear ( ) : void

DEPRICATED - use Extrude(PathType.Linear) instead Extrudes a profile along a straight line path. Used for prim types box, cylinder, and prism.

GetVertexIndexer ( ) : VertexIndexer
ParamsToDisplayString ( ) : string

Human readable string representation of the parameters used to create a mesh.

PrimMesh ( int sides, float profileStart, float profileEnd, float hollow, int hollowSides ) : System

Constructs a PrimMesh object and creates the profile for extrusion.

Scale ( float x, float y, float z ) : void

Scales the mesh

SurfaceNormal ( int faceIndex ) : Coord

Calculate the surface normal for a face in the list of faces

Private Methods

Méthode Description
SurfaceNormal ( Coord c1, Coord c2, Coord c3 ) : Coord
SurfaceNormal ( Face face ) : Coord

Method Details

AddPos() public méthode

Adds a value to each XYZ vertex coordinate in the mesh
public AddPos ( float x, float y, float z ) : void
x float
y float
z float
Résultat void

AddRot() public méthode

Rotates the mesh
public AddRot ( Quat q ) : void
q Quat
Résultat void

CalcNormals() public méthode

Calculate surface normals for all of the faces in the list of faces in this mesh
public CalcNormals ( ) : void
Résultat void

Copy() public méthode

Duplicates a PrimMesh object. All object properties are copied by value, including lists.
public Copy ( ) : PrimMesh
Résultat PrimMesh

DumpRaw() public méthode

Dumps the mesh to a Blender compatible "Raw" format file
public DumpRaw ( string path, string name, string title ) : void
path string
name string
title string
Résultat void

Extrude() public méthode

Extrudes a profile along a path.
public Extrude ( PathType pathType ) : void
pathType PathType
Résultat void

ExtrudeCircular() public méthode

DEPRICATED - use Extrude(PathType.Circular) instead Extrude a profile into a circular path prim mesh. Used for prim types torus, tube, and ring.
public ExtrudeCircular ( ) : void
Résultat void

ExtrudeLinear() public méthode

DEPRICATED - use Extrude(PathType.Linear) instead Extrudes a profile along a straight line path. Used for prim types box, cylinder, and prism.
public ExtrudeLinear ( ) : void
Résultat void

GetVertexIndexer() public méthode

public GetVertexIndexer ( ) : VertexIndexer
Résultat VertexIndexer

ParamsToDisplayString() public méthode

Human readable string representation of the parameters used to create a mesh.
public ParamsToDisplayString ( ) : string
Résultat string

PrimMesh() public méthode

Constructs a PrimMesh object and creates the profile for extrusion.
public PrimMesh ( int sides, float profileStart, float profileEnd, float hollow, int hollowSides ) : System
sides int
profileStart float
profileEnd float
hollow float
hollowSides int
Résultat System

Scale() public méthode

Scales the mesh
public Scale ( float x, float y, float z ) : void
x float
y float
z float
Résultat void

SurfaceNormal() public méthode

Calculate the surface normal for a face in the list of faces
public SurfaceNormal ( int faceIndex ) : Coord
faceIndex int
Résultat Coord

Property Details

calcVertexNormals public_oe property

public bool calcVertexNormals
Résultat bool

coords public_oe property

public List coords
Résultat List

dimpleBegin public_oe property

public float dimpleBegin
Résultat float

dimpleEnd public_oe property

public float dimpleEnd
Résultat float

errorMessage public_oe property

public string errorMessage
Résultat string

faces public_oe property

public List faces
Résultat List

holeSizeX public_oe property

public float holeSizeX
Résultat float

holeSizeY public_oe property

public float holeSizeY
Résultat float

normals public_oe property

public List normals
Résultat List

numPrimFaces public_oe property

public int numPrimFaces
Résultat int

pathCutBegin public_oe property

public float pathCutBegin
Résultat float

pathCutEnd public_oe property

public float pathCutEnd
Résultat float

radius public_oe property

public float radius
Résultat float

revolutions public_oe property

public float revolutions
Résultat float

skew public_oe property

public float skew
Résultat float

sphereMode public_oe property

public bool sphereMode
Résultat bool

stepsPerRevolution public_oe property

public int stepsPerRevolution
Résultat int

taperX public_oe property

public float taperX
Résultat float

taperY public_oe property

public float taperY
Résultat float

topShearX public_oe property

public float topShearX
Résultat float

topShearY public_oe property

public float topShearY
Résultat float

twistBegin public_oe property

public int twistBegin
Résultat int

twistEnd public_oe property

public int twistEnd
Résultat int

viewerFaces public_oe property

public List viewerFaces
Résultat List

viewerMode public_oe property

public bool viewerMode
Résultat bool