org.jcae.mesh.cad
Interface CADShape

All Known Subinterfaces:
CADCompound, CADCompSolid, CADEdge, CADFace, CADShell, CADSolid, CADVertex, CADWire

public interface CADShape

Describe a topological shape with an orientation, a location and a geometry

Author:
Denis Barbier

Method Summary
 double[] boundingBox()
          Return the bounding box of this shape in an array like {Xmin, Ymin, Zmin, Xmax, Ymax, Zmax}.
 boolean equals(java.lang.Object o)
          Return true if o have same orientation and geometry as this object
 int hashCode()
          Return a hash code matching the equals method
 boolean isOrientationForward()
          Return true if and only if the face is forward oriented
 boolean isSame(java.lang.Object o)
          Return true if o have same geometry as this object
 int orientation()
          Return the orientation of the shape
 CADShape reversed()
          Return a reversed instance of this shape
 void writeNative(java.lang.String filename)
          Write shape into the native format
 

Method Detail

boundingBox

double[] boundingBox()
Return the bounding box of this shape in an array like {Xmin, Ymin, Zmin, Xmax, Ymax, Zmax}.


reversed

CADShape reversed()
Return a reversed instance of this shape


orientation

int orientation()
Return the orientation of the shape


isOrientationForward

boolean isOrientationForward()
Return true if and only if the face is forward oriented


equals

boolean equals(java.lang.Object o)
Return true if o have same orientation and geometry as this object

Overrides:
equals in class java.lang.Object

isSame

boolean isSame(java.lang.Object o)
Return true if o have same geometry as this object


writeNative

void writeNative(java.lang.String filename)
Write shape into the native format


hashCode

int hashCode()
Return a hash code matching the equals method

Overrides:
hashCode in class java.lang.Object