discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] puzzlecutlib rendering problem & STL export error Current top level object is empty.

NH
nop head
Sun, May 29, 2016 9:54 AM

I replied with a version that works but it is blocked for being too long.

On 29 May 2016 at 10:51, nop head nop.head@gmail.com wrote:

This repaired version seems to work. With Michael's version I got the
error message but instead of an empty object I got something that looked
like the original. I exported that and repaired it in Netfabb. That version
will then cut with Michael's test.

On 29 May 2016 at 08:36, FourthDr who_doctor@hotmail.com wrote:

Hi MichaelAtOz:

I thought about gluing the parts together, but I don't think that would
work
very will with PLA. The parts are for the Cyclone PCB Factory. Basically a
mini milling machine for PCB's and other light materials like acrylic wood
etc.. The parts are for the X axis, so they need to be solid enough for
left-right motion and to support a Dremel on top. An interlocking cut
would
make the two parts stronger than just glue. I suppose I could screw them
together. It just would have been so much more elegant to be able to make
the puzzle cut. You would think this problem comes up frequently enough
that
some of the major 3D software publishers would have a built-in solution
for
when a part is too big to print.

--
View this message in context:
http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17454.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


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

I replied with a version that works but it is blocked for being too long. On 29 May 2016 at 10:51, nop head <nop.head@gmail.com> wrote: > This repaired version seems to work. With Michael's version I got the > error message but instead of an empty object I got something that looked > like the original. I exported that and repaired it in Netfabb. That version > will then cut with Michael's test. > > On 29 May 2016 at 08:36, FourthDr <who_doctor@hotmail.com> wrote: > >> Hi MichaelAtOz: >> >> I thought about gluing the parts together, but I don't think that would >> work >> very will with PLA. The parts are for the Cyclone PCB Factory. Basically a >> mini milling machine for PCB's and other light materials like acrylic wood >> etc.. The parts are for the X axis, so they need to be solid enough for >> left-right motion and to support a Dremel on top. An interlocking cut >> would >> make the two parts stronger than just glue. I suppose I could screw them >> together. It just would have been so much more elegant to be able to make >> the puzzle cut. You would think this problem comes up frequently enough >> that >> some of the major 3D software publishers would have a built-in solution >> for >> when a part is too big to print. >> >> >> >> -- >> View this message in context: >> http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17454.html >> Sent from the OpenSCAD mailing list archive at Nabble.com. >> >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> > >
N
nophead
Sun, May 29, 2016 10:29 AM

It made it to the forum though.

--
View this message in context: http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17457.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

It made it to the forum though. -- View this message in context: http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17457.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Sun, May 29, 2016 10:33 AM

nophead wrote

I replied with a version that works but it is blocked for being too long.

Lets see in an Admin can fix that...
nopheads_repaired.stl
http://forum.openscad.org/file/n17458/nopheads_repaired.stl


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17458.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

nophead wrote > I replied with a version that works but it is blocked for being too long. Lets see in an Admin can fix that... nopheads_repaired.stl <http://forum.openscad.org/file/n17458/nopheads_repaired.stl> ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17458.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Sun, May 29, 2016 10:38 AM

nophead wrote

It made it to the forum though.

I just approved it, but didn't see it in the forum, but in the mailing list.
Hence above forum post, which seems to have worked.

Nophead, what version did you use to export that? (and I presume when you
say Michael's version you mean ..._fixed.stl?)


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17459.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

nophead wrote > It made it to the forum though. I just approved it, but didn't see it in the forum, but in the mailing list. Hence above forum post, which seems to have worked. Nophead, what version did you use to export that? (and I presume when you say Michael's version you mean ..._fixed.stl?) ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17459.html Sent from the OpenSCAD mailing list archive at Nabble.com.
NH
nop head
Sun, May 29, 2016 12:21 PM

On 29 May 2016 at 11:38, MichaelAtOz oz.at.michael@gmail.com wrote:

nophead wrote

It made it to the forum though.

I just approved it, but didn't see it in the forum, but in the mailing
list.
Hence above forum post, which seems to have worked.

Nophead, what version did you use to export that? (and I presume when you
say Michael's version you mean ..._fixed.stl?)

I used OpenScad 2015.05.16 (git e673fff).

Yes it came from your td17440_Cycl_XleftFrame-base_cut_fixed.stl. Netfabb
doesn't show any errors in that but once it has passed through OpenScad /
CGAL it shows 20 holes and 17 shells.


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the
Public Domain; to the extent possible under law, I have waived all
copyright and related or neighbouring rights to this work. Obviously
inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it!
http://www.ourfairdeal.org/  time is running out!

View this message in context:
http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17459.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


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

On 29 May 2016 at 11:38, MichaelAtOz <oz.at.michael@gmail.com> wrote: > nophead wrote > > It made it to the forum though. > > I just approved it, but didn't see it in the forum, but in the mailing > list. > Hence above forum post, which seems to have worked. > > Nophead, what version did you use to export that? (and I presume when you > say Michael's version you mean ..._fixed.stl?) > I used OpenScad 2015.05.16 (git e673fff). Yes it came from your td17440_Cycl_XleftFrame-base_cut_fixed.stl. Netfabb doesn't show any errors in that but once it has passed through OpenScad / CGAL it shows 20 holes and 17 shells. ​ > > > ----- > Admin - PM me if you need anything, or if I've done something stupid... > > Unless specifically shown otherwise above, my contribution is in the > Public Domain; to the extent possible under law, I have waived all > copyright and related or neighbouring rights to this work. Obviously > inclusion of works of previous authors is not included in the above. > > The TPP is no simple “trade agreement.” Fight it! > http://www.ourfairdeal.org/ time is running out! > -- > View this message in context: > http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17459.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
F
FourthDr
Mon, May 30, 2016 8:17 PM

Hi MichaelAtOz:

I see this attached STL actually compiles with no problems. What did you do
to the file? Or to the OpenSCAD code? Has an admin responded to your request
yet? If not, you can PM(not sure if this forum supports that) me and I'll
arrange an ftp upload if needed. Let me know. I actually will need to make
changes to my part, so having working OpenSCAD code or a work-around
procedure would be helpful. Thank you for the help :-)

--
View this message in context: http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17475.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi MichaelAtOz: I see this attached STL actually compiles with no problems. What did you do to the file? Or to the OpenSCAD code? Has an admin responded to your request yet? If not, you can PM(not sure if this forum supports that) me and I'll arrange an ftp upload if needed. Let me know. I actually will need to make changes to my part, so having working OpenSCAD code or a work-around procedure would be helpful. Thank you for the help :-) -- View this message in context: http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17475.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Mon, May 30, 2016 9:46 PM

Nophead loaded that STL saying  above "This repaired version seems to work.
With Michael's version [aka the ...fixed.stl] I got the error message but
instead of an empty object I got something that looked like the original. I
exported that and repaired it in Netfabb. That version will then cut with
Michael's test.".

I just loaded his STL after his post got held up, as I'm an Admin.

I just tried to reproduce what he did and can't get the same result (tho not
using his exact version). The STL still gets the error, and Netfabb doesn't
show any issues.

So sorry, not solved...


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17476.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Nophead loaded that STL saying above "This repaired version seems to work. With Michael's version [aka the ...fixed.stl] I got the error message but instead of an empty object I got something that looked like the original. I exported that and repaired it in Netfabb. That version will then cut with Michael's test.". I just loaded his STL after his post got held up, as I'm an Admin. I just tried to reproduce what he did and can't get the same result (tho not using his exact version). The STL still gets the error, and Netfabb doesn't show any issues. So sorry, not solved... ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17476.html Sent from the OpenSCAD mailing list archive at Nabble.com.
NH
nop head
Mon, May 30, 2016 10:28 PM

Does the version I upload work with the original code?

I think the root problem is the old bug that OpenScad cannot import STL
files with vertices that are close together because it snaps them to a grid
and breaks the topology. Until OpenScad can import STL files properly there
will be an endless stream of these reports.

On 30 May 2016 at 22:46, MichaelAtOz oz.at.michael@gmail.com wrote:

Nophead loaded that STL saying  above "This repaired version seems to work.
With Michael's version [aka the ...fixed.stl] I got the error message but
instead of an empty object I got something that looked like the original. I
exported that and repaired it in Netfabb. That version will then cut with
Michael's test.".

I just loaded his STL after his post got held up, as I'm an Admin.

I just tried to reproduce what he did and can't get the same result (tho
not
using his exact version). The STL still gets the error, and Netfabb doesn't
show any issues.

So sorry, not solved...


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the
Public Domain; to the extent possible under law, I have waived all
copyright and related or neighbouring rights to this work. Obviously
inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it!
http://www.ourfairdeal.org/  time is running out!

View this message in context:
http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17476.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


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

Does the version I upload work with the original code? I think the root problem is the old bug that OpenScad cannot import STL files with vertices that are close together because it snaps them to a grid and breaks the topology. Until OpenScad can import STL files properly there will be an endless stream of these reports. On 30 May 2016 at 22:46, MichaelAtOz <oz.at.michael@gmail.com> wrote: > Nophead loaded that STL saying above "This repaired version seems to work. > With Michael's version [aka the ...fixed.stl] I got the error message but > instead of an empty object I got something that looked like the original. I > exported that and repaired it in Netfabb. That version will then cut with > Michael's test.". > > I just loaded his STL after his post got held up, as I'm an Admin. > > I just tried to reproduce what he did and can't get the same result (tho > not > using his exact version). The STL still gets the error, and Netfabb doesn't > show any issues. > > So sorry, not solved... > > > > ----- > Admin - PM me if you need anything, or if I've done something stupid... > > Unless specifically shown otherwise above, my contribution is in the > Public Domain; to the extent possible under law, I have waived all > copyright and related or neighbouring rights to this work. Obviously > inclusion of works of previous authors is not included in the above. > > The TPP is no simple “trade agreement.” Fight it! > http://www.ourfairdeal.org/ time is running out! > -- > View this message in context: > http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17476.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
M
MichaelAtOz
Tue, May 31, 2016 12:03 AM

nophead wrote

Does the version I upload work with the original code?

With the puzzle cut code, yes.

I think the root problem is the old bug that OpenScad cannot import STL
files with vertices that are close together because it snaps them to a
grid
and breaks the topology. Until OpenScad can import STL files properly
there
will be an endless stream of these reports.

Meshlab shows lots of self intersecting vertices. Fewer in the _fixed.stl.
But when ticking the 'unify' box on load there are none.
However, when exporting that (from meshlab), that STL still gets the CGAL
error.

With your hint, I changed it to;

module cutInTwo()
{
scale(0.5)
translate([0,-20,0])
xMaleCut()
rotate ([0,-90,90])
scale(2)
translate([55,-35,-16])
import("td17440 Cycl_XleftFrame-base_cut_fixed.stl"
, convexity=8);;
}

Which works. Seems the up scaled vertices are ok, so presumably it is the
NefPoly which has issues with the close vertices (if my vague understanding
is anywhere close). ?? clue

@ForthDr you will/may need to fiddle with the translate()'s as the scale(2)
moves the object.

The scale() change did not fix the degenerate issue, so you will need to run
the STL thru Netfabb online if you get that error.


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17478.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

nophead wrote > Does the version I upload work with the original code? With the puzzle cut code, yes. > I think the root problem is the old bug that OpenScad cannot import STL > files with vertices that are close together because it snaps them to a > grid > and breaks the topology. Until OpenScad can import STL files properly > there > will be an endless stream of these reports. Meshlab shows lots of self intersecting vertices. Fewer in the _fixed.stl. But when ticking the 'unify' box on load there are none. However, when exporting that (from meshlab), that STL still gets the CGAL error. With your hint, I changed it to; module cutInTwo() { scale(0.5) translate([0,-20,0]) xMaleCut() rotate ([0,-90,90]) scale(2) translate([55,-35,-16]) import("td17440 Cycl_XleftFrame-base_cut_fixed.stl" , convexity=8);; } Which works. Seems the up scaled vertices are ok, so presumably it is the NefPoly which has issues with the close vertices (if my vague understanding is anywhere close). ?? clue @ForthDr you will/may need to fiddle with the translate()'s as the scale(2) moves the object. The scale() change did not fix the degenerate issue, so you will need to run the STL thru Netfabb online if you get that error. ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17478.html Sent from the OpenSCAD mailing list archive at Nabble.com.
F
FourthDr
Tue, May 31, 2016 1:12 AM

Hi nophead:

I took the STL (nopheads_repaired.stl) that MichaelAtOz posted for you and
plugged it into the original puzzlecutdemo2.scad using the original
puzzlecutlib.scad library and the file rendered just fine. It also exported
to stl no problems. So, what can I do to get revisions of this part to do
the same without any problems?

--
View this message in context: http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17479.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi nophead: I took the STL (nopheads_repaired.stl) that MichaelAtOz posted for you and plugged it into the original puzzlecutdemo2.scad using the original puzzlecutlib.scad library and the file rendered just fine. It also exported to stl no problems. So, what can I do to get revisions of this part to do the same without any problems? -- View this message in context: http://forum.openscad.org/puzzlecutlib-rendering-problem-STL-export-error-Current-top-level-object-is-empty-tp17440p17479.html Sent from the OpenSCAD mailing list archive at Nabble.com.