autodesk-forgeforge

Forge elements missing in some direction


My model is a pipe line and this is the screenshot from IFC viewer enter image description here

and this is the screenshot from forge viewer

enter image description here

You can see in the forge I can't see the full pipe line. When I zoom in or change the direction some parts will missing. It only happens when close to model.

enter image description here


Solution

  • This seems to be one of the pathological cases where, due to the extremely large extent of the 3D design, the viewer heuristic (which tries to optimize the near/far clipping planes to avoid precision issues) fails. What's the bounding box of your model (you can retrieve it using viewer.model.getBoundingBox())?

    To work around this, you could try the following: