public class PwTex2Cubes extends PjWorkshop
Modifier and Type | Field and Description |
---|---|
static int |
EDGE_INTERSECTION |
static int |
FACE_INTERSECTION |
static int |
INSIDE_TETRAHEDRON |
PgPolygonSet |
m_polygonSet
A Polygon Set to visualize the grid edges found in the texture data.
|
PgPolygonSet |
m_polygonSetCleaned
Another Polygon Set to visualize the grid edges found in the texture data.
|
static int |
VERTEX_GRID_POINT |
HAS_BOUNDARY_PANEL, HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS
MODE_BUG, MODE_STANDARD, MODE_VALIDATE
Constructor and Description |
---|
PwTex2Cubes()
Construct a new PwTex2Cubes.
|
PwTex2Cubes(PgTetraSet geom)
Construct a new PwTex2Cubes from a given geometry.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Get the name of the workshop.
|
static void |
guessElements(PgElementSet elementSet,
PgPolygonSet polygonSet)
Add elements to elementSet - these should build the level surfaces.
|
void |
init()
Initializes the workshop.
|
static PgElementSet |
makeIsoSurface(PgTetraSet geom,
PdVector[][] tex,
double textureIsoValue) |
static PgElementSet |
makeIsoSurface(PgTetraSet geom,
PiVector[][] tex,
int quantization,
double textureIsoValue) |
static PiVector[][] |
quantizeTexture(PdVector[][] tex,
int quantization)
Quantize given texture coordinates to integer textures.
|
void |
readMatchingsFromField()
Import frame rotation information from Vector Field "matching".
|
PgElementSet |
remesh()
Creates a cube set from the texture coordinates.
|
static PgElementSet |
remesh(PgTetraSet geom,
PdVector[][] tex,
boolean showOuterPlanes) |
static PgElementSet |
remesh(PgTetraSet geom,
PiVector[][] coords,
int quant)
Creates a cube set from the texture coordinates.
|
PgElementSet |
remesh2()
Compute an elementSet containing the level surfaces of a 3D texture on a PgTetraSet.
|
void |
setDisplay(PvDisplayIf display)
Set the active display when this workshop was launched.
|
void |
setGeometry(PgGeometry geom)
Set the geometry.
|
void |
setMatching(PiVector[][] matching)
Set rotation information for transition between tetrahedra and their neighbours.
|
void |
setTextures(PdVector[][] tex)
Set double textures and quantize to integer by a default quantization.
|
void |
setTextures(PiVector[][] coords,
int quantization)
Set quantized texture coordinates and quantization factor.
|
void |
shiftTextures()
Shift all texture coordinates by half quantization.
|
boolean |
update(java.lang.Object event)
Update the class whenever a child has changed.
|
cancel, close, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, isModal, isStandalone, ok, removeGeometry, reset, setDisplays, setModal, setMode, setStandalone, setViewer
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, toString, updatePanels
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFather, setParent
public PgPolygonSet m_polygonSet
public PgPolygonSet m_polygonSetCleaned
public static final int VERTEX_GRID_POINT
public static final int EDGE_INTERSECTION
public static final int FACE_INTERSECTION
public static final int INSIDE_TETRAHEDRON
public PwTex2Cubes()
public PwTex2Cubes(PgTetraSet geom)
geom
- Geometry to work on.public void init()
init
in class PjWorkshop
public void setGeometry(PgGeometry geom)
setGeometry
in interface PjWorkshopIf
setGeometry
in class PjWorkshop
geom
- the workshop modifies this geometry.public void setDisplay(PvDisplayIf display)
setDisplay
in interface PjWorkshopIf
setDisplay
in class PjWorkshop
public boolean update(java.lang.Object event)
update
in interface PsUpdateIf
update
in class PjWorkshop
event
- sender of this update.PsObject.setParent(PsUpdateIf)
,
PsObject.getFather()
,
PsObject.addUpdateListener(PsUpdateIf)
public java.lang.String getName()
getName
in interface PsUpdateIf
getName
in class PsObject
public void setTextures(PiVector[][] coords, int quantization)
public void shiftTextures()
public static PgElementSet remesh(PgTetraSet geom, PiVector[][] coords, int quant)
public static PgElementSet remesh(PgTetraSet geom, PdVector[][] tex, boolean showOuterPlanes)
public PgElementSet remesh()
public static PgElementSet makeIsoSurface(PgTetraSet geom, PdVector[][] tex, double textureIsoValue)
public static PgElementSet makeIsoSurface(PgTetraSet geom, PiVector[][] tex, int quantization, double textureIsoValue)
public void setMatching(PiVector[][] matching)
public static PiVector[][] quantizeTexture(PdVector[][] tex, int quantization)
public void setTextures(PdVector[][] tex)
public void readMatchingsFromField()
public PgElementSet remesh2()
public static void guessElements(PgElementSet elementSet, PgPolygonSet polygonSet)
"