Skip to content

3D offset generates unexpected geometry #58

@KlumpRasmus

Description

@KlumpRasmus

Describe the bug
When trying to generate an offset (larger) version of an object the result is unexpected.

To Reproduce
Run the code below

Expected behavior
A larger version of the original object, enlarged by 2mm on all faces.

Code reproducing the issue
from openscad import *

fn = 100
c = cube([15, 30, 10]) + [15, -15, 0]
p = hull(c, cylinder(h=7, d=30))
p2 = offset(p, 2)
output(p2)

Screenshots
image

Environment and Version info (please complete the following information):

  • OS: Ubuntu 24.04.1 LTS
  • System: ThinkPad x13
  • OpenSCAD Version: own build 2025.01.01

Library & Graphics card information
If applicable, add the content of the Help->Library Info window, or the output of running the openscad --info command.

Additional context
Add any other context about the problem here.

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