How to read length & width of input mesh/clouds

Questions related to plugins development
Post Reply
!Xobile
Posts: 4
Joined: Mon Oct 17, 2016 8:48 am

How to read length & width of input mesh/clouds

Post by !Xobile »

I want to read length and width of given mesh/clouds. How do I access those values for further use?
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: How to read length & width of input mesh/clouds

Post by daniel »

Are you speaking about the bounding-box of the entity? Then you should use the 'ccHObject::getOwnBB' method.

Otherwise, if you are talking about the grid structure that some clouds have (e.g. when they come from Faro or DP files) then you have to get the associated 'Grid' structure (see ccPointCloud::grid). And it's only for some point clouds (not for meshes).
Daniel, CloudCompare admin
Post Reply