MinieExamples/src/main/java/jme3utilities/minie/test/TrackDemo.java
/**
     * Toggle mesh rendering on/off.
     */
Toggle mesh rendering on/off.
Toggle mesh rendering on / off .
private void toggleMeshes() {
        Spatial.CullHint hint = cgModel.getLocalCullHint();
        if (hint == Spatial.CullHint.Inherit
                || hint == Spatial.CullHint.Never) {
            hint = Spatial.CullHint.Always;
        } else if (hint == Spatial.CullHint.Always) {
            hint = Spatial.CullHint.Never;
        }
        cgModel.setCullHint(hint);
    }
private void toggleMeshes ( ) { Spatial . CullHint hint = cgModel . getLocalCullHint ( ) ; if ( hint == Spatial . CullHint . Inherit || hint == Spatial . CullHint . Never ) { hint = Spatial . CullHint . Always ; } else if ( hint == Spatial . CullHint . Always ) { hint = Spatial . CullHint . Never ; } cgModel . setCullHint ( hint ) ; }
Toggle mesh rendering on/off.
Toggle mesh rendering on / off .