Search in sources :

Example 1 with Point3f

use of org.jwildfire.create.eden.base.Point3f in project JWildfire by thargor6.

the class PositionableSceneElement method clone.

public PositionableSceneElement clone() throws CloneNotSupportedException {
    PositionableSceneElement copy;
    copy = (PositionableSceneElement) super.clone();
    copy.position = new Point3f(position.getX(), position.getY(), position.getZ());
    copy.orientation = new Angle3f(orientation.getAlpha(), orientation.getBeta(), orientation.getGamma());
    copy.size = new Size3f(size.getX(), size.getY(), size.getZ());
    return copy;
}
Also used : Point3f(org.jwildfire.create.eden.base.Point3f) Size3f(org.jwildfire.create.eden.base.Size3f) Angle3f(org.jwildfire.create.eden.base.Angle3f)

Example 2 with Point3f

use of org.jwildfire.create.eden.base.Point3f in project JWildfire by thargor6.

the class SceneElementGroup method addCylinder.

public Cylinder addCylinder(double pOriginX, double pOriginY, double pOriginZ, double pRadius, double pHeight) {
    Cylinder cylinder = new Cylinder(this);
    cylinder.setRadius((float) pRadius);
    cylinder.setHeight((float) pHeight);
    cylinder.setPosition(new Point3f(pOriginX, pOriginY, pOriginZ));
    elements.add(cylinder);
    return cylinder;
}
Also used : Cylinder(org.jwildfire.create.eden.scene.primitive.Cylinder) Point3f(org.jwildfire.create.eden.base.Point3f)

Example 3 with Point3f

use of org.jwildfire.create.eden.base.Point3f in project JWildfire by thargor6.

the class SceneElementGroup method addBox.

public Box addBox(double pOriginX, double pOriginY, double pOriginZ, double pSize) {
    Box box = new Box(this);
    box.setSize(pSize, pSize, pSize);
    box.setPosition(new Point3f(pOriginX, pOriginY, pOriginZ));
    elements.add(box);
    return box;
}
Also used : Point3f(org.jwildfire.create.eden.base.Point3f) Box(org.jwildfire.create.eden.scene.primitive.Box)

Example 4 with Point3f

use of org.jwildfire.create.eden.base.Point3f in project JWildfire by thargor6.

the class SceneElementGroup method addSphere.

public Sphere addSphere(double pOriginX, double pOriginY, double pOriginZ, double pRadius) {
    Sphere sphere = new Sphere(this);
    sphere.setRadius((float) pRadius);
    sphere.setPosition(new Point3f(pOriginX, pOriginY, pOriginZ));
    elements.add(sphere);
    return sphere;
}
Also used : Sphere(org.jwildfire.create.eden.scene.primitive.Sphere) Point3f(org.jwildfire.create.eden.base.Point3f)

Example 5 with Point3f

use of org.jwildfire.create.eden.base.Point3f in project JWildfire by thargor6.

the class SceneElementGroup method addPointLight.

public PointLight addPointLight(double pOriginX, double pOriginY, double pOriginZ, double pIntensity) {
    PointLight light = new PointLight(this);
    light.setPosition(new Point3f(pOriginX, pOriginY, pOriginZ));
    light.setIntensity(pIntensity);
    elements.add(light);
    return light;
}
Also used : Point3f(org.jwildfire.create.eden.base.Point3f) PointLight(org.jwildfire.create.eden.scene.light.PointLight)

Aggregations

Point3f (org.jwildfire.create.eden.base.Point3f)7 Face3i (org.jwildfire.create.eden.base.Face3i)2 Angle3f (org.jwildfire.create.eden.base.Angle3f)1 Size3f (org.jwildfire.create.eden.base.Size3f)1 PointLight (org.jwildfire.create.eden.scene.light.PointLight)1 Box (org.jwildfire.create.eden.scene.primitive.Box)1 Cylinder (org.jwildfire.create.eden.scene.primitive.Cylinder)1 Mesh (org.jwildfire.create.eden.scene.primitive.Mesh)1 Sphere (org.jwildfire.create.eden.scene.primitive.Sphere)1