Hi,
I am new to the this and OpenScad. Although I have designed a few pieces for
my 3D printer that worked great. This simple one I am try to print will not
work correctly. The below code should print a small rectangle 28mm x 14mm x
3mm in size with two holes that are 9mm and 11mm in diameter. When I print
the file it produces a rectangle that is 38mm x 24mm x 12mm and the holes
are 18mm and 20mm in diameter. I just can't seem to find my error. The
simple code I am using is posted below.
$fn=10;
difference() {
cube([28, 14, 2], center=true);
translate([-8, 0, -1.5]) {
cylinder(r=4.5, h=3);
}
translate([6.5, 0, -1.5]) {
cylinder(r=5.5, h=3);
}
}
--
View this message in context: http://forum.openscad.org/Size-Issue-tp20843.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
I can't see anything wrong with your code, or the stl it produces (checked in
Netfabb), except that it's 28mm x 14mm x 2mm (which is what's written in
your code). It's like 10 got added to every dimension. Can you post the stl
file you produce here? Also, what version of OpenSCAD are you using? I'd
suspect some slicing or printer setup problem if the stl is correct.
Ian
--
View this message in context: http://forum.openscad.org/Size-Issue-tp20843p20846.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Thank you very much for your reply. I am running the following version of
OpenSCAD: "OpenSCAD version 2015.03-2".
Here is the stl file it created:
Extruder_Wire_Tube_Holder.stl
http://forum.openscad.org/file/n20849/Extruder_Wire_Tube_Holder.stl
Also the G-Code created by the XYZ slicer apears to be good also:
http://forum.openscad.org/file/n20849/g-code.jpg
--
View this message in context: http://forum.openscad.org/Size-Issue-tp20843p20849.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Bozotclown1970 wrote
Thank you very much for your reply. I am running the following version of
OpenSCAD: "OpenSCAD version 2015.03-2".
Here is the stl file it created:
Extruder_Wire_Tube_Holder.stl
http://forum.openscad.org/file/n20849/Extruder_Wire_Tube_Holder.stl
Also the G-Code created by the XYZ slicer apears to be good also:
http://forum.openscad.org/file/n20849/g-code.jpg
As droftarts said, as you coded cube([28, 14, 2], center=true); it is 2
thick.
Netfabb shows the size as:
http://forum.openscad.org/file/n20851/size.jpg
So your printer settings are off, lookup 'calibration' in your printer doco.
But as droftarts said it does look like 10 was added everywhere, off the top
of my head I can't explain where that is likely to come from...
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.
View this message in context: http://forum.openscad.org/Size-Issue-tp20843p20851.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
"38mm x 24mm x 12mm and the holes are 18mm and 20mm in diameter"
Are you sure? Diameters 18mm + 20mm = 38mm which means the holes are as big
as the rectangle is long?
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.
View this message in context: http://forum.openscad.org/Size-Issue-tp20843p20852.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Again, the following is the whole piece of code I am trying to print! As you
can see the diameter is 9mm and the other diameter is 11mm. The printer is
setup to print in mm and all of my other prints are fine even the other
OpenSCAD files print fine. Just having an issue with this one.
"$fn=10;
difference() {
cube([28, 14, 2], center=true);
translate([-8, 0, -1.5]) {
cylinder(r=4.5, h=3);
}
translate([6.5, 0, -1.5]) {
cylinder(r=5.5, h=3);
}
} "
--
View this message in context: http://forum.openscad.org/Size-Issue-tp20843p20853.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Well there is nothing wrong with the STL file that OpenSCAD creates. It must
be a problem with your slicer or printer. What are you using?
As Michael has said, I also can't imaging anything that adds 10 to all
dimensions, especially Z.
Here is the STL viewed in NetFabb
http://forum.openscad.org/file/n20855/holes.png
--
View this message in context: http://forum.openscad.org/Size-Issue-tp20843p20855.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
I am using XYZ davinci JR and XYZ software that I believe uses Slic3R. I am
confused as other OpenSCAD projects I created work fine. They are both boxes
with lids, not as simple as this one.
--
View this message in context: http://forum.openscad.org/Size-Issue-tp20843p20857.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
So you get an object that looks like this?
http://forum.openscad.org/file/n20858/holes.png
I just can't see how that can happen when the STL is correct. The outside
dimensions have increased by 10 and the hole diameters have increased by 9
and now overlap?
--
View this message in context: http://forum.openscad.org/Size-Issue-tp20843p20858.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
That is great. Now you are seeing the delima I am facing. Below is a picture
of one of the items I printed.
http://forum.openscad.org/file/n20859/IMG_20170312_152952586.jpg
--
View this message in context: http://forum.openscad.org/Size-Issue-tp20843p20859.html
Sent from the OpenSCAD mailing list archive at Nabble.com.