Access the vertices of a model
Hey
I have a problem. I need to calculate the convex hull of an 3D model loaded in vizard. I have the code to do that but for that I need all the vertices of the model ie. their coordinates in a array. I need to access all the vertices of the object but I am not able to find any method to do that. Can you please tell me how can I access all the vertices of the model. PS. the model is a complex model and is not a on-the-fly object. Its a .ive or 3ds max file. so plz tell me how can I access the vertices. Regards Pankaj Bansal |
There is currently no built-in way to access the vertices, but you can save the model to the STL format, which is a simple text format that contains all the vertices. Here is some sample code allows you to iterate over the vertices:
Code:
import viz |
All times are GMT -7. The time now is 12:24 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC