SceneElement
55565758596061
private final SceneElement root; public SphereFurnaceScene(Spectrum reflectance, Spectrum emittance) { root = new MaterialSceneElement( new LambertianMaterial(reflectance, emittance), new InsideOutGeometry(new SphereGeometry(Sphere.UNIT))); }
8586878889909192
AffineMatrix3 T = AffineMatrix3.fromColumns(basis.u(), basis.v(), basis.w(), previous.center()); segment.transform(T); geometry.addChild(segment); } geometry.addChild(new SphereGeometry(sphere)); previous = sphere; }