Code Monkey home page Code Monkey logo

Comments (7)

adam-urbanczyk avatar adam-urbanczyk commented on August 25, 2024 2

After merging #127 it is possible to specify color like so

show_object(obj,name='a',options=dict(color='red'))

from cq-editor.

jmwright avatar jmwright commented on August 25, 2024

@adam-urbanczyk can say for sure, but it may be related to this issue.

Essentially the options for show_object, and I assume debug, haven't been implemented yet. Just drop the options from the debug call and the error should go away (it did for me).

from cq-editor.

roipoussiere avatar roipoussiere commented on August 25, 2024

Essentially the options for show_object, and I assume debug, haven't been implemented yet.

Ok, no problem.

Just drop the options from the debug call and the error should go away (it did for me).

I though that debug was used to color some parts of an object in order to understand what we are selecting. What the point of debug() without any argument, then?

from cq-editor.

jmwright avatar jmwright commented on August 25, 2024

What the point of debug() without any argument, then?

I think the CQGI implementation is just lagging a little after the transition to CQ 2.0. I haven't seen many people use the debug functionality, even though it can be pretty useful. That may be why this hasn't been brought up yet.

In CadQuery's FreeCAD workbench (CQ 1.0) I rendered debug objects in red with some transparency by default, so the option wasn't used much. I'm not sure if @adam-urbanczyk has something like that planned for CQ-editor or not.

from cq-editor.

adam-urbanczyk avatar adam-urbanczyk commented on August 25, 2024

@roipoussiere CQ-editor does not implement the CQGI interface. Currently debug just displays the argument in the application log.

BTW: there is a dedicated graphical stack inspector in CQ-editor if you are interested in seeing what is on your stack.

from cq-editor.

roipoussiere avatar roipoussiere commented on August 25, 2024

@adam-urbanczyk really nice! Documentation should be updated as well but I don't know why I'm not currently able to access to the wiki...

from cq-editor.

roipoussiere avatar roipoussiere commented on August 25, 2024

Closing since #127 solves this issue and enough documentation has been added in the readme. :)

from cq-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.