Package jinngine.geometry.util

Examples of jinngine.geometry.util.MassProperties


   
    // create an adjacency list for the dual hull
    dualadjacent = adjacencyList(dualhull.getFaces(), dualvertices.size());     
         
    // perform approximate mass calculation
    MassProperties masscalculation = new MassProperties( this, 0.05 );
   
    // set propperties
    mass = referenceMass = masscalculation.getMass();
    inertiamatrix = new InertiaMatrix(masscalculation.getInertiaMatrix());
    centreOfMass = masscalculation.getCentreOfMass();

    // align all vertices and faces to centre of mass coordinates
    for ( Vector3 p: vertices)
      Vector3.add( p, centreOfMass.multiply(-1) );
   
View Full Code Here

TOP

Related Classes of jinngine.geometry.util.MassProperties

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.