Change Tool Cone Size in Axis
29 Feb 2020 16:50 #158824
by mmt
Change Tool Cone Size in Axis was created by mmt
Can anyone tell me how to change it?
Thanks,
Kent
Thanks,
Kent
Please Log in or Create an account to join the conversation.
29 Feb 2020 22:31 #158849
by cmorley
Replied by cmorley on topic Change Tool Cone Size in Axis
Cone scaling is not exposed to the user - it seems to be based on the extents of xyz.
To change it would require code changes in glcanon.py
Chris
To change it would require code changes in glcanon.py
Chris
Please Log in or Create an account to join the conversation.
29 Feb 2020 22:35 #158850
by cmorley
Replied by cmorley on topic Change Tool Cone Size in Axis
Attachments:
Please Log in or Create an account to join the conversation.
03 Mar 2020 19:44 #159099
by mmt
Replied by mmt on topic Change Tool Cone Size in Axis
I need it maybe 1/4 to 1/8 size possibly even smaller. My entire work envelope is about .060 inch.
Hey chris also did you have a chance to review my code for trying to open a camview window in axis. This thread here
Hey chris also did you have a chance to review my code for trying to open a camview window in axis. This thread here
Please Log in or Create an account to join the conversation.
03 Mar 2020 20:17 #159102
by cmorley
Replied by cmorley on topic Change Tool Cone Size in Axis
in python/rs274/glcanon
look for (I added a comment to highlight it) :
Change the *.5 to something smaller
Sorry I looked at the code, couldn't see anything obvious and realized I don't have any system that has linuxcnc installed rather then RIP.
And then forgot. I'll give instructions to do it manually.
Chris
look for (I added a comment to highlight it) :
if current_tool is None or current_tool.diameter == 0:
if self.canon:
g = self.canon
x,y,z = 0,1,2
cone_scale = max(g.max_extents[x] - g.min_extents[x],
g.max_extents[y] - g.min_extents[y],
g.max_extents[z] - g.min_extents[z],
2 ) * .5 # <- THIS HERE
else:
cone_scale = 1
Change the *.5 to something smaller
Sorry I looked at the code, couldn't see anything obvious and realized I don't have any system that has linuxcnc installed rather then RIP.
And then forgot. I'll give instructions to do it manually.
Chris
Please Log in or Create an account to join the conversation.
03 Mar 2020 20:31 #159104
by rodw
Replied by rodw on topic Change Tool Cone Size in Axis
It would be nice if that could be configured by the user maybe as an ini file setting (or GUI setting) in V 2.9.
I usually leave my machine set for an overhead view and I find the cone too big.
I usually leave my machine set for an overhead view and I find the cone too big.
Please Log in or Create an account to join the conversation.
03 Mar 2020 20:41 #159106
by cmorley
Replied by cmorley on topic Change Tool Cone Size in Axis
Yes I can look into it. Probably nicer if it was adjustable in AXIS but not sure
I have the patients for that - maybe Phil can help me there...
You can hide the tool in AXIS - it's an option under view.
Not sure if you noticed.
Chris
I have the patients for that - maybe Phil can help me there...
You can hide the tool in AXIS - it's an option under view.
Not sure if you noticed.
Chris
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
03 Mar 2020 20:58 #159108
by rodw
Replied by rodw on topic Change Tool Cone Size in Axis
But I use Gmoccappy
Surely the code is not GUI specific. A setting in {DISPLAY] section of ini file would be cool.
Surely the code is not GUI specific. A setting in {DISPLAY] section of ini file would be cool.
The following user(s) said Thank You: daiman444
Please Log in or Create an account to join the conversation.
03 Mar 2020 21:15 #159111
by cmorley
Replied by cmorley on topic Change Tool Cone Size in Axis
axis/Gmoccapy/Gscreen/Qtvcp all use the same basic code for graphics.
The underlying code changes work for all of them.
It how to change the size that will be screen defined.
The reason i say that in screen adjustment would be preferred is you can:
-immediately see the change (rather then change INI, start linuxcnc, shutdown linuxcnc, readjust INI etc)
- adjust depending if the particular program requires a change, say because lines are really unusually close.
maybe we can do both - follow INI but be adjustable in screen...
The underlying code changes work for all of them.
It how to change the size that will be screen defined.
The reason i say that in screen adjustment would be preferred is you can:
-immediately see the change (rather then change INI, start linuxcnc, shutdown linuxcnc, readjust INI etc)
- adjust depending if the particular program requires a change, say because lines are really unusually close.
maybe we can do both - follow INI but be adjustable in screen...
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
03 Mar 2020 21:39 #159114
by rodw
Replied by rodw on topic Change Tool Cone Size in Axis
I think you would have to do both.
If the feature is not GUI specific and is part of the GUI core then adjusting it should never be tied to a GUI. That breaks the modular design of Linuxcnc.
Something like
Does the other side of the scale if statement need scaling?
If the feature is not GUI specific and is part of the GUI core then adjusting it should never be tied to a GUI. That breaks the modular design of Linuxcnc.
Something like
if self.canon:
g = self.canon
x,y,z = 0,1,2
cone_scale = max(g.max_extents[x] - g.min_extents[x],
g.max_extents[y] - g.min_extents[y],
g.max_extents[z] - g.min_extents[z],
2 ) * .5 # <- THIS HERE
cone_scale = cone_scale * tool-scale
else:
cone_scale = 1
###------------ INI FILE -------------------
[DISPLAY]
# tool-scale changes the screen "cone" that represents the tool. Defaults to 1.0 if not present
tool-scale = 0.5
Does the other side of the scale if statement need scaling?
Please Log in or Create an account to join the conversation.
Time to create page: 0.313 seconds