discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Assertion failure on difference() {import(...), ...}

J
Joymaker
Wed, Apr 27, 2016 4:03 PM

The following little script imports an STL file generated generated by a
coworker in another program, and drills a hole in it. The rx and tz
functions are shorthands for rotation and translation on a specific axis;
they are well tested and work fine.

module boat2() {
difference() {
scale(10) rx(90) translate([-6.45, -3.43, -2.3])
import("boat2.stl");
tz(1.5) cylinder(d=pfdiam, h=pfheight+1, $fn=120);
}
}

Pressing F5 shows a correctly drilled hole. But pressing F6 gets the
assertion failure shown below, and effectively negates the difference
operation, so that no hole is drilled. What to do?

g http://forum.openscad.org/file/n17214/OpenSCADScreenSnapz005.png

--
View this message in context: http://forum.openscad.org/Assertion-failure-on-difference-import-tp17214.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

The following little script imports an STL file generated generated by a coworker in another program, and drills a hole in it. The rx and tz functions are shorthands for rotation and translation on a specific axis; they are well tested and work fine. module boat2() { difference() { scale(10) rx(90) translate([-6.45, -3.43, -2.3]) import("boat2.stl"); tz(1.5) cylinder(d=pfdiam, h=pfheight+1, $fn=120); } } Pressing F5 shows a correctly drilled hole. But pressing F6 gets the assertion failure shown below, and effectively negates the difference operation, so that no hole is drilled. What to do? g <http://forum.openscad.org/file/n17214/OpenSCADScreenSnapz005.png> -- View this message in context: http://forum.openscad.org/Assertion-failure-on-difference-import-tp17214.html Sent from the OpenSCAD mailing list archive at Nabble.com.
J
jpmendes
Wed, Apr 27, 2016 8:14 PM

Hi

Try to fix it first using https://modelrepair.azurewebsites.net/, netfabb or
meshlab.

jpmendes

--
View this message in context: http://forum.openscad.org/Assertion-failure-on-difference-import-tp17214p17216.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi Try to fix it first using https://modelrepair.azurewebsites.net/, netfabb or meshlab. jpmendes -- View this message in context: http://forum.openscad.org/Assertion-failure-on-difference-import-tp17214p17216.html Sent from the OpenSCAD mailing list archive at Nabble.com.
MK
Marius Kintel
Sat, Apr 30, 2016 4:35 PM

This sounds like an instance of https://github.com/openscad/openscad/issues/1184

Could you share your STL, or otherwise check the STL in an external program to check if it displays any intersecting behavior?

-Marius

This sounds like an instance of https://github.com/openscad/openscad/issues/1184 Could you share your STL, or otherwise check the STL in an external program to check if it displays any intersecting behavior? -Marius