# 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

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