OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Properties | List of all members
PrimMesher.PrimMesh Class Reference

Public Member Functions

string ParamsToDisplayString ()
 Human readable string representation of the parameters used to create a mesh. More...
 
 PrimMesh (int sides, float profileStart, float profileEnd, float hollow, int hollowSides)
 Constructs a PrimMesh object and creates the profile for extrusion. More...
 
void Extrude (PathType pathType)
 Extrudes a profile along a path. More...
 
void ExtrudeLinear ()
 DEPRICATED - use Extrude(PathType.Linear) instead Extrudes a profile along a straight line path. Used for prim types box, cylinder, and prism. More...
 
void ExtrudeCircular ()
 DEPRICATED - use Extrude(PathType.Circular) instead Extrude a profile into a circular path prim mesh. Used for prim types torus, tube, and ring. More...
 
Coord SurfaceNormal (int faceIndex)
 Calculate the surface normal for a face in the list of faces More...
 
PrimMesh Copy ()
 Duplicates a PrimMesh object. All object properties are copied by value, including lists. More...
 
void CalcNormals ()
 Calculate surface normals for all of the faces in the list of faces in this mesh More...
 
void AddPos (float x, float y, float z)
 Adds a value to each XYZ vertex coordinate in the mesh More...
 
void AddRot (Quat q)
 Rotates the mesh More...
 
void Scale (float x, float y, float z)
 Scales the mesh More...
 
void DumpRaw (String path, String name, String title)
 Dumps the mesh to a Blender compatible "Raw" format file More...
 
string ParamsToDisplayString ()
 Human readable string representation of the parameters used to create a mesh. More...
 
 PrimMesh (int _sides, float _profileStart, float _profileEnd, float _hollow, int _hollowSides)
 Constructs a PrimMesh object and creates the profile for extrusion. More...
 
void Extrude (PathType pathType)
 Extrudes a profile along a path. More...
 
void ExtrudeLinear ()
 DEPRICATED - use Extrude(PathType.Linear) instead Extrudes a profile along a straight line path. Used for prim types box, cylinder, and prism. More...
 
void ExtrudeCircular ()
 DEPRICATED - use Extrude(PathType.Circular) instead Extrude a profile into a circular path prim mesh. Used for prim types torus, tube, and ring. More...
 
Coord SurfaceNormal (int faceIndex)
 Calculate the surface normal for a face in the list of faces More...
 
PrimMesh Copy ()
 Duplicates a PrimMesh object. All object properties are copied by value, including lists. More...
 
void AddPos (float x, float y, float z)
 Adds a value to each XYZ vertex coordinate in the mesh More...
 
void AddRot (Quat q)
 Rotates the mesh More...
 
void Scale (float x, float y, float z)
 Scales the mesh More...
 
void DumpRaw (String path, String name, String title)
 Dumps the mesh to a Blender compatible "Raw" format file More...
 

Public Attributes

string errorMessage = ""
 
List< Coordcoords
 
List< Coordnormals
 
List< Facefaces
 
List< ViewerFaceviewerFaces
 
int twistBegin = 0
 
int twistEnd = 0
 
float topShearX = 0.0f
 
float topShearY = 0.0f
 
float pathCutBegin = 0.0f
 
float pathCutEnd = 1.0f
 
float dimpleBegin = 0.0f
 
float dimpleEnd = 1.0f
 
float skew = 0.0f
 
float holeSizeX = 1.0f
 
float holeSizeY = 0.25f
 
float taperX = 0.0f
 
float taperY = 0.0f
 
float radius = 0.0f
 
float revolutions = 1.0f
 
int stepsPerRevolution = 24
 
bool calcVertexNormals = false
 
bool viewerMode = false
 
bool sphereMode = false
 
int numPrimFaces = 0
 

Properties

int ProfileOuterFaceNumber [get]
 
int ProfileHollowFaceNumber [get]
 
bool HasProfileCut [get, set]
 
bool HasHollow [get]
 

Detailed Description

Definition at line 1448 of file PrimMesher.cs.

Constructor & Destructor Documentation

PrimMesher.PrimMesh.PrimMesh ( int  sides,
float  profileStart,
float  profileEnd,
float  hollow,
int  hollowSides 
)
inline

Constructs a PrimMesh object and creates the profile for extrusion.

Parameters
sides
profileStart
profileEnd
hollow
hollowSides

Definition at line 1558 of file PrimMesher.cs.

Here is the caller graph for this function:

PrimMesher.PrimMesh.PrimMesh ( int  _sides,
float  _profileStart,
float  _profileEnd,
float  _hollow,
int  _hollowSides 
)
inline

Constructs a PrimMesh object and creates the profile for extrusion.

Parameters
sides
profileStart
profileEnd
hollow
hollowSides
sphereMode

Definition at line 1255 of file PrimMesher.cs.

Member Function Documentation

void PrimMesher.PrimMesh.AddPos ( float  x,
float  y,
float  z 
)
inline

Adds a value to each XYZ vertex coordinate in the mesh

Parameters
x
y
z

Definition at line 1628 of file PrimMesher.cs.

void PrimMesher.PrimMesh.AddPos ( float  x,
float  y,
float  z 
)
inline

Adds a value to each XYZ vertex coordinate in the mesh

Parameters
x
y
z

Definition at line 2191 of file PrimMesher.cs.

void PrimMesher.PrimMesh.AddRot ( Quat  q)
inline

Rotates the mesh

Parameters
q

Definition at line 1648 of file PrimMesher.cs.

void PrimMesher.PrimMesh.AddRot ( Quat  q)
inline

Rotates the mesh

Parameters
q

Definition at line 2223 of file PrimMesher.cs.

void PrimMesher.PrimMesh.CalcNormals ( )
inline

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

Definition at line 2158 of file PrimMesher.cs.

PrimMesh PrimMesher.PrimMesh.Copy ( )
inline

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

Returns

Definition at line 1593 of file PrimMesher.cs.

Here is the call graph for this function:

PrimMesh PrimMesher.PrimMesh.Copy ( )
inline

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

Returns

Definition at line 2122 of file PrimMesher.cs.

void PrimMesher.PrimMesh.DumpRaw ( String  path,
String  name,
String  title 
)
inline

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

Parameters
path
name
title

Definition at line 1687 of file PrimMesher.cs.

void PrimMesher.PrimMesh.DumpRaw ( String  path,
String  name,
String  title 
)
inline

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

Parameters
path
name
title

Definition at line 2304 of file PrimMesher.cs.

void PrimMesher.PrimMesh.Extrude ( PathType  pathType)
inline

Extrudes a profile along a path.

Definition at line 1287 of file PrimMesher.cs.

void PrimMesher.PrimMesh.Extrude ( PathType  pathType)
inline

Extrudes a profile along a path.

Definition at line 1590 of file PrimMesher.cs.

Here is the caller graph for this function:

void PrimMesher.PrimMesh.ExtrudeCircular ( )
inline

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

Definition at line 1552 of file PrimMesher.cs.

Here is the call graph for this function:

void PrimMesher.PrimMesh.ExtrudeCircular ( )
inline

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

Definition at line 2081 of file PrimMesher.cs.

void PrimMesher.PrimMesh.ExtrudeLinear ( )
inline

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

Definition at line 1541 of file PrimMesher.cs.

Here is the call graph for this function:

void PrimMesher.PrimMesh.ExtrudeLinear ( )
inline

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

Definition at line 2070 of file PrimMesher.cs.

string PrimMesher.PrimMesh.ParamsToDisplayString ( )
inline

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

Returns

Definition at line 1204 of file PrimMesher.cs.

string PrimMesher.PrimMesh.ParamsToDisplayString ( )
inline

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

Returns

Definition at line 1497 of file PrimMesher.cs.

void PrimMesher.PrimMesh.Scale ( float  x,
float  y,
float  z 
)
inline

Scales the mesh

Parameters
x
y
z

Definition at line 1670 of file PrimMesher.cs.

void PrimMesher.PrimMesh.Scale ( float  x,
float  y,
float  z 
)
inline

Scales the mesh

Parameters
x
y
z

Definition at line 2272 of file PrimMesher.cs.

Coord PrimMesher.PrimMesh.SurfaceNormal ( int  faceIndex)
inline

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

Parameters
faceIndex
Returns

Definition at line 1580 of file PrimMesher.cs.

Coord PrimMesher.PrimMesh.SurfaceNormal ( int  faceIndex)
inline

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

Parameters
faceIndex
Returns

Definition at line 2109 of file PrimMesher.cs.

Member Data Documentation

bool PrimMesher.PrimMesh.calcVertexNormals = false

Definition at line 1486 of file PrimMesher.cs.

List< Coord > PrimMesher.PrimMesh.coords

Definition at line 1453 of file PrimMesher.cs.

float PrimMesher.PrimMesh.dimpleBegin = 0.0f

Definition at line 1470 of file PrimMesher.cs.

float PrimMesher.PrimMesh.dimpleEnd = 1.0f

Definition at line 1471 of file PrimMesher.cs.

string PrimMesher.PrimMesh.errorMessage = ""

Definition at line 1450 of file PrimMesher.cs.

List< Face > PrimMesher.PrimMesh.faces

Definition at line 1455 of file PrimMesher.cs.

float PrimMesher.PrimMesh.holeSizeX = 1.0f

Definition at line 1473 of file PrimMesher.cs.

float PrimMesher.PrimMesh.holeSizeY = 0.25f

Definition at line 1474 of file PrimMesher.cs.

List<Coord> PrimMesher.PrimMesh.normals

Definition at line 1454 of file PrimMesher.cs.

int PrimMesher.PrimMesh.numPrimFaces = 0

Definition at line 1491 of file PrimMesher.cs.

float PrimMesher.PrimMesh.pathCutBegin = 0.0f

Definition at line 1468 of file PrimMesher.cs.

float PrimMesher.PrimMesh.pathCutEnd = 1.0f

Definition at line 1469 of file PrimMesher.cs.

float PrimMesher.PrimMesh.radius = 0.0f

Definition at line 1477 of file PrimMesher.cs.

float PrimMesher.PrimMesh.revolutions = 1.0f

Definition at line 1478 of file PrimMesher.cs.

float PrimMesher.PrimMesh.skew = 0.0f

Definition at line 1472 of file PrimMesher.cs.

bool PrimMesher.PrimMesh.sphereMode = false

Definition at line 1489 of file PrimMesher.cs.

int PrimMesher.PrimMesh.stepsPerRevolution = 24

Definition at line 1479 of file PrimMesher.cs.

float PrimMesher.PrimMesh.taperX = 0.0f

Definition at line 1475 of file PrimMesher.cs.

float PrimMesher.PrimMesh.taperY = 0.0f

Definition at line 1476 of file PrimMesher.cs.

float PrimMesher.PrimMesh.topShearX = 0.0f

Definition at line 1466 of file PrimMesher.cs.

float PrimMesher.PrimMesh.topShearY = 0.0f

Definition at line 1467 of file PrimMesher.cs.

int PrimMesher.PrimMesh.twistBegin = 0

Definition at line 1464 of file PrimMesher.cs.

int PrimMesher.PrimMesh.twistEnd = 0

Definition at line 1465 of file PrimMesher.cs.

List<ViewerFace> PrimMesher.PrimMesh.viewerFaces

Definition at line 1457 of file PrimMesher.cs.

bool PrimMesher.PrimMesh.viewerMode = false

Definition at line 1488 of file PrimMesher.cs.

Property Documentation

bool PrimMesher.PrimMesh.HasHollow
get

Definition at line 1545 of file PrimMesher.cs.

bool PrimMesher.PrimMesh.HasProfileCut
getset

Definition at line 1540 of file PrimMesher.cs.

int PrimMesher.PrimMesh.ProfileHollowFaceNumber
get

Definition at line 1535 of file PrimMesher.cs.

int PrimMesher.PrimMesh.ProfileOuterFaceNumber
get

Definition at line 1530 of file PrimMesher.cs.


The documentation for this class was generated from the following file: