Re: centre of gravity and volume for mesh model



On Nov 11, 11:17 pm, John Tsiombikas <nucl...@xxxxxxxxxxxx> wrote:

For the center of gravity you could just use the centroid of the mesh.
You can calculate the centroid by averaging the positions of all its
vertices.

This can fail - some parts of the model might have more
detail/vertices than others.

A real center of gravity is quite hard to calculate from
a polygon mesh.



--
<\___/>
/ O O \
\_____/ FTB.

.



Relevant Pages

  • Re: Alpha Blending and Mesh Centroid
    ... This is obiviously a problem when your meshes are ... >> half is behind the other mesh. ... >> front of the second mesh, the portion of the rotated mesh that is behind ... If the centroid of the rotated mesh is behind ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Alpha Blending and Mesh Centroid
    ... To render with transparency you need to sort the faces (not meshes) from ... > half is behind the other mesh. ... > front of the second mesh, the portion of the rotated mesh that is behind ... If the centroid of the rotated mesh is behind ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: centre of gravity and volume for mesh model
    ... Just to nit pick, the center of gravity isn't exactly the same thing as the ... centroid, as the centroid is the geometric center while the center of gravity is the point on a solid where ... just happens that under some circumstances the two points coincide. ...
    (comp.graphics.api.opengl)
  • Re: centre of gravity and volume for mesh model
    ... gravity) and volume for a mesh model (e.g. as imported from an OBJ ... For the center of gravity you could just use the centroid of the mesh. ... Just generate random samples inside a bounding box of known ...
    (comp.graphics.api.opengl)
  • Re: center element of a mesh
    ... For instance an irregular trapezoid shape made up of 50 ... > element index based on results of the centroid property. ... For a potentially non-convex mesh, ... to build a mesh that has all nodes on the perimeter. ...
    (comp.soft-sys.matlab)