Skip to content

ShapeGeometry does not handle CW boundary with CW holes #15388

@jgg3

Description

@jgg3
Description of the problem

ShapeGeometry includes a section of code to correct the traversal direction of the boundary and holes. But it is written such that the holes are only corrected if the boundary is not clockwise. This results in failure in the case where the boundary is clockwise and the holes are clockwise.

The hole corrections should be independent of the outside boundary correction.

capture

Three.js version
  • Dev
  • r99
  • ...
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, ...)

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