Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sun Oct 08, 2017 7:00 pm 
Offline

Joined: Sun Oct 08, 2017 6:52 pm
Posts: 2
Hello !
With which instruction can we create, for example, a bounding box by passing as a parameter the vertices of a mesh ?
I really don't manage to find it.
Can you help me ?


Top
 Profile  
 
PostPosted: Mon Oct 09, 2017 3:38 pm 
Offline
User avatar

Joined: Tue Sep 30, 2014 6:03 pm
Posts: 346
Location: San Francisco
The btAABB class, (AABB = Axis Aligned Bounding Box) has a method: btAABB::merge_point(btVector3) which will grow the bounding box to contain the point. You should be able to create a btAABB instance then loop over all the points and merge each one.


Top
 Profile  
 
PostPosted: Mon Oct 09, 2017 6:36 pm 
Offline

Joined: Sun Oct 08, 2017 6:52 pm
Posts: 2
Thank you !


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group