C# Class Universe.Physics.PrimMesher.SculptMesh

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

Méthodes publiques

Свойство Type Description
coords List
faces List
normals List
uvs List
viewerFaces List

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

Copy ( ) : SculptMesh

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

DumpRaw ( string path, string name, string title ) : void
Scale ( float x, float y, float z ) : void
SculptMesh ( Bitmap sculptBitmap, SculptType sculptType, int lod, bool viewerMode ) : System
SculptMesh ( Bitmap sculptBitmap, SculptType sculptType, int lod, bool viewerMode, bool mirror, bool invert ) : System
SculptMesh ( List rows, SculptType sculptType, bool viewerMode, bool mirror, bool invert ) : System
SculptMesh ( SculptMesh sm ) : System
SculptMesh ( float zMap, float xBegin, float xEnd, float yBegin, float yEnd, bool viewerMode ) : System

** Experimental ** May disappear from future versions ** not recommended for use in applications Construct a sculpt mesh from a 2D array of floats

SculptMesh ( string fileName, int sculptType, int lod, int viewerMode, int mirror, int invert ) : System
SculptMeshFromFile ( string fileName, SculptType sculptType, int lod, bool viewerMode ) : SculptMesh
_SculptMesh ( Bitmap sculptBitmap, SculptType sculptType, int lod, bool viewerMode, bool mirror, bool invert ) : void
_SculptMesh ( List rows, SculptType sculptType, bool viewerMode, bool mirror, bool invert ) : void
calcVertexNormals ( SculptType sculptType, int xSize, int ySize ) : void

Private Methods

Méthode Description
bitmap2Coords ( Bitmap bitmap, int scale, bool mirror ) : List>

converts a bitmap to a list of lists of coords, while scaling the image. the scaling is done in floating point so as to allow for reduced vertex position quantization as the position will be averaged between pixel values. this routine will likely fail if the bitmap width and height are not powers of 2.

bitmap2CoordsSampled ( Bitmap bitmap, int scale, bool mirror ) : List>

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

Copy() public méthode

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

DumpRaw() public méthode

public DumpRaw ( string path, string name, string title ) : void
path string
name string
title string
Résultat void

Scale() public méthode

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

SculptMesh() public méthode

public SculptMesh ( Bitmap sculptBitmap, SculptType sculptType, int lod, bool viewerMode ) : System
sculptBitmap System.Drawing.Bitmap
sculptType SculptType
lod int
viewerMode bool
Résultat System

SculptMesh() public méthode

public SculptMesh ( Bitmap sculptBitmap, SculptType sculptType, int lod, bool viewerMode, bool mirror, bool invert ) : System
sculptBitmap System.Drawing.Bitmap
sculptType SculptType
lod int
viewerMode bool
mirror bool
invert bool
Résultat System

SculptMesh() public méthode

public SculptMesh ( List rows, SculptType sculptType, bool viewerMode, bool mirror, bool invert ) : System
rows List
sculptType SculptType
viewerMode bool
mirror bool
invert bool
Résultat System

SculptMesh() public méthode

public SculptMesh ( SculptMesh sm ) : System
sm SculptMesh
Résultat System

SculptMesh() public méthode

** Experimental ** May disappear from future versions ** not recommended for use in applications Construct a sculpt mesh from a 2D array of floats
public SculptMesh ( float zMap, float xBegin, float xEnd, float yBegin, float yEnd, bool viewerMode ) : System
zMap float
xBegin float
xEnd float
yBegin float
yEnd float
viewerMode bool
Résultat System

SculptMesh() public méthode

public SculptMesh ( string fileName, int sculptType, int lod, int viewerMode, int mirror, int invert ) : System
fileName string
sculptType int
lod int
viewerMode int
mirror int
invert int
Résultat System

SculptMeshFromFile() public méthode

public SculptMeshFromFile ( string fileName, SculptType sculptType, int lod, bool viewerMode ) : SculptMesh
fileName string
sculptType SculptType
lod int
viewerMode bool
Résultat SculptMesh

_SculptMesh() public méthode

public _SculptMesh ( Bitmap sculptBitmap, SculptType sculptType, int lod, bool viewerMode, bool mirror, bool invert ) : void
sculptBitmap System.Drawing.Bitmap
sculptType SculptType
lod int
viewerMode bool
mirror bool
invert bool
Résultat void

_SculptMesh() public méthode

public _SculptMesh ( List rows, SculptType sculptType, bool viewerMode, bool mirror, bool invert ) : void
rows List
sculptType SculptType
viewerMode bool
mirror bool
invert bool
Résultat void

calcVertexNormals() public méthode

public calcVertexNormals ( SculptType sculptType, int xSize, int ySize ) : void
sculptType SculptType
xSize int
ySize int
Résultat void

Property Details

coords public_oe property

public List coords
Résultat List

faces public_oe property

public List faces
Résultat List

normals public_oe property

public List normals
Résultat List

uvs public_oe property

public List uvs
Résultat List

viewerFaces public_oe property

public List viewerFaces
Résultat List