discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: rendering imported stl

RW
Roger Whiteley
Sat, Feb 11, 2023 10:50 PM

Rendering STL's can be really slow, and getting a sensible position on
the OpenSCAD axes can be a pain ITA.

There is an online STL -> OpenSCAD object convertor here...
https://raviriley.github.io/STL-to-OpenSCAD-Converter/

The output is a list of point coordinates which is a fully usable
OpenSCAD code block,  which can be rendered and all the normal OpenSCAD
operations can be carried out - very handy if you don't have the
original model but like me you need to modify it, and more importantly
sits on the 0,0,0 coordinates.

If you've got a broken STL which you cannot import into OpenSCAD, I
found this process, using MeshLab can fix a broken mesh.
https://formlabs.com/blog/best-stl-file-repair-software-tools/

HTH

Roger.

Rendering STL's can be really slow, and getting a sensible position on the OpenSCAD axes can be a pain ITA. There is an online STL -> OpenSCAD object convertor here... https://raviriley.github.io/STL-to-OpenSCAD-Converter/ The output is a list of point coordinates which is a fully usable OpenSCAD code block,  which can be rendered and all the normal OpenSCAD operations can be carried out - very handy if you don't have the original model but like me you need to modify it, and more importantly sits on the 0,0,0 coordinates. If you've got a broken STL which you cannot import into OpenSCAD, I found this process, using MeshLab can fix a broken mesh. https://formlabs.com/blog/best-stl-file-repair-software-tools/ HTH Roger.
G
gmagyar6@gmail.com
Sun, Feb 12, 2023 4:48 PM

Hi Roger!

Thank you for the answer, although the question did not refer to this, but to how to edit the settings file under Windows, if there is one.

Hi Roger!\ \ Thank you for the answer, although the question did not refer to this, but to how to edit the settings file under Windows, if there is one.
G
gmagyar6@gmail.com
Sun, Feb 12, 2023 4:57 PM
I tried the stl converter. :(
I got a huge object() that is "impossible" to edit.

I would like to have a file in which the individual shapes are separated (e.g. head, chest, belly) and I can replace them and define a new part.

Is there a converter that knows this?
As if freecad would know. It just works mercilessly slowly, at least on my machine, which isn't very skilled anyway.
``` I tried the stl converter. :( I got a huge object() that is "impossible" to edit. I would like to have a file in which the individual shapes are separated (e.g. head, chest, belly) and I can replace them and define a new part. Is there a converter that knows this? As if freecad would know. It just works mercilessly slowly, at least on my machine, which isn't very skilled anyway. ```
KE
Karl Exler
Sun, Feb 12, 2023 6:47 PM

by now  I manged this (with the help from Adrian) But to be honest I
have no idea what I am doing.

e.g. what does this order??
--> regular_polyhedron("icosahedron", d=40,draw=false)

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

$fn=100;

include<../BOSL2/std.scad>
include<../BOSL2/polyhedra.scad>

t="\u2730"; // 10 euro and a smilie
t1="\u2725";
t2="\u2741";
t3="\u273F";

myfont=["Obstacle BRK","Opiated BRK","Pseudo
BRK","OpenSymbol:style=Regular"];
//myfont="OpenSymbol:style=Regular";

echo (myfont[3]);

difference(){
  sphere(d=40);
  sphere(d=39);
  regular_polyhedron("icosahedron", d=40,draw=false)
  {
      linear_extrude(5)
         text(t,halign="center",valign="center",spacing=1.1, size=6,
font = myfont[3]);
      linear_extrude(5)
         text(t1,halign="center",valign="center",spacing=1.1, size=6,
font = myfont[3]);
      linear_extrude(5)
         text(t2,halign="center",valign="center",spacing=1.1, size=6,
font = myfont[3]);
      linear_extrude(5)
         text(t3, halign="center",valign="center",spacing=1.1, size=5,
font = myfont[3]);

  }
}  ;

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Am 12.02.23 um 17:57 schrieb gmagyar6@gmail.com:

|I tried the stl converter. :( I got a huge object() that is
"impossible" to edit. I would like to have a file in which the
individual shapes are separated (e.g. head, chest, belly) and I can
replace them and define a new part. Is there a converter that knows
this? As if freecad would know. It just works mercilessly slowly, at
least on my machine, which isn't very skilled anyway.|


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

by now  I manged this (with the help from Adrian) But to be honest I have no idea what I am doing. e.g. what does this order?? --> regular_polyhedron("icosahedron", d=40,draw=false) ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: $fn=100; include<../BOSL2/std.scad> include<../BOSL2/polyhedra.scad> t="\u2730"; // 10 euro and a smilie t1="\u2725"; t2="\u2741"; t3="\u273F"; myfont=["Obstacle BRK","Opiated BRK","Pseudo BRK","OpenSymbol:style=Regular"]; //myfont="OpenSymbol:style=Regular"; echo (myfont[3]); difference(){   sphere(d=40);   sphere(d=39);   regular_polyhedron("icosahedron", d=40,draw=false)   {       linear_extrude(5)          text(t,halign="center",valign="center",spacing=1.1, size=6, font = myfont[3]);       linear_extrude(5)          text(t1,halign="center",valign="center",spacing=1.1, size=6, font = myfont[3]);       linear_extrude(5)          text(t2,halign="center",valign="center",spacing=1.1, size=6, font = myfont[3]);       linear_extrude(5)          text(t3, halign="center",valign="center",spacing=1.1, size=5, font = myfont[3]);   } }  ; :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Am 12.02.23 um 17:57 schrieb gmagyar6@gmail.com: > |I tried the stl converter. :( I got a huge object() that is > "impossible" to edit. I would like to have a file in which the > individual shapes are separated (e.g. head, chest, belly) and I can > replace them and define a new part. Is there a converter that knows > this? As if freecad would know. It just works mercilessly slowly, at > least on my machine, which isn't very skilled anyway.| > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org
AM
Adrian Mariano
Sun, Feb 12, 2023 6:57 PM

I am not sure I understand your question.  The regular_polyhedron module
creates a polyhedron and puts children on the faces.  The draw=false arg
prevents the polyhedron itself from being drawn, so you only get the
children positioned on the invisible faces.  Maybe reading here will help
you understand?

https://github.com/revarbat/BOSL2/wiki/polyhedra.scad

On Sun, Feb 12, 2023 at 1:48 PM Karl Exler karl.exler@meinklang.cc wrote:

by now  I manged this (with the help from Adrian) But to be honest I have
no idea what I am doing.

e.g. what does this order??
--> regular_polyhedron("icosahedron", d=40,draw=false)

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

$fn=100;

include<../BOSL2/std.scad>
include<../BOSL2/polyhedra.scad>

t="\u2730"; // 10 euro and a smilie
t1="\u2725";
t2="\u2741";
t3="\u273F";

myfont=["Obstacle BRK","Opiated BRK","Pseudo
BRK","OpenSymbol:style=Regular"];
//myfont="OpenSymbol:style=Regular";

echo (myfont[3]);

difference(){
sphere(d=40);
sphere(d=39);
regular_polyhedron("icosahedron", d=40,draw=false)
{
linear_extrude(5)
text(t,halign="center",valign="center",spacing=1.1, size=6, font
= myfont[3]);
linear_extrude(5)
text(t1,halign="center",valign="center",spacing=1.1, size=6, font
= myfont[3]);
linear_extrude(5)
text(t2,halign="center",valign="center",spacing=1.1, size=6, font
= myfont[3]);
linear_extrude(5)
text(t3, halign="center",valign="center",spacing=1.1, size=5,
font = myfont[3]);

}
}  ;

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Am 12.02.23 um 17:57 schrieb gmagyar6@gmail.com:

I tried the stl converter. :(
I got a huge object() that is "impossible" to edit.

I would like to have a file in which the individual shapes are separated (e.g. head, chest, belly) and I can replace them and define a new part.

Is there a converter that knows this?
As if freecad would know. It just works mercilessly slowly, at least on my machine, which isn't very skilled anyway.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

I am not sure I understand your question. The regular_polyhedron module creates a polyhedron and puts children on the faces. The draw=false arg prevents the polyhedron itself from being drawn, so you only get the children positioned on the invisible faces. Maybe reading here will help you understand? https://github.com/revarbat/BOSL2/wiki/polyhedra.scad On Sun, Feb 12, 2023 at 1:48 PM Karl Exler <karl.exler@meinklang.cc> wrote: > by now I manged this (with the help from Adrian) But to be honest I have > no idea what I am doing. > > e.g. what does this order?? > --> regular_polyhedron("icosahedron", d=40,draw=false) > > ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: > > $fn=100; > > include<../BOSL2/std.scad> > include<../BOSL2/polyhedra.scad> > > t="\u2730"; // 10 euro and a smilie > t1="\u2725"; > t2="\u2741"; > t3="\u273F"; > > myfont=["Obstacle BRK","Opiated BRK","Pseudo > BRK","OpenSymbol:style=Regular"]; > //myfont="OpenSymbol:style=Regular"; > > echo (myfont[3]); > > difference(){ > sphere(d=40); > sphere(d=39); > regular_polyhedron("icosahedron", d=40,draw=false) > { > linear_extrude(5) > text(t,halign="center",valign="center",spacing=1.1, size=6, font > = myfont[3]); > linear_extrude(5) > text(t1,halign="center",valign="center",spacing=1.1, size=6, font > = myfont[3]); > linear_extrude(5) > text(t2,halign="center",valign="center",spacing=1.1, size=6, font > = myfont[3]); > linear_extrude(5) > text(t3, halign="center",valign="center",spacing=1.1, size=5, > font = myfont[3]); > > } > } ; > > :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: > > > Am 12.02.23 um 17:57 schrieb gmagyar6@gmail.com: > > I tried the stl converter. :( > I got a huge object() that is "impossible" to edit. > > I would like to have a file in which the individual shapes are separated (e.g. head, chest, belly) and I can replace them and define a new part. > > Is there a converter that knows this? > As if freecad would know. It just works mercilessly slowly, at least on my machine, which isn't very skilled anyway. > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
CA
Carsten Arnholm
Sun, Feb 12, 2023 7:36 PM

On 12.02.2023 17:57, gmagyar6@gmail.com wrote:

|I would like to have a file in which the individual shapes are
separated (e.g. head, chest, belly) and I can replace them and define
a new part. Is there a converter that knows this|

If the various shapes are disjoint, you can do it with 'polyfix' (part
of AngelCAD).

Carsten Arnholm

On 12.02.2023 17:57, gmagyar6@gmail.com wrote: > |I would like to have a file in which the individual shapes are > separated (e.g. head, chest, belly) and I can replace them and define > a new part. Is there a converter that knows this| If the various shapes are disjoint, you can do it with 'polyfix' (part of AngelCAD). Carsten Arnholm
SM
Sándor Megyeri
Sun, Feb 12, 2023 7:57 PM

Hi Gabor!

I tried to import an STL file, it works me only, if the STL file is in the
same directory, as the OpenScad file, in which I open it.
In this case I don't have to use any slach or backslash.
I only wrote: import("Szkeg_tarto.STL") and it works.

Or do you have an other problem?

szia
Sanyi Megyeri

gmagyar6@gmail.com ezt írta (időpont: 2023. febr. 12., V, 17:58):

I tried the stl converter. :(
I got a huge object() that is "impossible" to edit.

I would like to have a file in which the individual shapes are separated (e.g. head, chest, belly) and I can replace them and define a new part.

Is there a converter that knows this?
As if freecad would know. It just works mercilessly slowly, at least on my machine, which isn't very skilled anyway.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Hi Gabor! I tried to import an STL file, it works me only, if the STL file is in the same directory, as the OpenScad file, in which I open it. In this case I don't have to use any slach or backslash. I only wrote: import("Szkeg_tarto.STL") and it works. Or do you have an other problem? szia Sanyi Megyeri <gmagyar6@gmail.com> ezt írta (időpont: 2023. febr. 12., V, 17:58): > I tried the stl converter. :( > I got a huge object() that is "impossible" to edit. > > I would like to have a file in which the individual shapes are separated (e.g. head, chest, belly) and I can replace them and define a new part. > > Is there a converter that knows this? > As if freecad would know. It just works mercilessly slowly, at least on my machine, which isn't very skilled anyway. > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >