Search in sources :

Example 6 with FixedMeshBody

use of artisynth.core.mechmodels.FixedMeshBody in project artisynth_core by artisynth.

the class Hello method build.

@Override
public void build(String[] args) throws IOException {
    super.build(args);
    hud = new HudPrintStream();
    hud.setNumDisplayLines(5);
    hud.setTextSize(12);
    RenderProps.setFaceColor(hud, Color.GREEN);
    addRenderable(hud);
    PolygonalMesh mesh = MeshFactory.createBox(1, 1, 1, Point3d.ZERO, 5, 5, 5);
    FixedMeshBody fmb = new FixedMeshBody(mesh);
    addRenderable(fmb);
}
Also used : HudPrintStream(artisynth.core.renderables.HudPrintStream) FixedMeshBody(artisynth.core.mechmodels.FixedMeshBody) PolygonalMesh(maspack.geometry.PolygonalMesh)

Aggregations

FixedMeshBody (artisynth.core.mechmodels.FixedMeshBody)6 PolygonalMesh (maspack.geometry.PolygonalMesh)5 Vertex3d (maspack.geometry.Vertex3d)2 RigidTransform3d (maspack.matrix.RigidTransform3d)2 Vector3d (maspack.matrix.Vector3d)2 MechModel (artisynth.core.mechmodels.MechModel)1 HudPrintStream (artisynth.core.renderables.HudPrintStream)1 Color (java.awt.Color)1 DistanceGrid (maspack.geometry.DistanceGrid)1 Face (maspack.geometry.Face)1 Point3d (maspack.matrix.Point3d)1 RenderProps (maspack.render.RenderProps)1 Renderable (maspack.render.Renderable)1 HueColorMap (maspack.render.color.HueColorMap)1