discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

gettin centimeter

CB
c.buhtz@posteo.jp
Sun, Jan 24, 2016 1:36 PM

Hi,
I used this model as STL in the current 2015.3 OpenSCAD.
http://www.3dcontentcentral.de/secure/download-model.aspx?catalogid=171&id=587075

I want to know how big (in centimeter) my model or parts of it are when
I would print them out with a 3d-printer or a CEC-machine.

I found "View/Show Scale Markers". But I don't know which the measure
unit is here and how I can modify that.

background of my question:
I want to build a case for my Pi2 (the model) including a 2.5" HDD.
So I have to deal with real existing objects and need to put them into
the model in the correct scale.

GnuPGP-Key ID 0751A8EC

Hi, I used this model as STL in the current 2015.3 OpenSCAD. <http://www.3dcontentcentral.de/secure/download-model.aspx?catalogid=171&id=587075> I want to know how big (in centimeter) my model or parts of it are when I would print them out with a 3d-printer or a CEC-machine. I found "View/Show Scale Markers". But I don't know which the measure unit is here and how I can modify that. background of my question: I want to build a case for my Pi2 (the model) including a 2.5" HDD. So I have to deal with real existing objects and need to put them into the model in the correct scale. -- GnuPGP-Key ID 0751A8EC
CB
c.buhtz@posteo.jp
Sun, Jan 24, 2016 1:56 PM

On 2016-01-24 14:36 c.buhtz@posteo.jp wrote:

I found "View/Show Scale Markers". But I don't know which the measure
unit is here and how I can modify that.

The problem for me is here that the scale marker only viewed on the
axes. I would like to have a ruler I to use everywhere in the model.

GnuPGP-Key ID 0751A8EC

On 2016-01-24 14:36 <c.buhtz@posteo.jp> wrote: > I found "View/Show Scale Markers". But I don't know which the measure > unit is here and how I can modify that. The problem for me is here that the scale marker only viewed on the axes. I would like to have a ruler I to use everywhere in the model. -- GnuPGP-Key ID 0751A8EC
NH
nop head
Sun, Jan 24, 2016 2:10 PM

I can't see any of the models you link to because I am not a member of the
site.

The easiest way to measure dimensions is to use Netfabb studio, which is
free.

On 24 January 2016 at 13:56, c.buhtz@posteo.jp wrote:

On 2016-01-24 14:36 c.buhtz@posteo.jp wrote:

I found "View/Show Scale Markers". But I don't know which the measure
unit is here and how I can modify that.

The problem for me is here that the scale marker only viewed on the
axes. I would like to have a ruler I to use everywhere in the model.

GnuPGP-Key ID 0751A8EC


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

I can't see any of the models you link to because I am not a member of the site. The easiest way to measure dimensions is to use Netfabb studio, which is free. On 24 January 2016 at 13:56, <c.buhtz@posteo.jp> wrote: > On 2016-01-24 14:36 <c.buhtz@posteo.jp> wrote: > > I found "View/Show Scale Markers". But I don't know which the measure > > unit is here and how I can modify that. > > The problem for me is here that the scale marker only viewed on the > axes. I would like to have a ruler I to use everywhere in the model. > -- > GnuPGP-Key ID 0751A8EC > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
NH
nop head
Sun, Jan 24, 2016 2:11 PM

OpenScad is unit less but the convention for 3D printing is 1 unit is 1mm.

On 24 January 2016 at 14:10, nop head nop.head@gmail.com wrote:

I can't see any of the models you link to because I am not a member of the
site.

The easiest way to measure dimensions is to use Netfabb studio, which is
free.

On 24 January 2016 at 13:56, c.buhtz@posteo.jp wrote:

On 2016-01-24 14:36 c.buhtz@posteo.jp wrote:

I found "View/Show Scale Markers". But I don't know which the measure
unit is here and how I can modify that.

The problem for me is here that the scale marker only viewed on the
axes. I would like to have a ruler I to use everywhere in the model.

GnuPGP-Key ID 0751A8EC


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

OpenScad is unit less but the convention for 3D printing is 1 unit is 1mm. On 24 January 2016 at 14:10, nop head <nop.head@gmail.com> wrote: > I can't see any of the models you link to because I am not a member of the > site. > > The easiest way to measure dimensions is to use Netfabb studio, which is > free. > > On 24 January 2016 at 13:56, <c.buhtz@posteo.jp> wrote: > >> On 2016-01-24 14:36 <c.buhtz@posteo.jp> wrote: >> > I found "View/Show Scale Markers". But I don't know which the measure >> > unit is here and how I can modify that. >> >> The problem for me is here that the scale marker only viewed on the >> axes. I would like to have a ruler I to use everywhere in the model. >> -- >> GnuPGP-Key ID 0751A8EC >> >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> > >
N
Neon22
Sun, Jan 24, 2016 11:37 PM

Typically you can load() the stl into OpenSCAD and then try to replicate
parts of it using the openSCAD language. Visually testing against the stl
file at each stage.

As nophead states the "usual" apporach is that one unit in openSCAD = 1 mm.

If you want a dimensioned drawing than you can work away at your model using
this library:

--
View this message in context: http://forum.openscad.org/gettin-centimeter-tp15867p15875.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Typically you can load() the stl into OpenSCAD and then try to replicate parts of it using the openSCAD language. Visually testing against the stl file at each stage. As nophead states the "usual" apporach is that one unit in openSCAD = 1 mm. If you want a dimensioned drawing than you can work away at your model using this library: - https://github.com/sidorof/dimlines - http://www.cannymachines.com/entries/9/openscad_dimensioned_drawings - alas nothing comes without effort -- View this message in context: http://forum.openscad.org/gettin-centimeter-tp15867p15875.html Sent from the OpenSCAD mailing list archive at Nabble.com.
AG
Alex Gibson
Sun, Jan 15, 2017 6:59 PM

Hi there

This is a bit cumbersome but it works consistently and is less 'manual':

  1. import stl into openscad
  2. use 'projection()' to take a 2d cross section at a precise height.
  3. export the cross section as a DXF file
  4. open the dxf file in a CAD or CAM package which reports dimensions
  5. rotate the file as necessary, then take the width as reported by the
    tool.

(I happen to use RDWorks 7 as this is what drives our laser cutter).

I would love OpenSCAD to be able to able to report dimensions - very simply
it  a bit like this:

dimension name_for_this_dimension_set ()
{
Module_name();
}

This would echo to the console the maximum x and Y if Module_name() produces
a 2d drawing, or x, y and z if it produces a 3d part

Calling:
name_for_this_dimension_set ();

would draw a cube or square of those maximum dimensions - a bounding box.

Does this already exist????

Cheers
Alex

-----Original Message-----
From: Discuss [mailto:discuss-bounces@lists.openscad.org] On Behalf Of
Neon22
Sent: 24 January 2016 23:38
To: discuss@lists.openscad.org
Subject: Re: [OpenSCAD] gettin centimeter

Typically you can load() the stl into OpenSCAD and then try to replicate
parts of it using the openSCAD language. Visually testing against the stl
file at each stage.

As nophead states the "usual" apporach is that one unit in openSCAD = 1 mm.

If you want a dimensioned drawing than you can work away at your model using
this library:

--
View this message in context:
http://forum.openscad.org/gettin-centimeter-tp15867p15875.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


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.6189 / Virus Database: 4522/11629 - Release Date: 02/15/16

Hi there This is a bit cumbersome but it works consistently and is less 'manual': 1) import stl into openscad 2) use 'projection()' to take a 2d cross section at a precise height. 3) export the cross section as a DXF file 4) open the dxf file in a CAD or CAM package which reports dimensions 5) rotate the file as necessary, then take the width as reported by the tool. (I happen to use RDWorks 7 as this is what drives our laser cutter). I would love OpenSCAD to be able to able to report dimensions - very simply it a bit like this: dimension name_for_this_dimension_set () { Module_name(); } This would echo to the console the maximum x and Y if Module_name() produces a 2d drawing, or x, y and z if it produces a 3d part Calling: name_for_this_dimension_set (); would draw a cube or square of those maximum dimensions - a bounding box. Does this already exist???? Cheers Alex -----Original Message----- From: Discuss [mailto:discuss-bounces@lists.openscad.org] On Behalf Of Neon22 Sent: 24 January 2016 23:38 To: discuss@lists.openscad.org Subject: Re: [OpenSCAD] gettin centimeter Typically you can load() the stl into OpenSCAD and then try to replicate parts of it using the openSCAD language. Visually testing against the stl file at each stage. As nophead states the "usual" apporach is that one unit in openSCAD = 1 mm. If you want a dimensioned drawing than you can work away at your model using this library: - https://github.com/sidorof/dimlines - http://www.cannymachines.com/entries/9/openscad_dimensioned_drawings - alas nothing comes without effort -- View this message in context: http://forum.openscad.org/gettin-centimeter-tp15867p15875.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 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2015.0.6189 / Virus Database: 4522/11629 - Release Date: 02/15/16
RP
Ronaldo Persiano
Sun, Jan 15, 2017 9:30 PM

2017-01-15 16:59 GMT-02:00 Alex Gibson alex@alexgibson.net:

Does this already exist????

Sorry but the answer is no. The reason I have been reading is: preview does
not really compute boolean operations; therefore, it does not have access
to the model vertices; the vertices are computed by CGAL after a render.

What I don't understand however is how preview compute resize() ?

See this code:

resize([150,150])

intersection(){
rotate(45) square(100,center=true);
square(100,center=true);
}

Without the resize, the figure is a regular octogon, with 100 units side to
side. After the resize, it has 150 units side to side, a uniform scale of
1.5.
How this scale was computed without knowing the polygon bounding box? I see
no way. But if the bounding box is known why not allow a code to retrieve
it by a function?

The only reason I can imagine is that functions cannot receive models as a
parameter in the current state of the language. And this would prevent any
inquires on models.

2017-01-15 16:59 GMT-02:00 Alex Gibson <alex@alexgibson.net>: > > Does this already exist???? > > Sorry but the answer is no. The reason I have been reading is: preview does not really compute boolean operations; therefore, it does not have access to the model vertices; the vertices are computed by CGAL after a render. What I don't understand however is how preview compute resize() ? See this code: resize([150,150]) > intersection(){ > rotate(45) square(100,center=true); > square(100,center=true); > } > Without the resize, the figure is a regular octogon, with 100 units side to side. After the resize, it has 150 units side to side, a uniform scale of 1.5. How this scale was computed without knowing the polygon bounding box? I see no way. But if the bounding box is known why not allow a code to retrieve it by a function? The only reason I can imagine is that functions cannot receive models as a parameter in the current state of the language. And this would prevent any inquires on models.
TP
Torsten Paul
Sun, Jan 15, 2017 9:36 PM

On 01/15/2017 10:30 PM, Ronaldo Persiano wrote:

What I don't understand however is how preview compute resize() ?

It forces the actual calculation, similar to other operations
that are not possible to preview like minkowski() or hull().

So internally the geometry will be known, there's currently no
means to communicate this information to the back to the script.

ciao,
Torsten.

On 01/15/2017 10:30 PM, Ronaldo Persiano wrote: > What I don't understand however is how preview compute resize() ? > It forces the actual calculation, similar to other operations that are not possible to preview like minkowski() or hull(). So internally the geometry will be known, there's currently no means to communicate this information to the back to the script. ciao, Torsten.
M
MichaelAtOz
Mon, Jan 16, 2017 4:18 AM

tp3 wrote

It forces the actual calculation, similar to other operations
that are not possible to preview like minkowski() or hull().

...and takes more time so the preview is slow, like using render(). [not
complaining, explaining]

Here is something I use sometimes, you can translate it and/or rotate it to
where you needs it:

rule();
module rule(x=150,h=5) {
rw=1;
for (s=[0:10:x]) { //echo(s=s,s%100);
translate([s-rw/2,0,-( (s%100!=0)?h:h1.5)])
color( (s%50) ? "cyan" : "magenta")
cube([rw,rw,(s%100!=0?h:h
2)+h ]);
}
}


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/gettin-centimeter-tp15867p20107.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

tp3 wrote > It forces the actual calculation, similar to other operations > that are not possible to preview like minkowski() or hull(). ...and takes more time so the preview is slow, like using render(). [not complaining, explaining] Here is something I use sometimes, you can translate it and/or rotate it to where you needs it: rule(); module rule(x=150,h=5) { rw=1; for (s=[0:10:x]) { //echo(s=s,s%100); translate([s-rw/2,0,-( (s%100!=0)?h:h*1.5)]) color( (s%50) ? "cyan" : "magenta") cube([rw,rw,(s%100!=0?h:h*2)+h ]); } } ----- 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/gettin-centimeter-tp15867p20107.html Sent from the OpenSCAD mailing list archive at Nabble.com.