Page 1 of 1

How to get a single object (TsgDXFInsert) from many 3D objects (STEP)

Posted: 16 Mar 2022, 13:47
by Mariusz_Unilink
I have a question about a possibility to get a single 3D object (TsgDXFInsert*) by mouse click on Tsg3DDrawingNavigator.

Shortly - I have a drawing navigator (Tsg3DDrawingNavigator*) where are many 3D objects. All of them are displayed and all of them existing as inserts (TsgDXFInsert*). Every insert contains many single entities: triangles (TsgDXF3dFace*) and polylines (TsgDXFPolyline*). I can have an access to this insert via pointer (TsgDXFInsert*) kept in the memory. That's no problem.
But - how to get an access to some object by mouse clicking (on the navigator)?
Maybe there are some methods which could return the pointer (TsgDXFInsert*) after mouse click from the navigator (Tsg3DDrawingNavigator)?
Another approach?

Thank you for any help!

Mariusz

Re: How to get a single object (TsgDXFInsert) from many 3D objects (STEP)

Posted: 16 Mar 2022, 16:18
by support
Hi Mariusz,

This possibility is demonstrated in our demo project ...Delphi\Demos\3D. Please take a look at the Tsg3DDrawingNavigator.OnPickObject event.

Kind regards,
Svetlana

Re: How to get a single object (TsgDXFInsert) from many 3D objects (STEP)

Posted: 16 Mar 2022, 16:35
by Mariusz_Unilink
Thank you Svetlana!