C# 클래스 PrimMesher.SculptMesh

파일 보기 프로젝트 열기: mcortez/opensim 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
coords List
faces List
normals List
uvs List
viewerFaces List

공개 메소드들

메소드 설명
AddPos ( float x, float y, float z ) : void

Adds a value to each XYZ vertex coordinate in the mesh

AddRot ( PrimMesher.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 recommeneded 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

비공개 메소드들

메소드 설명
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>
calcVertexNormals ( SculptType sculptType, int xSize, int ySize ) : void

메소드 상세

AddPos() 공개 메소드

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

AddRot() 공개 메소드

Rotates the mesh
public AddRot ( PrimMesher.Quat q ) : void
q PrimMesher.Quat
리턴 void

Copy() 공개 메소드

Duplicates a SculptMesh object. All object properties are copied by value, including lists.
public Copy ( ) : SculptMesh
리턴 SculptMesh

DumpRaw() 공개 메소드

public DumpRaw ( String path, String name, String title ) : void
path String
name String
title String
리턴 void

Scale() 공개 메소드

public Scale ( float x, float y, float z ) : void
x float
y float
z float
리턴 void

SculptMesh() 공개 메소드

public SculptMesh ( Bitmap sculptBitmap, SculptType sculptType, int lod, bool viewerMode ) : System
sculptBitmap System.Drawing.Bitmap
sculptType SculptType
lod int
viewerMode bool
리턴 System

SculptMesh() 공개 메소드

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

SculptMesh() 공개 메소드

public SculptMesh ( List rows, SculptType sculptType, bool viewerMode, bool mirror, bool invert ) : System
rows List
sculptType SculptType
viewerMode bool
mirror bool
invert bool
리턴 System

SculptMesh() 공개 메소드

public SculptMesh ( SculptMesh sm ) : System
sm SculptMesh
리턴 System

SculptMesh() 공개 메소드

** Experimental ** May disappear from future versions ** not recommeneded 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
리턴 System

SculptMesh() 공개 메소드

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

SculptMeshFromFile() 공개 메소드

public SculptMeshFromFile ( string fileName, SculptType sculptType, int lod, bool viewerMode ) : SculptMesh
fileName string
sculptType SculptType
lod int
viewerMode bool
리턴 SculptMesh

_SculptMesh() 공개 메소드

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

_SculptMesh() 공개 메소드

public _SculptMesh ( List rows, SculptType sculptType, bool viewerMode, bool mirror, bool invert ) : void
rows List
sculptType SculptType
viewerMode bool
mirror bool
invert bool
리턴 void

프로퍼티 상세

coords 공개적으로 프로퍼티

public List coords
리턴 List

faces 공개적으로 프로퍼티

public List faces
리턴 List

normals 공개적으로 프로퍼티

public List normals
리턴 List

uvs 공개적으로 프로퍼티

public List uvs
리턴 List

viewerFaces 공개적으로 프로퍼티

public List viewerFaces
리턴 List