Skip to content

Offsetting Bugs #61

@giannissc

Description

@giannissc

Here is the original problem as I encountered it:

  • You start with a workplane and you create a shape.
  • You translate and rotate that shape.
  • You then create a subsequent shape from the previous workplane
  • If you execute offset2D on both of these solids you will get a correct offset for the first shape but the second will be offset and rotated by the original offset and rotation (see below)

image

If I apply my fix then everything goes back into the correct place:
image

The fundamental problem with my solution is that it depend on the centers not changing, which is not always the case. Some designs (see below) can create intersections when you create and an offset and those intersections need to be trimmed (hence changing the center of the wire).

image

When my fix is applied in the context of cq_cam then offsets that cause intersection and change the original shape will be moved into the previous center (see below).

image

There are however design that can still cause the issue with cq-cam:
image

So we need a robust way to detect when intersections happen and take that into account when correcting the offset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions