HE_Mesh2014  2.0.11
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
wblut.hemesh.HEC_FromFacelist Class Reference
+ Inheritance diagram for wblut.hemesh.HEC_FromFacelist:

Public Member Functions

 HEC_FromFacelist ()
 
HEC_FromFacelist setVertices (final WB_Coord[] vs)
 
HEC_FromFacelist setVertices (final Collection<?extends WB_Coord > vs)
 
HEC_FromFacelist setUVW (final Collection<?extends WB_Coord > vs)
 
HEC_FromFacelist setUVW (final WB_Coord[] vs)
 
HEC_FromFacelist setUVW (final double[][] vs)
 
HEC_FromFacelist setVertices (final WB_Coord[] vs, final boolean copy)
 
HEC_FromFacelist setVertices (final double[][] vs)
 
HEC_FromFacelist setVertices (final double[] vs)
 
HEC_FromFacelist setVertices (final float[][] vs)
 
HEC_FromFacelist setVertices (final float[] vs)
 
HEC_FromFacelist setFaces (final int[][] fs)
 
HEC_FromFacelist setFaces (final int[] fs)
 
HEC_FromFacelist setFaces (final List< int[]> fs)
 
HEC_FromFacelist setFaceTextureIds (final int[] fts)
 
HEC_FromFacelist setDuplicate (final boolean b)
 
HEC_FromFacelist setCheckNormals (final boolean b)
 
- Public Member Functions inherited from wblut.hemesh.HEC_Creator
 HEC_Creator ()
 
HEC_Creator setCenter (final double x, final double y, final double z)
 
HEC_Creator setScale (final double s)
 
HEC_Creator setCenter (final WB_Coord c)
 
HEC_Creator setZAngle (final double a)
 
HEC_Creator setZAxis (final double x, final double y, final double z)
 
HEC_Creator setZAxis (final double p0x, final double p0y, final double p0z, final double p1x, final double p1y, final double p1z)
 
HEC_Creator setZAxis (final WB_Coord p)
 
HEC_Creator setZAxis (final WB_Coord p0, final WB_Coord p1)
 
HEC_Creator setToModelview (final PApplet home)
 
HEC_Creator setToWorldview ()
 
HEC_Creator setManifoldCheck (final boolean b)
 
HEC_Creator setOverride (final boolean b)
 
final HE_Mesh create ()
 
HE_Mesh apply (final HE_Mesh mesh)
 
HE_Mesh apply (final HE_Selection sel)
 
- Public Member Functions inherited from wblut.hemesh.HE_Machine
abstract HE_Mesh apply (HE_Mesh mesh)
 
abstract HE_Mesh apply (HE_Selection selection)
 

Protected Member Functions

HE_Mesh createBase ()
 
- Protected Member Functions inherited from wblut.hemesh.HEC_Creator
abstract HE_Mesh createBase ()
 

Private Member Functions

Long ohash (final int u, final int v)
 
int consistentOrder (final int i, final int j, final int[] face, final int[] neighbor)
 

Private Attributes

WB_Coord[] vertices
 
WB_Coord[] uvws
 
int[] faceTextureIds
 
int[][] faces
 
boolean duplicate
 
boolean normalcheck
 

Additional Inherited Members

- Public Attributes inherited from wblut.hemesh.HEC_Creator
PApplet home
 
- Static Public Attributes inherited from wblut.hemesh.HE_Machine
static final WB_ProgressTracker tracker = WB_ProgressTracker.instance()
 
- Protected Attributes inherited from wblut.hemesh.HEC_Creator
WB_Point center
 
double zangle
 
WB_Vector zaxis
 
boolean override
 
boolean toModelview
 
WB_Vector Z
 
boolean manifoldCheck
 
double scale
 

Detailed Description

Creates a new mesh from a list of vertices and faces. Vertices can be duplicate.

Author
Frederik Vanhoutte (W:Blut)

Constructor & Destructor Documentation

wblut.hemesh.HEC_FromFacelist.HEC_FromFacelist ( )

Instantiates a new HEC_Facelist.

Member Function Documentation

int wblut.hemesh.HEC_FromFacelist.consistentOrder ( final int  i,
final int  j,
final int[]  face,
final int[]  neighbor 
)
private

Consistent order.

Parameters
ithe i
jthe j
facethe face
neighborthe neighbor
Returns
the int
HE_Mesh wblut.hemesh.HEC_FromFacelist.createBase ( )
protected
Long wblut.hemesh.HEC_FromFacelist.ohash ( final int  u,
final int  v 
)
private

Ohash.

Parameters
uthe u
vthe v
Returns
the long
HEC_FromFacelist wblut.hemesh.HEC_FromFacelist.setCheckNormals ( final boolean  b)

Check face normals?.

Parameters
btrue/false
Returns
self
HEC_FromFacelist wblut.hemesh.HEC_FromFacelist.setDuplicate ( final boolean  b)

Duplicate vertices in input?.

Parameters
btrue/false
Returns
self
HEC_FromFacelist wblut.hemesh.HEC_FromFacelist.setFaces ( final int  fs[][])

Set faces from 2D array of int: 1st index=face, 2nd=index of vertex.

Parameters
fs2D array of vertex indices
Returns
self
HEC_FromFacelist wblut.hemesh.HEC_FromFacelist.setFaces ( final int[]  fs)

Set faces from 1D array of int: triangles are assumed.

Parameters
fs1D array of vertex indices
Returns
self
HEC_FromFacelist wblut.hemesh.HEC_FromFacelist.setFaces ( final List< int[]>  fs)

Set faces from 2D array of int: 1st index=face, 2nd=index of vertex.

Parameters
fs2D array of vertex indices
Returns
self
HEC_FromFacelist wblut.hemesh.HEC_FromFacelist.setFaceTextureIds ( final int[]  fts)
Parameters
fts
Returns
HEC_FromFacelist wblut.hemesh.HEC_FromFacelist.setUVW ( final Collection<?extends WB_Coord vs)
Parameters
vs
Returns
HEC_FromFacelist wblut.hemesh.HEC_FromFacelist.setUVW ( final WB_Coord[]  vs)
Parameters
vs
Returns
HEC_FromFacelist wblut.hemesh.HEC_FromFacelist.setUVW ( final double  vs[][])
Parameters
vs
Returns
HEC_FromFacelist wblut.hemesh.HEC_FromFacelist.setVertices ( final WB_Coord[]  vs)

Set vertex coordinates from an array of WB_point. No copies are made.

Parameters
vsvertices
Returns
self
HEC_FromFacelist wblut.hemesh.HEC_FromFacelist.setVertices ( final Collection<?extends WB_Coord vs)

Set vertex coordinates from an arraylist of WB_point.

Parameters
vsvertices
Returns
self
HEC_FromFacelist wblut.hemesh.HEC_FromFacelist.setVertices ( final WB_Coord[]  vs,
final boolean  copy 
)

Set vertex coordinates from an array of WB_point.

Parameters
vsvertices
copycopy points?
Returns
self
HEC_FromFacelist wblut.hemesh.HEC_FromFacelist.setVertices ( final double  vs[][])

Set vertex coordinates from a 2D array of double: 1st index=point, 2nd index (0..2) coordinates

Parameters
vsNx3 2D array of coordinates
Returns
self
HEC_FromFacelist wblut.hemesh.HEC_FromFacelist.setVertices ( final double[]  vs)

Set vertex coordinates from array of double: x0, y0 ,z0 ,x1 ,y1 ,z1 ,...

Parameters
vsarray of coordinates
Returns
self
HEC_FromFacelist wblut.hemesh.HEC_FromFacelist.setVertices ( final float  vs[][])

Set vertex coordinates from a 2D array of float: 1st index=point, 2nd index (0..2) coordinates

Parameters
vsNx3 2D array of coordinates
Returns
self
HEC_FromFacelist wblut.hemesh.HEC_FromFacelist.setVertices ( final float[]  vs)

Set vertex coordinates from array of float: x0, y0 ,z0 ,x1 ,y1 ,z1 ,...

Parameters
vsarray of coordinates
Returns
self

Member Data Documentation

boolean wblut.hemesh.HEC_FromFacelist.duplicate
private

Duplicate vertices?.

int [][] wblut.hemesh.HEC_FromFacelist.faces
private

Face indices.

int [] wblut.hemesh.HEC_FromFacelist.faceTextureIds
private
boolean wblut.hemesh.HEC_FromFacelist.normalcheck
private

Check face normal consistency?.

WB_Coord [] wblut.hemesh.HEC_FromFacelist.uvws
private
WB_Coord [] wblut.hemesh.HEC_FromFacelist.vertices
private

Vertices.


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