Get primitive

One question I have while learning about the get primitive nodes is how to you know what piece of geometry from the geometry asset you are assigning the index number to? Can you display numbers of the parts somehow or see the incoming list of primitives?

More visualization/inspection tools in the 3D window is definitely desired. and would help with making the correct index selection.

I think you are referring to some tutorials that “get” a particular primitive. While the number of primitives is few, we can just step through the indices until we get the correct primitive. I know that pretty much equates to “just guess it”.
Alternatively, we could have just exported the primitives separately for the tutorial (so that they can be brought in as different asset nodes). And thus you wouldn’t need to split up the asset into primitives via “get primitive”. Do you think the tutorial should do this instead?

In theory, when the import/export format is more intelligent/further developed, we might be able to “get primitive by name”, or “get primitive by tag” but that isn’t currently possible.

Hello
In the meantime, to visually find a precise primitive, here is my solution. I attribute a color to an index from 0 to 9 and according to the multiple of 10 of the number of the primitive, multiply by a factor corresponding to the multiple of 10. And jointly, I organize them in a checkerboard of 10 columns.
With the graph, it’s more meaningful!

https://creator.trimble.com/graph?assetURI=whp:e462906f-a923-495f-b1a5-3fc39f471283


2 Likes

Another graph that colors only the primitive N° n
chrome_CNNc53nCJX
https://creator.trimble.com/graph?assetURI=whp:761192ee-96f0-4a61-97ee-917d35f01272&viewLayout=horizontalSplit

1 Like

Hi Sim, that last graph link appears to take users to the other graph (in the comment prior) rather than the one in the gif.

That is a cool visualization of selection in the .gif!

Hello,
A bit late, but I finally updated the link.

https://creator.trimble.com/graph?assetURI=whp:761192ee-96f0-4a61-97ee-917d35f01272&viewLayout=horizontalSplit

1 Like

Hello

It could be convenient to have on a click in the 3D pane the information about the geometry hovered over or clicked.
Among other things, its primitive index number.

1 Like