discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: WTF ? ERROR: The given mesh is not closed! Unable to convert to CGAL_Nef_Polyhedron.

LM
Leonard Martin Struttmann
Sat, Sep 25, 2021 1:46 PM

Here is a somewhat easier, albeit slightly less precise, method of creating
your icosahedron. With this, your don't need to worry about faces.

------------------- BEGIN CODE -------------------

module icosahedron ( radius = 1 ) {
foo = atan ( 0.500 ) ;

points = [
sph_to_cart ( sph(  0,  0,      rad = radius ) ) , //  0
sph_to_cart ( sph(  36,  90 - foo, rad = radius ) ) , //  1
sph_to_cart ( sph( 108,  90 - foo, rad = radius ) ) , //  2
sph_to_cart ( sph( 180,  90 - foo, rad = radius ) ) , //  3
sph_to_cart ( sph( 252,  90 - foo, rad = radius ) ) , //  4
sph_to_cart ( sph( 324,  90 - foo, rad = radius ) ) , //  5
sph_to_cart ( sph(  72,  90 + foo, rad = radius ) ) , //  6
sph_to_cart ( sph( 144,  90 + foo, rad = radius ) ) , //  7
sph_to_cart ( sph( 216,  90 + foo, rad = radius ) ) , //  8
sph_to_cart ( sph( 288,  90 + foo, rad = radius ) ) , //  9
sph_to_cart ( sph( 360,  90 + foo, rad = radius ) ) , // 10
sph_to_cart ( sph(  0, 180,      rad = radius ) )  // 11
];

hull()
for (p=points)
{
translate(p)
sphere(0.001);
}
}

------------------- END CODE -------------------

On Fri, Sep 24, 2021 at 9:57 PM Dan White via Discuss <
discuss@lists.openscad.org> wrote:

---------- Forwarded message ----------
From: Dan White d_e_white@icloud.com
To: discuss@lists.openscad.org
Cc:
Bcc:
Date: Sat, 25 Sep 2021 00:30:58 -0000
Subject: [OpenSCAD] WTF ? ERROR: The given mesh is not closed! Unable to
convert to CGAL_Nef_Polyhedron.
Trying something with code from Geodesic Maths for OpenScad - Thingiverse
https://www.thingiverse.com/thing:10540

Preview is fine.

Trying to render coughs out

Rendering Polygon Mesh using CGAL...
ERROR: The given mesh is not closed! Unable to convert to
CGAL_Nef_Polyhedron.

If I take out the cylinder, no error.

I even extracted code from maths_geodesic.scad so I might isolate any
problem, but no joy.
OpenSCAD 2021.01
running on a MacBookPro running Big Sur (macOS 11.6)

------------------- BEGIN CODE -------------------

//include <maths_geodesic.scad>

//--------------------------------------------
//WITHOUT  <maths_geodesic.scad>
Cepsilon = 0.00000001;

function sph(long, lat, rad=1) = [long, lat, rad];

// Clean: Corrected
function clean(n) = (n < 0) ? ((n < -Cepsilon) ? n : 0) : (n < Cepsilon) ?
0 : n;

// Convert spherical to cartesian
function sph_to_cart(s) = [
clean(s[2]*sin(s[1])*cos(s[0])),
clean(s[2]*sin(s[1])*sin(s[0])),
clean(s[2]*cos(s[1]))
];
//--------------------------------------------

module icosahedron ( radius = 1 ) {
foo = atan ( 0.500 ) ;

polyhedron(
points = [
sph_to_cart ( sph(  0,  0,      rad = radius ) ) , //  0
sph_to_cart ( sph(  36,  90 - foo, rad = radius ) ) , //  1
sph_to_cart ( sph( 108,  90 - foo, rad = radius ) ) , //  2
sph_to_cart ( sph( 180,  90 - foo, rad = radius ) ) , //  3
sph_to_cart ( sph( 252,  90 - foo, rad = radius ) ) , //  4
sph_to_cart ( sph( 324,  90 - foo, rad = radius ) ) , //  5
sph_to_cart ( sph(  72,  90 + foo, rad = radius ) ) , //  6
sph_to_cart ( sph( 144,  90 + foo, rad = radius ) ) , //  7
sph_to_cart ( sph( 216,  90 + foo, rad = radius ) ) , //  8
sph_to_cart ( sph( 288,  90 + foo, rad = radius ) ) , //  9
sph_to_cart ( sph( 360,  90 + foo, rad = radius ) ) , // 10
sph_to_cart ( sph(  0, 180,      rad = radius ) )  // 11
],
faces = [
[ 0, 1, 2],
[ 0, 2, 3 ],
[ 0, 3, 4 ],
[ 0, 4, 5 ],
[ 0, 5, 1 ],
[ 1, 6, 10 ],
[ 2, 6, 1 ],
[ 2, 6, 7 ],
[ 2, 3, 7 ],
[ 3, 7, 8 ],
[ 3, 8, 4 ],
[ 4, 8, 9 ],
[ 4, 9, 5 ],
[ 5, 9, 10 ],
[ 5,10, 1 ],
[ 11, 6, 7 ],
[ 11, 7, 8 ],
[ 11, 8, 9 ],
[ 11, 9, 10 ],
[ 11, 10, 6 ]
],
convexity = 1
) ;
}

icosahedron ( ) ;
cylinder ( h = 0.01, r = 1, $fn = 25 ) ;

------------------- END CODE -------------------

Dan White | d_e_white@icloud.com
------------------------------------------------ “Sometimes I think the
surest sign that intelligent life exists elsewhere in the universe is that
none of it has tried to contact us.” (Bill Waterson: Calvin & Hobbes)

---------- Forwarded message ----------
From: Dan White via Discuss discuss@lists.openscad.org
To: discuss@lists.openscad.org
Cc: Dan White d_e_white@icloud.com
Bcc:
Date: Sat, 25 Sep 2021 00:30:58 -0000
Subject: [OpenSCAD] WTF ? ERROR: The given mesh is not closed! Unable to
convert to CGAL_Nef_Polyhedron.


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

Here is a somewhat easier, albeit slightly less precise, method of creating your icosahedron. With this, your don't need to worry about faces. # ------------------- BEGIN CODE ------------------- module icosahedron ( radius = 1 ) { foo = atan ( 0.500 ) ; points = [ sph_to_cart ( sph( 0, 0, rad = radius ) ) , // 0 sph_to_cart ( sph( 36, 90 - foo, rad = radius ) ) , // 1 sph_to_cart ( sph( 108, 90 - foo, rad = radius ) ) , // 2 sph_to_cart ( sph( 180, 90 - foo, rad = radius ) ) , // 3 sph_to_cart ( sph( 252, 90 - foo, rad = radius ) ) , // 4 sph_to_cart ( sph( 324, 90 - foo, rad = radius ) ) , // 5 sph_to_cart ( sph( 72, 90 + foo, rad = radius ) ) , // 6 sph_to_cart ( sph( 144, 90 + foo, rad = radius ) ) , // 7 sph_to_cart ( sph( 216, 90 + foo, rad = radius ) ) , // 8 sph_to_cart ( sph( 288, 90 + foo, rad = radius ) ) , // 9 sph_to_cart ( sph( 360, 90 + foo, rad = radius ) ) , // 10 sph_to_cart ( sph( 0, 180, rad = radius ) ) // 11 ]; hull() for (p=points) { translate(p) sphere(0.001); } } # ------------------- END CODE ------------------- On Fri, Sep 24, 2021 at 9:57 PM Dan White via Discuss < discuss@lists.openscad.org> wrote: > > > > ---------- Forwarded message ---------- > From: Dan White <d_e_white@icloud.com> > To: discuss@lists.openscad.org > Cc: > Bcc: > Date: Sat, 25 Sep 2021 00:30:58 -0000 > Subject: [OpenSCAD] WTF ? ERROR: The given mesh is not closed! Unable to > convert to CGAL_Nef_Polyhedron. > Trying something with code from Geodesic Maths for OpenScad - Thingiverse > <https://www.thingiverse.com/thing:10540> > > Preview is fine. > > Trying to render coughs out > > *Rendering Polygon Mesh using CGAL...* > *ERROR: The given mesh is not closed! Unable to convert to > CGAL_Nef_Polyhedron.* > > If I take out the cylinder, no error. > > I even extracted code from maths_geodesic.scad so I might isolate any > problem, but no joy. > OpenSCAD 2021.01 > running on a MacBookPro running Big Sur (macOS 11.6) > # ------------------- BEGIN CODE ------------------- > //include <maths_geodesic.scad> > > //-------------------------------------------- > //WITHOUT <maths_geodesic.scad> > Cepsilon = 0.00000001; > > function sph(long, lat, rad=1) = [long, lat, rad]; > > // Clean: Corrected > function clean(n) = (n < 0) ? ((n < -Cepsilon) ? n : 0) : (n < Cepsilon) ? > 0 : n; > > > // Convert spherical to cartesian > function sph_to_cart(s) = [ > clean(s[2]*sin(s[1])*cos(s[0])), > clean(s[2]*sin(s[1])*sin(s[0])), > clean(s[2]*cos(s[1])) > ]; > //-------------------------------------------- > > > module icosahedron ( radius = 1 ) { > foo = atan ( 0.500 ) ; > > polyhedron( > points = [ > sph_to_cart ( sph( 0, 0, rad = radius ) ) , // 0 > sph_to_cart ( sph( 36, 90 - foo, rad = radius ) ) , // 1 > sph_to_cart ( sph( 108, 90 - foo, rad = radius ) ) , // 2 > sph_to_cart ( sph( 180, 90 - foo, rad = radius ) ) , // 3 > sph_to_cart ( sph( 252, 90 - foo, rad = radius ) ) , // 4 > sph_to_cart ( sph( 324, 90 - foo, rad = radius ) ) , // 5 > sph_to_cart ( sph( 72, 90 + foo, rad = radius ) ) , // 6 > sph_to_cart ( sph( 144, 90 + foo, rad = radius ) ) , // 7 > sph_to_cart ( sph( 216, 90 + foo, rad = radius ) ) , // 8 > sph_to_cart ( sph( 288, 90 + foo, rad = radius ) ) , // 9 > sph_to_cart ( sph( 360, 90 + foo, rad = radius ) ) , // 10 > sph_to_cart ( sph( 0, 180, rad = radius ) ) // 11 > ], > faces = [ > [ 0, 1, 2], > [ 0, 2, 3 ], > [ 0, 3, 4 ], > [ 0, 4, 5 ], > [ 0, 5, 1 ], > [ 1, 6, 10 ], > [ 2, 6, 1 ], > [ 2, 6, 7 ], > [ 2, 3, 7 ], > [ 3, 7, 8 ], > [ 3, 8, 4 ], > [ 4, 8, 9 ], > [ 4, 9, 5 ], > [ 5, 9, 10 ], > [ 5,10, 1 ], > [ 11, 6, 7 ], > [ 11, 7, 8 ], > [ 11, 8, 9 ], > [ 11, 9, 10 ], > [ 11, 10, 6 ] > ], > convexity = 1 > ) ; > } > > icosahedron ( ) ; > cylinder ( h = 0.01, r = 1, $fn = 25 ) ; > # ------------------- END CODE ------------------- > > Dan White | d_e_white@icloud.com > ------------------------------------------------ “Sometimes I think the > surest sign that intelligent life exists elsewhere in the universe is that > none of it has tried to contact us.” (Bill Waterson: Calvin & Hobbes) > > > > > > ---------- Forwarded message ---------- > From: Dan White via Discuss <discuss@lists.openscad.org> > To: discuss@lists.openscad.org > Cc: Dan White <d_e_white@icloud.com> > Bcc: > Date: Sat, 25 Sep 2021 00:30:58 -0000 > Subject: [OpenSCAD] WTF ? ERROR: The given mesh is not closed! Unable to > convert to CGAL_Nef_Polyhedron. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
RP
Ronaldo Persiano
Sat, Sep 25, 2021 4:31 PM

To hull a set of points, there is a little "trick" that dispenses the small
spheres centred at the points. Just take the hull of a bogus polyhedron
having the points as vertices and an enumeration of the points as the only
face. Surprisingly, this polyhedron is accepted by OpenSCAD.

Here is one minimalist way to define a icosahedron using that trick:

module icosahedron(radius=1) {
// see https://en.wikipedia.org/wiki/Regular_icosahedron
phi  = (1+sqrt(5))/2;
scale = radius/norm([1,phi]);
verts = scale*
[ for(i=[-1,1],j=[-phi,phi]) [0,i,j],
for(i=[-1,1],j=[-phi,phi]) [i,j,0],
for(i=[-1,1],j=[-phi,phi]) [j,0,i]
] ;
hull() polyhedron(verts,[[for(i=[0:11]) i]]);
}

Em sáb., 25 de set. de 2021 às 14:46, Leonard Martin Struttmann <
lenstruttmann@gmail.com> escreveu:

Here is a somewhat easier, albeit slightly less precise, method of
creating your icosahedron. With this, your don't need to worry about faces.

------------------- BEGIN CODE -------------------

module icosahedron ( radius = 1 ) {
foo = atan ( 0.500 ) ;

points = [
sph_to_cart ( sph(  0,  0,      rad = radius ) ) , //  0
sph_to_cart ( sph(  36,  90 - foo, rad = radius ) ) , //  1
sph_to_cart ( sph( 108,  90 - foo, rad = radius ) ) , //  2
sph_to_cart ( sph( 180,  90 - foo, rad = radius ) ) , //  3
sph_to_cart ( sph( 252,  90 - foo, rad = radius ) ) , //  4
sph_to_cart ( sph( 324,  90 - foo, rad = radius ) ) , //  5
sph_to_cart ( sph(  72,  90 + foo, rad = radius ) ) , //  6
sph_to_cart ( sph( 144,  90 + foo, rad = radius ) ) , //  7
sph_to_cart ( sph( 216,  90 + foo, rad = radius ) ) , //  8
sph_to_cart ( sph( 288,  90 + foo, rad = radius ) ) , //  9
sph_to_cart ( sph( 360,  90 + foo, rad = radius ) ) , // 10
sph_to_cart ( sph(  0, 180,      rad = radius ) )  // 11
];

hull()
for (p=points)
{
translate(p)
sphere(0.001);
}
}

------------------- END CODE -------------------

On Fri, Sep 24, 2021 at 9:57 PM Dan White via Discuss <
discuss@lists.openscad.org> wrote:

---------- Forwarded message ----------
From: Dan White d_e_white@icloud.com
To: discuss@lists.openscad.org
Cc:
Bcc:
Date: Sat, 25 Sep 2021 00:30:58 -0000
Subject: [OpenSCAD] WTF ? ERROR: The given mesh is not closed! Unable to
convert to CGAL_Nef_Polyhedron.
Trying something with code from Geodesic Maths for OpenScad - Thingiverse
https://www.thingiverse.com/thing:10540

Preview is fine.

Trying to render coughs out

Rendering Polygon Mesh using CGAL...
ERROR: The given mesh is not closed! Unable to convert to
CGAL_Nef_Polyhedron.

If I take out the cylinder, no error.

I even extracted code from maths_geodesic.scad so I might isolate any
problem, but no joy.
OpenSCAD 2021.01
running on a MacBookPro running Big Sur (macOS 11.6)

------------------- BEGIN CODE -------------------

//include <maths_geodesic.scad>

//--------------------------------------------
//WITHOUT  <maths_geodesic.scad>
Cepsilon = 0.00000001;

function sph(long, lat, rad=1) = [long, lat, rad];

// Clean: Corrected
function clean(n) = (n < 0) ? ((n < -Cepsilon) ? n : 0) : (n < Cepsilon)
? 0 : n;

// Convert spherical to cartesian
function sph_to_cart(s) = [
clean(s[2]*sin(s[1])*cos(s[0])),
clean(s[2]*sin(s[1])*sin(s[0])),
clean(s[2]*cos(s[1]))
];
//--------------------------------------------

module icosahedron ( radius = 1 ) {
foo = atan ( 0.500 ) ;

polyhedron(
points = [
sph_to_cart ( sph(  0,  0,      rad = radius ) ) , //  0
sph_to_cart ( sph(  36,  90 - foo, rad = radius ) ) , //  1
sph_to_cart ( sph( 108,  90 - foo, rad = radius ) ) , //  2
sph_to_cart ( sph( 180,  90 - foo, rad = radius ) ) , //  3
sph_to_cart ( sph( 252,  90 - foo, rad = radius ) ) , //  4
sph_to_cart ( sph( 324,  90 - foo, rad = radius ) ) , //  5
sph_to_cart ( sph(  72,  90 + foo, rad = radius ) ) , //  6
sph_to_cart ( sph( 144,  90 + foo, rad = radius ) ) , //  7
sph_to_cart ( sph( 216,  90 + foo, rad = radius ) ) , //  8
sph_to_cart ( sph( 288,  90 + foo, rad = radius ) ) , //  9
sph_to_cart ( sph( 360,  90 + foo, rad = radius ) ) , // 10
sph_to_cart ( sph(  0, 180,      rad = radius ) )  // 11
],
faces = [
[ 0, 1, 2],
[ 0, 2, 3 ],
[ 0, 3, 4 ],
[ 0, 4, 5 ],
[ 0, 5, 1 ],
[ 1, 6, 10 ],
[ 2, 6, 1 ],
[ 2, 6, 7 ],
[ 2, 3, 7 ],
[ 3, 7, 8 ],
[ 3, 8, 4 ],
[ 4, 8, 9 ],
[ 4, 9, 5 ],
[ 5, 9, 10 ],
[ 5,10, 1 ],
[ 11, 6, 7 ],
[ 11, 7, 8 ],
[ 11, 8, 9 ],
[ 11, 9, 10 ],
[ 11, 10, 6 ]
],
convexity = 1
) ;
}

icosahedron ( ) ;
cylinder ( h = 0.01, r = 1, $fn = 25 ) ;

------------------- END CODE -------------------

Dan White | d_e_white@icloud.com
------------------------------------------------ “Sometimes I think the
surest sign that intelligent life exists elsewhere in the universe is that
none of it has tried to contact us.” (Bill Waterson: Calvin & Hobbes)

---------- Forwarded message ----------
From: Dan White via Discuss discuss@lists.openscad.org
To: discuss@lists.openscad.org
Cc: Dan White d_e_white@icloud.com
Bcc:
Date: Sat, 25 Sep 2021 00:30:58 -0000
Subject: [OpenSCAD] WTF ? ERROR: The given mesh is not closed! Unable to
convert to CGAL_Nef_Polyhedron.


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

To hull a set of points, there is a little "trick" that dispenses the small spheres centred at the points. Just take the hull of a bogus polyhedron having the points as vertices and an enumeration of the points as the only face. Surprisingly, this polyhedron is accepted by OpenSCAD. Here is one minimalist way to define a icosahedron using that trick: module icosahedron(radius=1) { // see https://en.wikipedia.org/wiki/Regular_icosahedron phi = (1+sqrt(5))/2; scale = radius/norm([1,phi]); verts = scale* [ for(i=[-1,1],j=[-phi,phi]) [0,i,j], for(i=[-1,1],j=[-phi,phi]) [i,j,0], for(i=[-1,1],j=[-phi,phi]) [j,0,i] ] ; hull() polyhedron(verts,[[for(i=[0:11]) i]]); } Em sáb., 25 de set. de 2021 às 14:46, Leonard Martin Struttmann < lenstruttmann@gmail.com> escreveu: > Here is a somewhat easier, albeit slightly less precise, method of > creating your icosahedron. With this, your don't need to worry about faces. > > # ------------------- BEGIN CODE ------------------- > module icosahedron ( radius = 1 ) { > foo = atan ( 0.500 ) ; > > points = [ > sph_to_cart ( sph( 0, 0, rad = radius ) ) , // 0 > sph_to_cart ( sph( 36, 90 - foo, rad = radius ) ) , // 1 > sph_to_cart ( sph( 108, 90 - foo, rad = radius ) ) , // 2 > sph_to_cart ( sph( 180, 90 - foo, rad = radius ) ) , // 3 > sph_to_cart ( sph( 252, 90 - foo, rad = radius ) ) , // 4 > sph_to_cart ( sph( 324, 90 - foo, rad = radius ) ) , // 5 > sph_to_cart ( sph( 72, 90 + foo, rad = radius ) ) , // 6 > sph_to_cart ( sph( 144, 90 + foo, rad = radius ) ) , // 7 > sph_to_cart ( sph( 216, 90 + foo, rad = radius ) ) , // 8 > sph_to_cart ( sph( 288, 90 + foo, rad = radius ) ) , // 9 > sph_to_cart ( sph( 360, 90 + foo, rad = radius ) ) , // 10 > sph_to_cart ( sph( 0, 180, rad = radius ) ) // 11 > ]; > > hull() > for (p=points) > { > translate(p) > sphere(0.001); > } > } > # ------------------- END CODE ------------------- > > On Fri, Sep 24, 2021 at 9:57 PM Dan White via Discuss < > discuss@lists.openscad.org> wrote: > >> >> >> >> ---------- Forwarded message ---------- >> From: Dan White <d_e_white@icloud.com> >> To: discuss@lists.openscad.org >> Cc: >> Bcc: >> Date: Sat, 25 Sep 2021 00:30:58 -0000 >> Subject: [OpenSCAD] WTF ? ERROR: The given mesh is not closed! Unable to >> convert to CGAL_Nef_Polyhedron. >> Trying something with code from Geodesic Maths for OpenScad - Thingiverse >> <https://www.thingiverse.com/thing:10540> >> >> Preview is fine. >> >> Trying to render coughs out >> >> *Rendering Polygon Mesh using CGAL...* >> *ERROR: The given mesh is not closed! Unable to convert to >> CGAL_Nef_Polyhedron.* >> >> If I take out the cylinder, no error. >> >> I even extracted code from maths_geodesic.scad so I might isolate any >> problem, but no joy. >> OpenSCAD 2021.01 >> running on a MacBookPro running Big Sur (macOS 11.6) >> # ------------------- BEGIN CODE ------------------- >> //include <maths_geodesic.scad> >> >> //-------------------------------------------- >> //WITHOUT <maths_geodesic.scad> >> Cepsilon = 0.00000001; >> >> function sph(long, lat, rad=1) = [long, lat, rad]; >> >> // Clean: Corrected >> function clean(n) = (n < 0) ? ((n < -Cepsilon) ? n : 0) : (n < Cepsilon) >> ? 0 : n; >> >> >> // Convert spherical to cartesian >> function sph_to_cart(s) = [ >> clean(s[2]*sin(s[1])*cos(s[0])), >> clean(s[2]*sin(s[1])*sin(s[0])), >> clean(s[2]*cos(s[1])) >> ]; >> //-------------------------------------------- >> >> >> module icosahedron ( radius = 1 ) { >> foo = atan ( 0.500 ) ; >> >> polyhedron( >> points = [ >> sph_to_cart ( sph( 0, 0, rad = radius ) ) , // 0 >> sph_to_cart ( sph( 36, 90 - foo, rad = radius ) ) , // 1 >> sph_to_cart ( sph( 108, 90 - foo, rad = radius ) ) , // 2 >> sph_to_cart ( sph( 180, 90 - foo, rad = radius ) ) , // 3 >> sph_to_cart ( sph( 252, 90 - foo, rad = radius ) ) , // 4 >> sph_to_cart ( sph( 324, 90 - foo, rad = radius ) ) , // 5 >> sph_to_cart ( sph( 72, 90 + foo, rad = radius ) ) , // 6 >> sph_to_cart ( sph( 144, 90 + foo, rad = radius ) ) , // 7 >> sph_to_cart ( sph( 216, 90 + foo, rad = radius ) ) , // 8 >> sph_to_cart ( sph( 288, 90 + foo, rad = radius ) ) , // 9 >> sph_to_cart ( sph( 360, 90 + foo, rad = radius ) ) , // 10 >> sph_to_cart ( sph( 0, 180, rad = radius ) ) // 11 >> ], >> faces = [ >> [ 0, 1, 2], >> [ 0, 2, 3 ], >> [ 0, 3, 4 ], >> [ 0, 4, 5 ], >> [ 0, 5, 1 ], >> [ 1, 6, 10 ], >> [ 2, 6, 1 ], >> [ 2, 6, 7 ], >> [ 2, 3, 7 ], >> [ 3, 7, 8 ], >> [ 3, 8, 4 ], >> [ 4, 8, 9 ], >> [ 4, 9, 5 ], >> [ 5, 9, 10 ], >> [ 5,10, 1 ], >> [ 11, 6, 7 ], >> [ 11, 7, 8 ], >> [ 11, 8, 9 ], >> [ 11, 9, 10 ], >> [ 11, 10, 6 ] >> ], >> convexity = 1 >> ) ; >> } >> >> icosahedron ( ) ; >> cylinder ( h = 0.01, r = 1, $fn = 25 ) ; >> # ------------------- END CODE ------------------- >> >> Dan White | d_e_white@icloud.com >> ------------------------------------------------ “Sometimes I think the >> surest sign that intelligent life exists elsewhere in the universe is that >> none of it has tried to contact us.” (Bill Waterson: Calvin & Hobbes) >> >> >> >> >> >> ---------- Forwarded message ---------- >> From: Dan White via Discuss <discuss@lists.openscad.org> >> To: discuss@lists.openscad.org >> Cc: Dan White <d_e_white@icloud.com> >> Bcc: >> Date: Sat, 25 Sep 2021 00:30:58 -0000 >> Subject: [OpenSCAD] WTF ? ERROR: The given mesh is not closed! Unable to >> convert to CGAL_Nef_Polyhedron. >> _______________________________________________ >> 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 >
TP
Torsten Paul
Sat, Sep 25, 2021 4:34 PM

On 25.09.21 18:31, Ronaldo Persiano wrote:

Surprisingly, this polyhedron is accepted by OpenSCAD.

Just consider this may change at any time, so use wisely.

ciao,
Torsten.

On 25.09.21 18:31, Ronaldo Persiano wrote: > Surprisingly, this polyhedron is accepted by OpenSCAD. Just consider this may change at any time, so use wisely. ciao, Torsten.
RP
Ronaldo Persiano
Sat, Sep 25, 2021 4:47 PM

Em sáb., 25 de set. de 2021 às 17:35, Torsten Paul Torsten.Paul@gmx.de
escreveu:

On 25.09.21 18:31, Ronaldo Persiano wrote:

Surprisingly, this polyhedron is accepted by OpenSCAD.

Just consider this may change at any time, so use wisely.

I would be happy if the change comes with an extension of hull() to points.

Em sáb., 25 de set. de 2021 às 17:35, Torsten Paul <Torsten.Paul@gmx.de> escreveu: > On 25.09.21 18:31, Ronaldo Persiano wrote: > > Surprisingly, this polyhedron is accepted by OpenSCAD. > > Just consider this may change at any time, so use wisely. > I would be happy if the change comes with an extension of hull() to points.
TP
Torsten Paul
Sat, Sep 25, 2021 4:51 PM

On 25.09.21 18:47, Ronaldo Persiano wrote:

I would be happy if the change comes with an extension of
hull() to points. 

Indeed, there's some big opportunities to improve, also hulling
2d primitives in 3d space (which currently also don't really
exist, just partially in preview).

See https://github.com/openscad/openscad/issues/3632 for some
discussion into that direction.

ciao,
Torsten.

On 25.09.21 18:47, Ronaldo Persiano wrote: > I would be happy if the change comes with an extension of > hull() to points.  Indeed, there's some big opportunities to improve, also hulling 2d primitives in 3d space (which currently also don't really exist, just partially in preview). See https://github.com/openscad/openscad/issues/3632 for some discussion into that direction. ciao, Torsten.
FH
Father Horton
Sat, Sep 25, 2021 5:20 PM

A plus to the small spheres is that you can get nice rounded edges if you
make them not quite so small.

A plus to the small spheres is that you can get nice rounded edges if you make them not quite so small.
LM
Leonard Martin Struttmann
Sat, Sep 25, 2021 5:35 PM

As a tangential topic, how would one put numbers on each face, i.e., turn
this into a 20-sided die for Dungeons and Dragons?

It doesn't sound easy.

On Sat, Sep 25, 2021 at 12:20 PM Father Horton fatherhorton@gmail.com
wrote:

A plus to the small spheres is that you can get nice rounded edges if you
make them not quite so small.


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

As a tangential topic, how would one put numbers on each face, i.e., turn this into a 20-sided die for Dungeons and Dragons? It doesn't sound easy. On Sat, Sep 25, 2021 at 12:20 PM Father Horton <fatherhorton@gmail.com> wrote: > A plus to the small spheres is that you can get nice rounded edges if you > make them not quite so small. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
AM
Adrian Mariano
Sat, Sep 25, 2021 5:46 PM

I would do it like this:

include <BOSL2/std.scad>
include <BOSL2/polyhedra.scad>
difference(){
regular_polyhedron("icosahedron", side=35);
regular_polyhedron("icosahedron", side=35,draw=false)
down(.3) linear_extrude(height=1)
text(str($faceindex),halign="center",valign="center");
}

However, there's a problem that the die won't be evenly weighted, so
it won't be a fair die.

On Sat, Sep 25, 2021 at 1:36 PM Leonard Martin Struttmann
lenstruttmann@gmail.com wrote:

As a tangential topic, how would one put numbers on each face, i.e., turn this into a 20-sided die for Dungeons and Dragons?

It doesn't sound easy.

On Sat, Sep 25, 2021 at 12:20 PM Father Horton fatherhorton@gmail.com wrote:

A plus to the small spheres is that you can get nice rounded edges if you make them not quite so small.


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 would do it like this: include <BOSL2/std.scad> include <BOSL2/polyhedra.scad> difference(){ regular_polyhedron("icosahedron", side=35); regular_polyhedron("icosahedron", side=35,draw=false) down(.3) linear_extrude(height=1) text(str($faceindex),halign="center",valign="center"); } However, there's a problem that the die won't be evenly weighted, so it won't be a fair die. On Sat, Sep 25, 2021 at 1:36 PM Leonard Martin Struttmann <lenstruttmann@gmail.com> wrote: > > As a tangential topic, how would one put numbers on each face, i.e., turn this into a 20-sided die for Dungeons and Dragons? > > It doesn't sound easy. > > > > On Sat, Sep 25, 2021 at 12:20 PM Father Horton <fatherhorton@gmail.com> wrote: >> >> A plus to the small spheres is that you can get nice rounded edges if you make them not quite so small. >> _______________________________________________ >> 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