Are object3d s centered?

Started by lawless_c, June 10, 2015, 03:17:54 PM

Previous topic - Next topic

lawless_c

Just wanted to know if i create a sphere using this method

ExtendedPrimitives.createEllipsoid(new SimpleVector(plsize,plsize,plsize), 128, 1f, 1f);

Will the  the sphere be at the origin/center or offset from it in some way?

EgonOlsen

Its origin should be (more or less...it's calculated based in the geometry, so it might be slightly off) at the center in object space. Where it's in world space depends on the transformations that you apply to it.