potato3d / cascade

CasCADe 4D visualization system for virtual construction planning
MIT License
10 stars 1 forks source link

Ask about RVM #1

Open Xiaojiean opened 3 years ago

Xiaojiean commented 3 years ago

The source code contains RVM library. Can you provide the code?

potato3d commented 3 years ago

Sorry, it's a proprietary file format. What the loader does is create a QTreeWidgetItem for each whole object in the 3D model, arranging them hierarchically according to design information. Each object may be composed of one or more geometries. The loader calls Renderer::addSceneDrawable for each geometry, passing its triangle mesh. This generates a drawableID, which is then stored in a vector inside the corresponding QTreeWidgetItem. See Hierarchy::getRenderData, which accesses back this information to determine which drawables need to be selected whenever a QTreeWidgetItem is selected. The code should work if you put the entire 3D model within a single QTreeWidgetItem, or create several QTreeWidgetItems at the same hierarchy level, one for each object. Hope this helps.

Xiaojiean commented 3 years ago

Thanks for your help

Xiaojiean commented 3 years ago

Can you give me a simple example?