0

I work with Forge Autodesk. I display a 3D building in the viewer.

I would like to know if there is a way to get a node properties (in the viewer).

I have the node number of a floor, and now I want to get the floor's position and rotation values inside the viewer. Since it is a plane surface, I suppose it must have some local coordinates saved somewhere. This post seems to confirm it.

gman
  • 100,619
  • 31
  • 269
  • 393
Fred Coud
  • 127
  • 1
  • 1
  • 13

2 Answers2

1

By default each nodes (components) have no rotation and a null translation applied to them. What you need is to access each vertices of a specific node in order to determine an accurate extent in 3D space. Alternatively you can also access the bounding box of a node to give you an approximation. Take a look at the following articles:

Accessing mesh information

Getting bounding boxes of each component in the viewer

Felipe
  • 4,325
  • 1
  • 14
  • 19
0

Thanks.

The following articles helped me a lot :

Get THREE.Mesh elements in Autodesk Forge Viewer

How Autodesk Forge viewer manages multiple scenes to select multiple elements

Getting bounding boxes of each component in the viewer

In the end, I used the fragIds to access the bounding box of a sub-element of the 3D object.

Fred Coud
  • 127
  • 1
  • 1
  • 13