|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scilab.forge.scirenderer.implementation.g2d.motor.AbstractDrawable3DObject
org.scilab.forge.scirenderer.implementation.g2d.motor.ConvexObject
public abstract class ConvexObject
Field Summary |
---|
Fields inherited from class org.scilab.forge.scirenderer.implementation.g2d.motor.AbstractDrawable3DObject |
---|
bbox, colors, degenerated, is2d, marked, marked2, normal, nv0v1, precedence, PRECISION, v0, v0v1, v1, vertices, zindex |
Constructor Summary | |
---|---|
ConvexObject(Vector3d[] vertices,
java.awt.Color[] colors)
Default constructor |
Method Summary | |
---|---|
void |
addArea(ConvexObject co)
|
boolean |
areCoplanar(ConvexObject o)
Test the coplanarity of two objects |
abstract java.util.List<ConvexObject> |
breakObject(ConvexObject o)
Abstract method Break this ConvexObject against the ConvexObject o |
abstract java.util.List<ConvexObject> |
breakObject(Vector4d v)
Abstract method Break this ConvexObject against a plane |
protected int |
check(ConvexObject o,
Vector3d v)
Check the intersection this and o against vector v. |
boolean |
check2DIntersection(ConvexObject o)
Check the intersections of the projection on the xOy-plane of this and o The algorithm is the following: for each edge, determinate the normal vector and project all the points of this and o on the normal. |
boolean |
check2DTrueIntersection(ConvexObject o)
Check the intersections of the projection on the xOy-plane of this and o The algorithm is the following: for each edge, determinate the normal vector and project all the points of this and o on the normal. |
protected void |
drawAreas(java.awt.Graphics2D g2d)
|
int |
isBehind(ConvexObject o)
Check if o is behind this. |
Methods inherited from class org.scilab.forge.scirenderer.implementation.g2d.motor.AbstractDrawable3DObject |
---|
draw, getColorsBarycenter, getNormal, getPrecedence, getProjectedContour, getProjectedPolyLine, getProvidedNormal, is2D, isBehind, isBehind, isDegenerate, isEqual, isGreaterOrEqual, isLowerOrEqual, isMonochromatic, isNanOrInf, isNanOrInf, isNegativeOrNull, isNull, isPlanar, isPositiveOrNull, minmax2D, minmax3D, resetDefaultPrecedence, setNormal, setPrecedence |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConvexObject(Vector3d[] vertices, java.awt.Color[] colors) throws InvalidPolygonException
vertices
- the verticescolors
- the colors
InvalidPolygonException
Method Detail |
---|
public abstract java.util.List<ConvexObject> breakObject(ConvexObject o)
o
- a ConvexObject
public abstract java.util.List<ConvexObject> breakObject(Vector4d v)
v
- plane definition
public void addArea(ConvexObject co)
protected void drawAreas(java.awt.Graphics2D g2d)
public boolean areCoplanar(ConvexObject o)
o
- a ConvexObject
public int isBehind(ConvexObject o)
public boolean check2DIntersection(ConvexObject o)
o
- the object to test with this
public boolean check2DTrueIntersection(ConvexObject o)
o
- the object to test with this
protected int check(ConvexObject o, Vector3d v)
v
- the vector where to project
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |