Skip to content

CQGI: displaying cqparts components #27

@dcowden

Description

@dcowden

Issue by fragmuffin
Saturday May 26, 2018 at 13:28 GMT
Originally opened as dcowden/cadquery#273


displaying objects created in cqparts using cqparts.cqgi at the moment involves extracting the cadquery.Workplane instance from the Component, and passing it to show_object.

from cqparts_misc.basic.primatives import Cube
cube = Cube(size=10)
show_object(cube.local_obj)

Problem
Displaying a cqparts.Component with editable parameters currently requires the workaround described in cqparts/cqparts#95 (comment)

from cqparts_misc.basic.primatives import Cube
g_size = 10
cube = Cube(size=g_size)
show_object(cube.local_obj)

Solution?
The display of a cqparts component would be much more intuitive with cadquery.cqgi if the parameters to be modified are picked up from the cqparts.Component instance itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions