discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Two bodies together won't render (Non-valid 2-manifold)

J
janek
Tue, Apr 14, 2020 12:11 PM

While creating stones for a board came, I stumbled upon a problem with
creating an object consisting of an extruded curve and an underlying slab.

The extruded curve alone renders well, the same does the slab.. They do not
share any common face, nor any edge, that typically produces the "Object may
not be a valid 2-manifold and may need repair" error - I made them overlap.

The file is here:
https://github.com/jan-koupil/marsal-a-spion/blob/fortum-discussion/pruzkumnik.scad

After commenting out one object (line 13-14) or another (line 16-25) the
other one renders and exports perfectly (and can be exported as valid STL
and e.g. sliced), but not together.

Any ideas how to repair? Many thanks.

--
Sent from: http://forum.openscad.org/

While creating stones for a board came, I stumbled upon a problem with creating an object consisting of an extruded curve and an underlying slab. The extruded curve alone renders well, the same does the slab.. They do not share any common face, nor any edge, that typically produces the "Object may not be a valid 2-manifold and may need repair" error - I made them overlap. The file is here: https://github.com/jan-koupil/marsal-a-spion/blob/fortum-discussion/pruzkumnik.scad After commenting out one object (line 13-14) or another (line 16-25) the other one renders and exports perfectly (and can be exported as valid STL and e.g. sliced), but not together. Any ideas how to repair? Many thanks. -- Sent from: http://forum.openscad.org/
S
shadowwynd
Tue, Apr 14, 2020 12:59 PM

Something in your bezier definition is tripping the error.

Removing a tiny offset, and adding it back (before the linear extrude)
resolves the error - smooths over whatever tiny glitch is throwing it.

offset (r=0.1) offset (r=-0.1) resize([0,symbolL,0], auto=true)
horse();

--
Sent from: http://forum.openscad.org/

Something in your bezier definition is tripping the error. Removing a tiny offset, and adding it back (before the linear extrude) resolves the error - smooths over whatever tiny glitch is throwing it. offset (r=0.1) offset (r=-0.1) resize([0,symbolL,0], auto=true) horse(); -- Sent from: http://forum.openscad.org/
RP
Ronaldo Persiano
Tue, Apr 14, 2020 5:39 PM

There is a self-intersection in this polygon:

bezier_polygon(
[[[51.96973053, -97.39126590500001], [53.639185125000004, -96.685862555],
[50.582437275000004, -98.237749925], [52.628106990000006, -96.920997005]],
[[52.628106990000006, -96.920997005], [53.004322110000004,
-96.66234911000001], [52.698647325, -96.685862555], [53.357023785,
-96.52126844]],
[[53.357023785, -96.52126844], [54.485669145, -99.24882806],
[52.839727995000004, -99.50747595500002], [53.262970005,
-100.84774232000001]],
[[53.262970005, -100.84774232000001], [54.955938045, -100.118825525],
[56.037556515000006, -96.80342978], [54.744317040000006, -94.8283004]],
[[54.744317040000006, -94.8283004], [52.816214550000005, -91.86560633],
[49.430278470000005, -95.039921405], [51.96973053, -97.39126590500001]],
[[51.96973053, -97.39126590500001], [51.96973053, -97.39126590500001],
[51.96973053, -97.39126590500001], [51.96973053, -97.39126590500001]],
[[51.96973053, -97.39126590500001], [51.96973053, -97.39126590500001],
[51.96973053, -97.39126590500001], [51.96973053, -97.39126590500001]]]
);

Em ter., 14 de abr. de 2020 às 13:12, janek jan.koupil@gmail.com escreveu:

While creating stones for a board came, I stumbled upon a problem with
creating an object consisting of an extruded curve and an underlying slab.

The extruded curve alone renders well, the same does the slab.. They do not
share any common face, nor any edge, that typically produces the "Object
may
not be a valid 2-manifold and may need repair" error - I made them overlap.

The file is here:

https://github.com/jan-koupil/marsal-a-spion/blob/fortum-discussion/pruzkumnik.scad

After commenting out one object (line 13-14) or another (line 16-25) the
other one renders and exports perfectly (and can be exported as valid STL
and e.g. sliced), but not together.

Any ideas how to repair? Many thanks.

--
Sent from: http://forum.openscad.org/


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

There is a self-intersection in this polygon: bezier_polygon( [[[51.96973053, -97.39126590500001], [53.639185125000004, -96.685862555], [50.582437275000004, -98.237749925], [52.628106990000006, -96.920997005]], [[52.628106990000006, -96.920997005], [53.004322110000004, -96.66234911000001], [52.698647325, -96.685862555], [53.357023785, -96.52126844]], [[53.357023785, -96.52126844], [54.485669145, -99.24882806], [52.839727995000004, -99.50747595500002], [53.262970005, -100.84774232000001]], [[53.262970005, -100.84774232000001], [54.955938045, -100.118825525], [56.037556515000006, -96.80342978], [54.744317040000006, -94.8283004]], [[54.744317040000006, -94.8283004], [52.816214550000005, -91.86560633], [49.430278470000005, -95.039921405], [51.96973053, -97.39126590500001]], [[51.96973053, -97.39126590500001], [51.96973053, -97.39126590500001], [51.96973053, -97.39126590500001], [51.96973053, -97.39126590500001]], [[51.96973053, -97.39126590500001], [51.96973053, -97.39126590500001], [51.96973053, -97.39126590500001], [51.96973053, -97.39126590500001]]] ); Em ter., 14 de abr. de 2020 às 13:12, janek <jan.koupil@gmail.com> escreveu: > While creating stones for a board came, I stumbled upon a problem with > creating an object consisting of an extruded curve and an underlying slab. > > The extruded curve alone renders well, the same does the slab.. They do not > share any common face, nor any edge, that typically produces the "Object > may > not be a valid 2-manifold and may need repair" error - I made them overlap. > > The file is here: > > https://github.com/jan-koupil/marsal-a-spion/blob/fortum-discussion/pruzkumnik.scad > > After commenting out one object (line 13-14) or another (line 16-25) the > other one renders and exports perfectly (and can be exported as valid STL > and e.g. sliced), but not together. > > Any ideas how to repair? Many thanks. > > > > -- > Sent from: http://forum.openscad.org/ > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >