Hi,
I have several invisible object ( such as TGLsphere) as connection points and I want to pick these objects and draw wires ( such as wire example )
How can I do that?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To draw wires (lines) just Show object at runtime and change object material polygon mode with what you want (TGLPolygonMode = (pmFill, pmLines, pmPoints))
hi shine , I have 2 freeform such as electrical device , I defined 2 point by two sphere for connection point but these spheres are invisible , I want to connect line (as wire) between two free form connection point at runtime bye mouse. how detect the position of that sphere for add line node?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have several invisible object ( such as TGLsphere) as connection points and I want to pick these objects and draw wires ( such as wire example )
How can I do that?
To draw wires (lines) just Show object at runtime and change object material polygon mode with what you want (TGLPolygonMode = (pmFill, pmLines, pmPoints))
hi shine , I have 2 freeform such as electrical device , I defined 2 point by two sphere for connection point but these spheres are invisible , I want to connect line (as wire) between two free form connection point at runtime bye mouse. how detect the position of that sphere for add line node?
Actually there are two ways, that I know, to detect a picked object:
In below code I'm looking for TFreeForm object in pick search but you can change to other types.
I don't know if this can work for you.
It required a visible object to detect if picked.
A little video about how works:
https://youtu.be/fmwr5SVt__Q
Last edit: shine world 2021-05-11