2
$\begingroup$

I have an OpenSCAD model which I am looking at in the application, code to the left and the rendering to the right.

Am trying to modify a certain piece, and have commented out all the commands that I believed were related to that piece, but there is still one subtracted cube left, i.e. somewhere in the code there is a difference block with this cube command somewhere in the 2nd part (I believe, as I cannot see any other possibility).

It would be very nice if I could just click on the image and get the software to display the corresponding commands in the code.

Is anything like that available in any tool?

$\endgroup$

1 Answer 1

2
$\begingroup$

To my knowledge, OpenSCAD does not have any such feature. However, a related feature might help you: the debugging aid modifier characters. By inserting %, #, !, or * before an object (including aggregate objects), you can control how it renders in relation to the whole file; this makes it possible to do "binary search" type operations to figure out where the object you're seeing is.

$\endgroup$
2
  • $\begingroup$ I know. The problem is that I have apparently spread this out over the file, so would be tedious. $\endgroup$
    – Tomas By
    Jun 23, 2019 at 11:38
  • 1
    $\begingroup$ It can be tedious, but those characters are the tools. I agree that a "point to it and the code opens" feature would be great, but as yet it does not exist. $\endgroup$
    – cmm
    Jun 27, 2019 at 17:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .