Search in sources :

Example 6 with SizeAnnotation

use of org.concord.energy3d.shapes.SizeAnnotation in project energy3d by concord-consortium.

the class HousePart method fetchSizeAnnot.

protected SizeAnnotation fetchSizeAnnot(final int annotCounter, final Node sizeAnnotRoot) {
    final SizeAnnotation annot;
    if (annotCounter < sizeAnnotRoot.getChildren().size()) {
        annot = (SizeAnnotation) sizeAnnotRoot.getChild(annotCounter);
        annot.getSceneHints().setCullHint(CullHint.Inherit);
    } else {
        annot = new SizeAnnotation();
        sizeAnnotRoot.attachChild(annot);
    }
    return annot;
}
Also used : SizeAnnotation(org.concord.energy3d.shapes.SizeAnnotation)

Aggregations

SizeAnnotation (org.concord.energy3d.shapes.SizeAnnotation)6 CullHint (com.ardor3d.scenegraph.hint.CullHint)5 ReadOnlyVector3 (com.ardor3d.math.type.ReadOnlyVector3)4 Vector3 (com.ardor3d.math.Vector3)3 PolygonPoint (org.poly2tri.geometry.polygon.PolygonPoint)3 TPoint (org.poly2tri.triangulation.point.TPoint)3 AngleAnnotation (org.concord.energy3d.shapes.AngleAnnotation)2 Matrix3 (com.ardor3d.math.Matrix3)1 Node (com.ardor3d.scenegraph.Node)1 Spatial (com.ardor3d.scenegraph.Spatial)1 PickingHint (com.ardor3d.scenegraph.hint.PickingHint)1 FloatBuffer (java.nio.FloatBuffer)1 Point (org.poly2tri.geometry.primitives.Point)1 TriangulationPoint (org.poly2tri.triangulation.TriangulationPoint)1 ArdorVector3Point (org.poly2tri.triangulation.point.ardor3d.ArdorVector3Point)1