three-geo
three-geo copied to clipboard
how to make the graphic position center?
like the example,the boundary of graphic is out of LineSegments edges bounds.
and like this,the mesh center is not on the scene center
Thanks for the report!
I understand you are expecting that the getTerrain()
API should return a cropped square mesh (the part only inside the white line segment box). Currently, we don't have this cropping behavior implemented. It would be nice to have this supported in the future.
Thanks for the report!
I understand you are expecting that the
getTerrain()
API should return a cropped square mesh (the part only inside the white line segment box). Currently, we don't have this cropping behavior implemented. It would be nice to have this supported in the future.
I fix this problem by djust the mesh position to center manually , using computeBoundingBox and use mesh.geometry.boundingBox to compute the boundary position of every mesh.Then I can translate position correctly. It is not a best idea,but can solve my problem temporarily.
That sounds a reasonable user space workaround to me. Thanks for sharing!