discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Mesh not closed, model does preview but not render

MP
Marcus Poller
Fri, Jan 5, 2024 4:51 PM

Dear OpenSCAD users,

I want to export my model into STL for 3D printing, but do not get past the preview phase.
This model is simple enough to share with you (attached), but you will need the experimental (?) roof()-Feature of the nightly builds.

It is a simple plastic piece for wooden toy train tracks in the shape of a gym dumbbell. I could probably work around roof() to achieve the same model, but I would like to understand if I did something wrong.

I fail on

 OpenSCAD-2024.01.03.ai18006-x86_64.AppImage
   ERROR: Rendering cancelled by exception Unauthorized intersections of constraints

 OpenSCAD-2023.03.05.ai13734-x86_64.AppImage
   ERROR: CGAL error in CGALUtils::applyUnion3DHybrid: CGAL ERROR: assertion violation!

I attached:

  • OpenSCAD source code
  • error messages in the source code
  • a preview the model

Cheers,
Marcus

Dear OpenSCAD users, I want to export my model into STL for 3D printing, but do not get past the preview phase. This model is simple enough to share with you (attached), but you will need the experimental (?) roof()-Feature of the nightly builds. It is a simple plastic piece for wooden toy train tracks in the shape of a gym dumbbell. I could probably work around roof() to achieve the same model, but I would like to understand if I did something wrong. I fail on OpenSCAD-2024.01.03.ai18006-x86_64.AppImage ERROR: Rendering cancelled by exception Unauthorized intersections of constraints OpenSCAD-2023.03.05.ai13734-x86_64.AppImage ERROR: CGAL error in CGALUtils::applyUnion3DHybrid: CGAL ERROR: assertion violation! I attached: * OpenSCAD source code * error messages in the source code * a preview the model Cheers, Marcus
P
pca006132
Fri, Jan 5, 2024 5:08 PM

Maybe try to enable manifold instead of fast-csg? We have some bug fixes
there.

Note that you should flush the cache before trying to do F6 render, the
cache from F5 preview may interfere with manifold (known bug) and cause
failure.

On Sat, Jan 6, 2024, 12:52 AM Marcus Poller via Discuss <
discuss@lists.openscad.org> wrote:

Dear OpenSCAD users,

I want to export my model into STL for 3D printing, but do not get past
the preview phase.
This model is simple enough to share with you (attached), but you will
need the experimental (?) roof()-Feature of the nightly builds.

It is a simple plastic piece for wooden toy train tracks in the shape of a
gym dumbbell. I could probably work around roof() to achieve the same
model, but I would like to understand if I did something wrong.

I fail on

  OpenSCAD-2024.01.03.ai18006-x86_64.AppImage
    ERROR: Rendering cancelled by exception Unauthorized intersections

of constraints

  OpenSCAD-2023.03.05.ai13734-x86_64.AppImage
    ERROR: CGAL error in CGALUtils::applyUnion3DHybrid: CGAL ERROR:

assertion violation!

I attached:

  • OpenSCAD source code
  • error messages in the source code
  • a preview the model

Cheers,
Marcus


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Maybe try to enable manifold instead of fast-csg? We have some bug fixes there. Note that you should flush the cache before trying to do F6 render, the cache from F5 preview may interfere with manifold (known bug) and cause failure. On Sat, Jan 6, 2024, 12:52 AM Marcus Poller via Discuss < discuss@lists.openscad.org> wrote: > Dear OpenSCAD users, > > I want to export my model into STL for 3D printing, but do not get past > the preview phase. > This model is simple enough to share with you (attached), but you will > need the experimental (?) roof()-Feature of the nightly builds. > > It is a simple plastic piece for wooden toy train tracks in the shape of a > gym dumbbell. I could probably work around roof() to achieve the same > model, but I would like to understand if I did something wrong. > > I fail on > > OpenSCAD-2024.01.03.ai18006-x86_64.AppImage > ERROR: Rendering cancelled by exception Unauthorized intersections > of constraints > > OpenSCAD-2023.03.05.ai13734-x86_64.AppImage > ERROR: CGAL error in CGALUtils::applyUnion3DHybrid: CGAL ERROR: > assertion violation! > > I attached: > > * OpenSCAD source code > * error messages in the source code > * a preview the model > > Cheers, > Marcus > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
NH
nop head
Fri, Jan 5, 2024 5:23 PM

The cached preview can also break CGAL, so it is always worth trying a
flush between F5 and F6.

On Fri, 5 Jan 2024 at 17:09, pca006132 via Discuss <
discuss@lists.openscad.org> wrote:

Maybe try to enable manifold instead of fast-csg? We have some bug fixes
there.

Note that you should flush the cache before trying to do F6 render, the
cache from F5 preview may interfere with manifold (known bug) and cause
failure.

On Sat, Jan 6, 2024, 12:52 AM Marcus Poller via Discuss <
discuss@lists.openscad.org> wrote:

Dear OpenSCAD users,

I want to export my model into STL for 3D printing, but do not get past
the preview phase.
This model is simple enough to share with you (attached), but you will
need the experimental (?) roof()-Feature of the nightly builds.

It is a simple plastic piece for wooden toy train tracks in the shape of
a gym dumbbell. I could probably work around roof() to achieve the same
model, but I would like to understand if I did something wrong.

I fail on

  OpenSCAD-2024.01.03.ai18006-x86_64.AppImage
    ERROR: Rendering cancelled by exception Unauthorized intersections

of constraints

  OpenSCAD-2023.03.05.ai13734-x86_64.AppImage
    ERROR: CGAL error in CGALUtils::applyUnion3DHybrid: CGAL ERROR:

assertion violation!

I attached:

  • OpenSCAD source code
  • error messages in the source code
  • a preview the model

Cheers,
Marcus


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

The cached preview can also break CGAL, so it is always worth trying a flush between F5 and F6. On Fri, 5 Jan 2024 at 17:09, pca006132 via Discuss < discuss@lists.openscad.org> wrote: > Maybe try to enable manifold instead of fast-csg? We have some bug fixes > there. > > Note that you should flush the cache before trying to do F6 render, the > cache from F5 preview may interfere with manifold (known bug) and cause > failure. > > On Sat, Jan 6, 2024, 12:52 AM Marcus Poller via Discuss < > discuss@lists.openscad.org> wrote: > >> Dear OpenSCAD users, >> >> I want to export my model into STL for 3D printing, but do not get past >> the preview phase. >> This model is simple enough to share with you (attached), but you will >> need the experimental (?) roof()-Feature of the nightly builds. >> >> It is a simple plastic piece for wooden toy train tracks in the shape of >> a gym dumbbell. I could probably work around roof() to achieve the same >> model, but I would like to understand if I did something wrong. >> >> I fail on >> >> OpenSCAD-2024.01.03.ai18006-x86_64.AppImage >> ERROR: Rendering cancelled by exception Unauthorized intersections >> of constraints >> >> OpenSCAD-2023.03.05.ai13734-x86_64.AppImage >> ERROR: CGAL error in CGALUtils::applyUnion3DHybrid: CGAL ERROR: >> assertion violation! >> >> I attached: >> >> * OpenSCAD source code >> * error messages in the source code >> * a preview the model >> >> Cheers, >> Marcus >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
MP
Marcus Poller
Fri, Jan 5, 2024 5:32 PM

Maybe try to enable manifold instead of fast-csg? We have some bug fixes
there.
Note that you should flush the cache before trying to do F6 render

That has been unsuccessfull in OpenSCAD-2024.01.03.ai18006-x86_64
Rendering Polygon Mesh using Manifold...
ERROR: [manifold] Input mesh is not closed!
ERROR: [manifold] Surface_mesh -> Manifold conversion failed: NotManifold

Do you happen to have any other suggestion?

Cheers
Marcus

> Maybe try to enable manifold instead of fast-csg? We have some bug fixes > there. > Note that you should flush the cache before trying to do F6 render That has been unsuccessfull in OpenSCAD-2024.01.03.ai18006-x86_64 Rendering Polygon Mesh using Manifold... ERROR: [manifold] Input mesh is not closed! ERROR: [manifold] Surface_mesh -> Manifold conversion failed: NotManifold Do you happen to have any other suggestion? Cheers Marcus
J
jon
Fri, Jan 5, 2024 5:35 PM

What does "failure" mean?  Error message or silent creation of an
incorrectly formed model?

On 1/5/2024 12:08 PM, pca006132 via Discuss wrote:

Maybe try to enable manifold instead of fast-csg? We have some bug
fixes there.

Note that you should flush the cache before trying to do F6 render,
the cache from F5 preview may interfere with manifold (known bug) and
cause failure.

What does "failure" mean?  Error message or silent creation of an incorrectly formed model? On 1/5/2024 12:08 PM, pca006132 via Discuss wrote: > Maybe try to enable manifold instead of fast-csg? We have some bug > fixes there. > > Note that you should flush the cache before trying to do F6 render, > the cache from F5 preview may interfere with manifold (known bug) and > cause failure.
MK
Marius Kintel
Fri, Jan 5, 2024 5:39 PM

I suspect that, for some reason, roof() generates a non-manifold object and Manifold complains.
Definitely worth looking into; we don’t have that many tests for this particular combination yet.

@pca006132 I can reproduce this on macOS built from master - can you?

-Marius

On Jan 5, 2024, at 12:32, Marcus Poller via Discuss discuss@lists.openscad.org wrote:

Maybe try to enable manifold instead of fast-csg? We have some bug fixes
there.
Note that you should flush the cache before trying to do F6 render

That has been unsuccessfull in OpenSCAD-2024.01.03.ai18006-x86_64
Rendering Polygon Mesh using Manifold...
ERROR: [manifold] Input mesh is not closed!
ERROR: [manifold] Surface_mesh -> Manifold conversion failed: NotManifold

Do you happen to have any other suggestion?

Cheers
Marcus


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

I suspect that, for some reason, roof() generates a non-manifold object and Manifold complains. Definitely worth looking into; we don’t have that many tests for this particular combination yet. @pca006132 I can reproduce this on macOS built from master - can you? -Marius > On Jan 5, 2024, at 12:32, Marcus Poller via Discuss <discuss@lists.openscad.org> wrote: > >> Maybe try to enable manifold instead of fast-csg? We have some bug fixes >> there. >> Note that you should flush the cache before trying to do F6 render > > That has been unsuccessfull in OpenSCAD-2024.01.03.ai18006-x86_64 > Rendering Polygon Mesh using Manifold... > ERROR: [manifold] Input mesh is not closed! > ERROR: [manifold] Surface_mesh -> Manifold conversion failed: NotManifold > > Do you happen to have any other suggestion? > > Cheers > Marcus > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
P
pca006132
Fri, Jan 5, 2024 5:40 PM

I guess roof is creating some invalid geometry because it was written
without using indexed polyset, but this is just a guess, I cannot verify it
for now. Sorry cannot help much here, not with my computer now.

What does "failure" mean?  Error message or silent creation of an

incorrectly formed model?

Error message.

I guess roof is creating some invalid geometry because it was written without using indexed polyset, but this is just a guess, I cannot verify it for now. Sorry cannot help much here, not with my computer now. > What does "failure" mean? Error message or silent creation of an incorrectly formed model? Error message.
GS
Guenther Sohler
Fri, Jan 5, 2024 6:21 PM

Is this a connector for Brio  wooden train railways ?

On Fri, Jan 5, 2024 at 5:51 PM Marcus Poller via Discuss <
discuss@lists.openscad.org> wrote:

Dear OpenSCAD users,

I want to export my model into STL for 3D printing, but do not get past
the preview phase.
This model is simple enough to share with you (attached), but you will
need the experimental (?) roof()-Feature of the nightly builds.

It is a simple plastic piece for wooden toy train tracks in the shape of a
gym dumbbell. I could probably work around roof() to achieve the same
model, but I would like to understand if I did something wrong.

I fail on

  OpenSCAD-2024.01.03.ai18006-x86_64.AppImage
    ERROR: Rendering cancelled by exception Unauthorized intersections

of constraints

  OpenSCAD-2023.03.05.ai13734-x86_64.AppImage
    ERROR: CGAL error in CGALUtils::applyUnion3DHybrid: CGAL ERROR:

assertion violation!

I attached:

  • OpenSCAD source code
  • error messages in the source code
  • a preview the model

Cheers,
Marcus


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Is this a connector for Brio wooden train railways ? On Fri, Jan 5, 2024 at 5:51 PM Marcus Poller via Discuss < discuss@lists.openscad.org> wrote: > Dear OpenSCAD users, > > I want to export my model into STL for 3D printing, but do not get past > the preview phase. > This model is simple enough to share with you (attached), but you will > need the experimental (?) roof()-Feature of the nightly builds. > > It is a simple plastic piece for wooden toy train tracks in the shape of a > gym dumbbell. I could probably work around roof() to achieve the same > model, but I would like to understand if I did something wrong. > > I fail on > > OpenSCAD-2024.01.03.ai18006-x86_64.AppImage > ERROR: Rendering cancelled by exception Unauthorized intersections > of constraints > > OpenSCAD-2023.03.05.ai13734-x86_64.AppImage > ERROR: CGAL error in CGALUtils::applyUnion3DHybrid: CGAL ERROR: > assertion violation! > > I attached: > > * OpenSCAD source code > * error messages in the source code > * a preview the model > > Cheers, > Marcus > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
MP
Marcus Poller
Fri, Jan 5, 2024 10:27 PM

Guenther Sohler via Discuss wrote:

Is this a connector for Brio  wooden train railways ?

Yes, it is.

Guenther Sohler via Discuss wrote: > Is this a connector for Brio wooden train railways ? Yes, it is.
RW
Raymond West
Sat, Jan 6, 2024 12:16 AM

I use a bit of code from thingyverse for filleting this sort of shape.
You could modify it for chamfers, I expect. Or, you could make the shape
a bit smaller, and use Minkowski with a sphere. I've attached the
filleting code below. (fillets3d.scad)

On 05/01/2024 16:51, Marcus Poller via Discuss wrote:

Dear OpenSCAD users,

I want to export my model into STL for 3D printing, but do not get past the preview phase.
This model is simple enough to share with you (attached), but you will need the experimental (?) roof()-Feature of the nightly builds.

It is a simple plastic piece for wooden toy train tracks in the shape of a gym dumbbell. I could probably work around roof() to achieve the same model, but I would like to understand if I did something wrong.

I fail on

   OpenSCAD-2024.01.03.ai18006-x86_64.AppImage
     ERROR: Rendering cancelled by exception Unauthorized intersections of constraints

   OpenSCAD-2023.03.05.ai13734-x86_64.AppImage
     ERROR: CGAL error in CGALUtils::applyUnion3DHybrid: CGAL ERROR: assertion violation!

I attached:

  • OpenSCAD source code
  • error messages in the source code
  • a preview the model

Cheers,
Marcus


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

I use a bit of code from thingyverse for filleting this sort of shape. You could modify it for chamfers, I expect. Or, you could make the shape a bit smaller, and use Minkowski with a sphere. I've attached the filleting code below. (fillets3d.scad) On 05/01/2024 16:51, Marcus Poller via Discuss wrote: > Dear OpenSCAD users, > > I want to export my model into STL for 3D printing, but do not get past the preview phase. > This model is simple enough to share with you (attached), but you will need the experimental (?) roof()-Feature of the nightly builds. > > It is a simple plastic piece for wooden toy train tracks in the shape of a gym dumbbell. I could probably work around roof() to achieve the same model, but I would like to understand if I did something wrong. > > I fail on > > OpenSCAD-2024.01.03.ai18006-x86_64.AppImage > ERROR: Rendering cancelled by exception Unauthorized intersections of constraints > > OpenSCAD-2023.03.05.ai13734-x86_64.AppImage > ERROR: CGAL error in CGALUtils::applyUnion3DHybrid: CGAL ERROR: assertion violation! > > I attached: > > * OpenSCAD source code > * error messages in the source code > * a preview the model > > Cheers, > Marcus > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org