MinieLibrary/src/main/java/com/jme3/bullet/animation/RagUtils.java
/**
     * Validate a model for use with DynamicAnimControl.
     *
     * @param model the model to validate (not null, unaffected)
     * @throws IllegalArgumentException for an invalid model
     */
Validate a model for use with DynamicAnimControl.

@param model the model to validate (not null, unaffected)
@throws IllegalArgumentException for an invalid model
Validate a model for use with DynamicAnimControl . @param model the model to validate ( not null unaffected ) @throws IllegalArgumentException for an invalid model
public static void validate(Spatial model) {
        Validate.nonNull(model, "model");
        List<Geometry> geometries = MySpatial.listGeometries(model);
        if (geometries.isEmpty()) {
            throw new IllegalArgumentException("No meshes in the model.");
        }
        for (Geometry geometry : geometries) {
            if (geometry.isIgnoreTransform()) {
                throw new IllegalArgumentException(
                        "A model geometry ignores transforms.");
            }
        }
    }
public static void validate ( Spatial model ) { Validate . nonNull ( model , "model" ) ; List < Geometry > geometries = MySpatial . listGeometries ( model ) ; if ( geometries . isEmpty ( ) ) { throw new IllegalArgumentException ( "No meshes in the model." ) ; } for ( Geometry geometry : geometries ) { if ( geometry . isIgnoreTransform ( ) ) { throw new IllegalArgumentException ( "A model geometry ignores transforms." ) ; } } }
Validate a model for use with DynamicAnimControl.
Validate a model for use with DynamicAnimControl .