Skip to content

extrude_along_path() is broken - normals inverted #187

Description

@ShurikMur

After updating solidpython to the latest (1.1.1) the extrude_along_path function seems to get broken:
either first, last or side face of result solid gets a reversed normal and openSCAD crashes on rendering.
Changing the order of shape points reverses normals but there are still some faces facing wrong direction.

Activity

  1. added a commit that references this issue on Sep 30, 2021
  2. etjones commented on Sep 30, 2021

    @etjones
    Contributor

    Good catch on this. I was adding lots and lots of inverted facets to the polyhedron() calls, which I just now realized can be visualized with OpenSCAD's F12 'Thrown Together' view. Everything should look good now. You'd need to pull the latest master to see the fix, but it's there. I'm going to hold off on a release just now, because there's a much bigger release coming shortly and I'm not sure where this will end up in the mix.

  3. Gigahawk commented on Nov 11, 2021

    @Gigahawk

    As far as I can tell, this is still broken as of 37417da, running path_extrude_example.py still breaks when trying to render in OpenSCAD.

    Reverting to 1.0.5 seems to work fine.

  4. etjones commented on Nov 11, 2021

    @etjones
    Contributor

    What kind of failure do you run into? Running the code at 37417da it took me almost 14 minutes to render with CGAL, but everything looks like it's working correctly. What does your breakage look like?

  5. Gigahawk commented on Nov 12, 2021

    @Gigahawk

    Ok weird, I tried to recreate this in a clean environment and it seems to work fine, maybe pip didn't replace the regular 1.1.1 release when i tried to install from git.

    My bad, feel free to close this again.

  6. etjones commented on Nov 12, 2021

    @etjones
    Contributor

    All good- “no bug here” is the best outcome! Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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