Skip to content

Inconsistent behavior when displaying objects with show_object() #507

@lukman06

Description

@lukman06

Description

There appears to be inconsistent behavior when displaying a Sketch object directly with show_object(). The function seems to automatically assemble the Sketch before displaying it.

Code to reproduce

import cadquery as cq
line = cq.Sketch().segment((0,0),(0.25,1)).segment((1,2))
line_assemble = line.assemble()
show_object(line)  # This shows the assembled version despite 'line' not being assembled

Expected behavior

I would expect show_object(line) to either show the unassembled Sketch object or require explicit assembly before displaying.

Actual behavior

When calling show_object(line), it displays the Sketch as if line_assemble = line.assemble() had been called first. This automatic conversion happens behind the scenes.

Environment

  • CQ-Editor version: 0.5.dev0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions