public static void setBoundsColor(final ReadOnlyColorRGBA color) { boundingBox.setDefaultColor(color); boundingOB.setDefaultColor(color); boundingSphere.setDefaultColor(color); }
/** * Takes the plane and center information and creates the correct vertex,normal,color,texture,index information to * represent the OrientedBox. */ public void computeInformation() { setVertexData(); setNormalData(); setTextureData(); setIndexData(); }
private void setData() { setVertexAndNormalData(); setTextureData(); setIndexData(); }
public void buildArrow() { // Start with cylinders: final Cylinder base = new Cylinder("base", 4, 16, _width * .75, _length); base.getMeshData().rotatePoints(rotator); base.getMeshData().rotateNormals(rotator); attachChild(base); base.updateModelBound(); final Pyramid tip = new Pyramid("tip", 2 * _width, _length / 2f); tip.getMeshData().translatePoints(0, _length * .75, 0); attachChild(tip); tip.updateModelBound(); }
/** * @param textureMode * The textureMode to set. */ public void setTextureMode(final TextureMode textureMode) { _textureMode = textureMode; setGeometryData(); setIndexData(); }
/** * Change the radius of this cylinder. This resets any second radius. * * @param radius * The radius to set. */ public void setRadius(final double radius) { _radius = radius; _radius2 = radius; allocateVertices(); }
/** * Set the color of the joint object used in skeleton drawing. * * @param color * the new color to use for skeleton joints. */ public static void setJointColor(final ReadOnlyColorRGBA color) { SkeletalDebugger.joint.setSolidColor(color); } }
/** * Instantiates a new Teapot object. */ public Teapot() { super("teapot"); resetData(); }
public Cone(final String name, final int axisSamples, final int radialSamples, final float radius, final float height, final boolean closed) { super(name, axisSamples, radialSamples, radius, height, closed); setRadius2(0); }
/** * Change the radius of this cylinder. * * @param radius * The radius to set. */ public void setRadius(final double radius) { this.radius = radius; setGeometryData(); }
/** * Constructs a new 1x1x1 <code>Box</code> with the given name. * * @param name * the name to give this new box. This is required for identification and comparison purposes. */ public Box(final String name) { super(name); setData(Vector3.ZERO, 0.5, 0.5, 0.5); }
/** * Set the color of the bone object used in skeleton drawing. * * @param color * the new color to use for skeleton bones. */ public static void setBoneColor(final ReadOnlyColorRGBA color) { SkeletalDebugger.bone.setSolidColor(color); }
public Tube(final String name, final double outerRadius, final double innerRadius, final double height, final int axisSamples, final int radialSamples) { super(name); _outerRadius = outerRadius; _innerRadius = innerRadius; _height = height; _axisSamples = axisSamples; _radialSamples = radialSamples; allocateVertices(); }
/** Creates a new instance of RoundedBox */ public RoundedBox(final String name) { super(name); setData(); }
public void buildArrow() { // Start with cylinders: final Cylinder base = new Cylinder("base", 4, 16, _width * .75, _length); base.getMeshData().rotatePoints(rotator); base.getMeshData().rotateNormals(rotator); attachChild(base); base.updateModelBound(); final Pyramid tip = new Pyramid("tip", 2 * _width, _length / 2f); tip.getMeshData().translatePoints(0, _length * .75, 0); attachChild(tip); tip.updateModelBound(); }
public static void setBoundsColor(final ReadOnlyColorRGBA color) { boundingBox.setDefaultColor(color); boundingOB.setDefaultColor(color); boundingSphere.setDefaultColor(color); }
/** * @param height * The height to set. */ public void setHeight(final double height) { _height = height; allocateVertices(); }
/** * @param height * The height to set. */ public void setHeight(final double height) { _height = height; allocateVertices(); }
/** * Set the top radius of the 'cylinder' to differ from the bottom radius. * * @param radius * The first radius to set. * @see com.ardor3d.extension.shape.Cone */ public void setRadius1(final double radius) { _radius = radius; allocateVertices(); }
/** * Set the bottom radius of the 'cylinder' to differ from the top radius. This makes the Mesh be a frustum of * pyramid, or if set to 0, a cone. * * @param radius * The second radius to set. * @see com.ardor3d.extension.shape.Cone */ public void setRadius2(final double radius) { _radius2 = radius; allocateVertices(); }