OpenJSCAD.org icon indicating copy to clipboard operation
OpenJSCAD.org copied to clipboard

Non-manifold objects generated from union

Open platypii opened this issue 3 years ago • 2 comments

Expected Behavior

Output a manifold STL file

Actual Behavior

The generated STL file reports errors in various 3d programs. I imported to blender to inspect the non-manifold vertices. It looks like the issue is splitting faces at different sets of edge vertices:

nonmanifold

Steps to Reproduce the Problem

  1. Generate STL from:
const { cube, cylinder } = require('@jscad/modeling').primitives
const { union } = require('@jscad/modeling').booleans

function main() {
  return union(
    cube({size: 6}),
    cylinder({radius: 10, segments: 5})
  )
}
module.exports = { main }

Specifications

  • Version: 2.2.0
  • Platform: Linux 62
  • Environment: Node.js 14.3.0

platypii avatar Apr 24 '21 22:04 platypii

Thanks for the example.

This is a know issue. Also see #696 Things have improved but not perfect.

z3dev avatar Apr 25 '21 05:04 z3dev

I enjoy these kinds of issues as every application has a different take on what manifold means. Here's what MeshLab says about those 'non-manifold vertices'.

meshlab01

z3dev avatar May 07 '21 02:05 z3dev