public class BioMeshRenderer extends MeshRenderer
Modifier and Type | Field and Description |
---|---|
private javajs.util.A4 |
aa |
private static int |
ABSOLUTE_MIN_MESH_SIZE |
private BioShapeRenderer |
bsr |
private BS |
bsRenderMesh |
private BS |
bsTemp |
private javajs.util.P3[] |
controlHermites |
private boolean |
doCap0 |
private boolean |
doCap1 |
private javajs.util.M3 |
mat |
private Mesh[] |
meshes |
private boolean[] |
meshReady |
private static int |
MIN_MESH_RENDER_SIZE |
private static int |
MODE_ELLIPTICAL |
private static int |
MODE_FLAT |
private static int |
MODE_NONELLIPTICAL |
private static int |
MODE_TUBE |
private javajs.util.V3 |
norm |
private javajs.util.V3 |
norml |
private javajs.util.P3 |
pt |
private javajs.util.P3 |
pt1 |
private javajs.util.P3 |
ptNext |
private javajs.util.P3 |
ptPrev |
private javajs.util.P3[] |
radiusHermites |
private javajs.util.V3 |
wing |
private javajs.util.V3 |
wing1 |
private javajs.util.V3[] |
wingHermites |
private javajs.util.V3 |
wingT |
antialias, bsPolygons, bsPolygonsToExport, diameter, exportPass, forceShowTriangles, frontOnly, haveBsDisplay, imageFontScaling, isGhostPass, isShell, isTranslucent, isTranslucentInherit, latticeOffset, mesh, meshSlabValue, needTranslucent, normixes, p3Screens, pt1f, pt1i, pt2f, pt2i, pt3i, renderLow, scalePixelsPerMicron, screens, selectedPolyOnly, thePlane, transformedVectors, vertexCount, vertices, volumeRender, width
colix, exportType, g3d, isExport, mad, ms, myVisibilityFlag, shape, shapeID, tm, vwr
Constructor and Description |
---|
BioMeshRenderer() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
adjustCartoonSeamNormals(int i,
int nPer)
Matches normals for adjacent mesh sections to create a seamless overall
mesh.
|
boolean |
check(boolean doCap0,
boolean doCap1) |
private boolean |
checkDiameter(int d) |
private boolean |
createMesh(int i,
int madBeg,
int madMid,
int madEnd,
float aspectRatio,
int tension)
Cartoon meshes are triangulated objects.
|
void |
initBS() |
void |
initialize(ShapeRenderer bsr,
BioShape bioShape,
int monomerCount) |
protected boolean |
render() |
private void |
renderBioMesh(Mesh mesh) |
void |
renderMeshes() |
void |
setFancyArrowHead(int i) |
void |
setFancyConic(int i,
int tension) |
void |
setFancyRibbon(int i) |
checkFront, drawEdge, drawTriangle, exportSurface, isPolygonDisplayable, isVisibleNormix, render2, render2b, renderMesh2, renderPoints, renderTriangles, setColix
initRenderer, isVisibleForMe, renderShape, setup, setViewerG3dShapeID
private Mesh[] meshes
private boolean[] meshReady
private BS bsRenderMesh
private BioShapeRenderer bsr
private boolean doCap0
private boolean doCap1
private static final int ABSOLUTE_MIN_MESH_SIZE
private static final int MIN_MESH_RENDER_SIZE
private javajs.util.P3[] controlHermites
private javajs.util.V3[] wingHermites
private javajs.util.P3[] radiusHermites
private javajs.util.V3 norm
private final javajs.util.V3 wing
private final javajs.util.V3 wing1
private final javajs.util.V3 wingT
private final javajs.util.A4 aa
private final javajs.util.P3 pt
private final javajs.util.P3 pt1
private final javajs.util.P3 ptPrev
private final javajs.util.P3 ptNext
private final javajs.util.M3 mat
private static final int MODE_TUBE
private static final int MODE_FLAT
private static final int MODE_ELLIPTICAL
private static final int MODE_NONELLIPTICAL
private BS bsTemp
private final javajs.util.V3 norml
protected boolean render()
render
in class ShapeRenderer
public void initialize(ShapeRenderer bsr, BioShape bioShape, int monomerCount)
private void renderBioMesh(Mesh mesh)
public void setFancyRibbon(int i)
public void setFancyConic(int i, int tension)
public void setFancyArrowHead(int i)
private boolean createMesh(int i, int madBeg, int madMid, int madEnd, float aspectRatio, int tension)
i
- madBeg
- madMid
- madEnd
- aspectRatio
- tension
- void adjustCartoonSeamNormals(int i, int nPer)
i
- nPer
- public void renderMeshes()
public void initBS()
public boolean check(boolean doCap0, boolean doCap1)
private boolean checkDiameter(int d)