/** * Sets the polygonAttributes object to the specified object. * Setting it to null will result in default attribute usage. * @param polygonAttributes object that specifies the desired * polygonAttributes parameters * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public void setPolygonAttributes(PolygonAttributes polygonAttributes) { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_POLYGON_ATTRIBUTES_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance12")); ((AppearanceRetained)this.retained).setPolygonAttributes(polygonAttributes); }
rt.setPolygonAttributes((PolygonAttributes) getNodeComponent( app.getPolygonAttributes(), forceDuplicate,