1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
package sample3d; import javafx.application.Application; import my3d._shape3d; import my3d._viewer3d2; import my3d._viewport3d; public class _sample03 extends _viewer3d2 { public static void main(String... args) { Application.launch(args); } private _shape3d box = _shape3d.create_box(1, 1, 1); @Override public void init_scene(_viewport3d vp) {} @Override public void render(_viewport3d vp) { vp.render_shape(box); } }