Search in sources :

Example 1 with HudPrintStream

use of artisynth.core.renderables.HudPrintStream 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)1 HudPrintStream (artisynth.core.renderables.HudPrintStream)1 PolygonalMesh (maspack.geometry.PolygonalMesh)1