MinieLibrary/src/main/java/com/jme3/bullet/collision/shapes/MeshCollisionShape.java
/**
     * De-serialize this shape from the specified importer, for example when
     * loading from a J3O file.
     *
     * @param importer (not null)
     * @throws IOException from the importer
     */
De-serialize this shape from the specified importer, for example when
loading from a J3O file.

@param importer (not null)
@throws IOException from the importer
De - serialize this shape from the specified importer for example when loading from a J3O file . @param importer ( not null ) @throws IOException from the importer
@Override
    public void read(JmeImporter importer) throws IOException {
        super.read(importer);
        InputCapsule capsule = importer.getCapsule(this);
        Platform writePlatform
                = capsule.readEnum(tagNativePlatform, Platform.class, null);
        if (writePlatform == null || writePlatform != JmeSystem.getPlatform()) {
            bvh = null; 
        } else {
            bvh = (BoundingValueHierarchy) capsule.readSavable(tagBvh, null);
        }
        nativeMesh = (CompoundMesh) capsule.readSavable(tagNativeMesh, null);
        useCompression = capsule.readBoolean(tagUseCompression, true);
        createShape();
    }
@ Override public void read ( JmeImporter importer ) throws IOException { super . read ( importer ) ; InputCapsule capsule = importer . getCapsule ( this ) ; Platform writePlatform = capsule . readEnum ( tagNativePlatform , Platform . class , null ) ; if ( writePlatform == null || writePlatform != JmeSystem . getPlatform ( ) ) { bvh = null ; } else { bvh = ( BoundingValueHierarchy ) capsule . readSavable ( tagBvh , null ) ; } nativeMesh = ( CompoundMesh ) capsule . readSavable ( tagNativeMesh , null ) ; useCompression = capsule . readBoolean ( tagUseCompression , true ) ; createShape ( ) ; }
De-serialize this shape from the specified importer, for example when
 loading from a J3O file.
De - serialize this shape from the specified importer for example when loading from a J3O file .
// will re-generate the BVH for the new platform
