Search code examples
autodesk-forgeautodesk-viewer

How to change the geometry of the two selected models?


I know getSelection() is get the db id of seletion model.

but after this i don't know how to control this viewer.

There are two windows selected by the viewer.

I want to change the geometry of the two windows.

Forge Viewer is open Revit file by my bucket.

viewer.getSelection()
=>(3) [3043, 3055]//how to?

Solution

  • Unfortunately, the viewer isn't designed to support geometry modification. You can modify your design elements in these ways:

    • changing their position, orientation, or scale (blog)
    • hiding them, and potentially inserting your own custom three.js geometry instead (tutorial)
    • changing their materials, incl. using custom shaders (blog)

    But if you actually need to tweak the individual vertices of the mesh geometry, that would be very difficult to do.