Re: Add another 3D model to an existing 3D model?
Code: Select all
...else if (node instanceof Shape3D) {
Shape3D shape = (Shape3D)node;
Appearance appearance = shape.getAppearance();
RenderingAttributes renderingAttributes = appearance != null
? appearance.getRenderingAttributes() : null;
if (shape.numGeometries() >= 1
&& (renderingAttributes == null
|| renderingAttributes.getVisible())) {
...
// Start a new object at OBJ format
this.out.write("g " + objectName + "\n");
...