Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4771 > unrolled thread
| Started by | Roger Bagula <roger.bagula@gmail.com> |
|---|---|
| First post | 2011-09-06 07:57 +0000 |
| Last post | 2011-09-20 10:12 +0000 |
| Articles | 12 — 5 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Texture in version 8, fine, but don't export...? Roger Bagula <roger.bagula@gmail.com> - 2011-09-06 07:57 +0000
Re: Texture in version 8, fine, but don't export...? Roger Bagula <roger.bagula@gmail.com> - 2011-09-07 09:46 +0000
Re: Texture in version 8, fine, but don't export...? Murray Eisenberg <murray@math.umass.edu> - 2011-09-08 09:28 +0000
Re: Texture in version 8, fine, but don't export...? Roger Bagula <roger.bagula@gmail.com> - 2011-09-12 08:34 +0000
Re: Texture in version 8, fine, but don't export...? Murray Eisenberg <murray@math.umass.edu> - 2011-09-13 11:24 +0000
Re: Texture in version 8, fine, but don't export...? Yves Klett <yves.klett@googlemail.com> - 2011-09-15 08:38 +0000
Re: Texture in version 8, fine, but don't export...? W Craig Carter <ccarter@mit.edu> - 2011-09-14 09:14 +0000
Re: Texture in version 8, fine, but don't export...? "Hans Michel" <hmichel@cox.net> - 2011-09-08 09:30 +0000
Re: Texture in version 8, fine, but don't export...? Roger Bagula <roger.bagula@gmail.com> - 2011-09-12 08:33 +0000
Re: Texture in version 8, fine, but don't export...? "Hans Michel" <hmichel@cox.net> - 2011-09-16 09:56 +0000
Re: Texture in version 8, fine, but don't export...? Roger Bagula <roger.bagula@gmail.com> - 2011-09-17 10:31 +0000
Re: Texture in version 8, fine, but don't export...? Roger Bagula <roger.bagula@gmail.com> - 2011-09-20 10:12 +0000
| From | Roger Bagula <roger.bagula@gmail.com> |
|---|---|
| Date | 2011-09-06 07:57 +0000 |
| Subject | Texture in version 8, fine, but don't export...? |
| Message-ID | <j44jpj$8vb$1@smc.vnet.net> |
I spent some time uploading to Scultpeo models of one of my surfaces
with both of the new texture types ( color and Black and white)
and I got some pretty pictures in Mathematica.
Maybe I'm doing something wrong, so I made up these demo
programs of Steiner's Roman surface/ projective plane.
In my experiments the surface colors come through, but not the
textures.
Clear[x, y, z, m, t, p]
(*Steiner's projective plane as a spherical harmonic*)
x = Cos[t]*Sin[p];
y = Sin[t]*Sin[p];
z = Cos[p];
m = {{0, x, -y},
{-x, 0, z},
{y, -z, 0}};
mm = m.Transpose[m];
w = {mm[[1, 2]], mm[[1, 3]], mm[[2, 3]]};
(* color texture graphic*)
g1 =
ParametricPlot3D[w, {t, 0, Pi}, {p, 0, Pi}, PlotPoints -> 100,
TextureCoordinateFunction -> ({2 #4, #5} &),
PlotStyle ->
Directive[Pink, Specularity[White, 50],
Texture[ExampleData[{"ColorTexture", "Metal4"}]]], Axes -> False,
Mesh -> None, Boxed -> False, PlotPoints -> 100]
Export["Steiner1.3ds", g1]
Export["Steiner1.obj", g1]
Import["Steiner1.3ds"]
(* texture graphic*)
g2 =
ParametricPlot3D[w, {t, 0, Pi}, {p, 0, Pi}, PlotRange -> All,
Boxed -> False, Axes -> False, PlotPoints -> 100, Mesh -> None,
TextureCoordinateFunction -> ({2 #4, #5} &),
PlotStyle ->
Directive[Cyan, Specularity[White, 50],
Texture[ExampleData[{"Texture", "Bubbles3"}]]]]
Export["Steiner2.3ds", g2]
Export["Steiner2.obj", g2]
Import["Steiner2.3ds"]
Try these yourself...Pink and Cyan is what you get back...
[toc] | [next] | [standalone]
| From | Roger Bagula <roger.bagula@gmail.com> |
|---|---|
| Date | 2011-09-07 09:46 +0000 |
| Message-ID | <j47eh2$l4u$1@smc.vnet.net> |
| In reply to | #4771 |
So how to get real textures into Mathematica
that show up in models?
I don't notice the guys working at Mathematica jumping in on this one, LOL.
I'm learning this stuff the hard way by doing and cr....
Here is a working "VertexData" version using ListSurfacePlot3D:
( as you can see this is my 5th experiment: the first two went very
badly....):
Clear[x, y, z, w, r, g, ga, gb, gc]
x = If[Sin[t]*Cos[p] < 0, Sin[t]*Cos[p]/2, Sin[t]*Cos[p]];
y = Sin[t]*Exp[1 - Sin[p]];
z = Cos[t];
w = {-x, 2*y, z};
r = x^2 + y^2 + z^2;
g = Flatten[Table[N[w/r], {t, 0, Pi, Pi/70}, {p, -Pi, Pi, 2*Pi/70}],
1];
Length[g]
ga = ListSurfacePlot3D[g, MaxPlotPoints -> 140, Lighting -> "Neutral",
Mesh -> None, Axes -> False, Boxed -> False,
PlotStyle -> {Pink, Specularity[White, 20]}]
gb = ParametricPlot3D[N[w/r], {t, 0, Pi}, {p, -Pi, Pi},
PlotPoints -> 100,
PlotStyle -> Directive[Purple, Specularity[White, 50]],
Axes -> False, Mesh -> None, Boxed -> False]
gc = Show[{ga, gb}, PlotRange -> All]
Export["AlienSpaceshipListSurfacePlot5.3ds", gc]
Export["AlienSpaceshipListSurfacePlot5.obj", gc]
Export["AlienSpaceshipListSurfacePlot5.stl", gc]
The obj takes forever and ever..
[toc] | [prev] | [next] | [standalone]
| From | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| Date | 2011-09-08 09:28 +0000 |
| Message-ID | <j4a1s5$42h$1@smc.vnet.net> |
| In reply to | #4771 |
Just a quick suggestion without my trying it here...
Try exporting to PostScript, view that with GhostView, say. Only then
use some graphics utility to convert to the formats you require.
It's been the case, in the past at least, that even direct export to pdf
can lose some graphics features, but exporting first to .eps and then
converting that to .pdf works.
On 9/7/11 5:40 AM, Roger Bagula wrote:
> So how to get real textures into Mathematica
> that show up in models?
> I don't notice the guys working at Mathematica jumping in on this one, LOL.
> I'm learning this stuff the hard way by doing and cr....
> Here is a working "VertexData" version using ListSurfacePlot3D:
> ( as you can see this is my 5th experiment: the first two went very
> badly....):
>
> Clear[x, y, z, w, r, g, ga, gb, gc]
> x = If[Sin[t]*Cos[p]< 0, Sin[t]*Cos[p]/2, Sin[t]*Cos[p]];
> y = Sin[t]*Exp[1 - Sin[p]];
> z = Cos[t];
> w = {-x, 2*y, z};
> r = x^2 + y^2 + z^2;
> g = Flatten[Table[N[w/r], {t, 0, Pi, Pi/70}, {p, -Pi, Pi, 2*Pi/70}],
> 1];
> Length[g]
> ga = ListSurfacePlot3D[g, MaxPlotPoints -> 140, Lighting -> "Neutral",
> Mesh -> None, Axes -> False, Boxed -> False,
> PlotStyle -> {Pink, Specularity[White, 20]}]
> gb = ParametricPlot3D[N[w/r], {t, 0, Pi}, {p, -Pi, Pi},
> PlotPoints -> 100,
> PlotStyle -> Directive[Purple, Specularity[White, 50]],
> Axes -> False, Mesh -> None, Boxed -> False]
> gc = Show[{ga, gb}, PlotRange -> All]
> Export["AlienSpaceshipListSurfacePlot5.3ds", gc]
> Export["AlienSpaceshipListSurfacePlot5.obj", gc]
> Export["AlienSpaceshipListSurfacePlot5.stl", gc]
>
> The obj takes forever and ever..
>
--
Murray Eisenberg murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
[toc] | [prev] | [next] | [standalone]
| From | Roger Bagula <roger.bagula@gmail.com> |
|---|---|
| Date | 2011-09-12 08:34 +0000 |
| Message-ID | <j4kg69$kkc$1@smc.vnet.net> |
| In reply to | #4829 |
On Sep 8, 2:28 am, Murray Eisenberg <mur...@math.umass.edu> wrote: > Just a quick suggestion without my trying it here... > > Try exporting to PostScript, view that with GhostView, say. Only then > use some graphics utility to convert to the formats you require. > > It's been the case, in the past at least, that even direct export to pdf > can lose some graphics features, but exporting first to .eps and then > converting that to .pdf works. > Those eps and pdf are 2d graphics files: the export I'm talking about is to ray trace and 3d printers as in 3ds and obj files with mtl color files.
[toc] | [prev] | [next] | [standalone]
| From | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| Date | 2011-09-13 11:24 +0000 |
| Message-ID | <j4neh6$52b$1@smc.vnet.net> |
| In reply to | #4829 |
So far as I can recall, there _are_ instances of folks printing 3D from Mathematica on those expensive machines. In fact, I have a small sculpture, received as a gift, that allegedly was designed and printed using Mathematica. But whether the printing was directly from Mathematica or through some intermediary export format I don't know. On 9/12/11 4:23 AM, Roger Bagula wrote: > On Sep 8, 2:28 am, Murray Eisenberg<mur...@math.umass.edu> wrote: >> Just a quick suggestion without my trying it here... >> >> Try exporting to PostScript, view that with GhostView, say. Only then >> use some graphics utility to convert to the formats you require. >> >> It's been the case, in the past at least, that even direct export to pdf >> can lose some graphics features, but exporting first to .eps and then >> converting that to .pdf works. >> > Those eps and pdf are 2d graphics files: > the export I'm talking about is to ray trace > and 3d printers as in 3ds and obj files with mtl color files. > > -- Murray Eisenberg murray@math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305
[toc] | [prev] | [next] | [standalone]
| From | Yves Klett <yves.klett@googlemail.com> |
|---|---|
| Date | 2011-09-15 08:38 +0000 |
| Message-ID | <j4sdig$seq$1@smc.vnet.net> |
| In reply to | #4907 |
...some stuff works out of the box here with an EOS laser-sinter machine (if e.g. the face normals are properly oriented). I only got into trouble with more complex (pseudo-solid) shells. Luc Barthelet did a presentation in Champaign last year on the very topic: http://www.wolfram.com/events/techconf2010/presentations/LucBarthelet.zip Regards, Yves Am 13.09.2011 13:24, schrieb Murray Eisenberg: > So far as I can recall, there _are_ instances of folks printing 3D from > Mathematica on those expensive machines. In fact, I have a small > sculpture, received as a gift, that allegedly was designed and printed > using Mathematica. But whether the printing was directly from > Mathematica or through some intermediary export format I don't know. > > On 9/12/11 4:23 AM, Roger Bagula wrote: >> On Sep 8, 2:28 am, Murray Eisenberg<mur...@math.umass.edu> wrote: >>> Just a quick suggestion without my trying it here... >>> >>> Try exporting to PostScript, view that with GhostView, say. Only then >>> use some graphics utility to convert to the formats you require. >>> >>> It's been the case, in the past at least, that even direct export to pdf >>> can lose some graphics features, but exporting first to .eps and then >>> converting that to .pdf works. >>> >> Those eps and pdf are 2d graphics files: >> the export I'm talking about is to ray trace >> and 3d printers as in 3ds and obj files with mtl color files. >> >> >
[toc] | [prev] | [next] | [standalone]
| From | W Craig Carter <ccarter@mit.edu> |
|---|---|
| Date | 2011-09-14 09:14 +0000 |
| Message-ID | <j4pra9$fj0$1@smc.vnet.net> |
| In reply to | #4829 |
Thanks Murray, Here are a few examples of printed and CNC created objects that were created (in part) with Mathematica: http://www.zeitnews.org/applied-sciences/buildings-made-with-a-printer.html http://redchalksketch.wordpress.com/2011/02/04/proving-how-technology-can-live-in-harmony-with-nature/ http://www.pddnet.com/editorial-kim-ukura-the-science-of-material-ecology-092310/ W Craig Carter Professor of Materials Science, MIT On Sep 13, 2011, at Tue, Sep 13, 11 ---7:19 AM, Murray Eisenberg wrote: > So far as I can recall, there _are_ instances of folks printing 3D from > Mathematica on those expensive machines. In fact, I have a small > sculpture, received as a gift, that allegedly was designed and printed > using Mathematica. But whether the printing was directly from > Mathematica or through some intermediary export format I don't know. > > On 9/12/11 4:23 AM, Roger Bagula wrote: >> On Sep 8, 2:28 am, Murray Eisenberg<mur...@math.umass.edu> wrote: >>> Just a quick suggestion without my trying it here... >>> >>> Try exporting to PostScript, view that with GhostView, say. Only then >>> use some graphics utility to convert to the formats you require. >>> >>> It's been the case, in the past at least, that even direct export to pdf >>> can lose some graphics features, but exporting first to .eps and then >>> converting that to .pdf works. >>> >> Those eps and pdf are 2d graphics files: >> the export I'm talking about is to ray trace >> and 3d printers as in 3ds and obj files with mtl color files. >> >> > > -- > Murray Eisenberg murray@math.umass.edu > Mathematics & Statistics Dept. > Lederle Graduate Research Tower phone 413 549-1020 (H) > University of Massachusetts 413 545-2859 (W) > 710 North Pleasant Street fax 413 545-1801 > Amherst, MA 01003-9305 >
[toc] | [prev] | [next] | [standalone]
| From | "Hans Michel" <hmichel@cox.net> |
|---|---|
| Date | 2011-09-08 09:30 +0000 |
| Message-ID | <j4a200$43g$1@smc.vnet.net> |
| In reply to | #4771 |
If I had time I would chime in detail but all I can offer at this time is
see:
http://mathgis.blogspot.com/2011/05/fun-with-texture.html
Computer Graphics from the folks at WRI have made it into the movies, so I
doubt it is a lack of expertise in this field.
Hans
-----Original Message-----
From: Roger Bagula [mailto:roger.bagula@gmail.com]
Sent: Wednesday, September 07, 2011 4:41 AM
Subject: Re: Texture in version 8, fine, but don't export...?
So how to get real textures into Mathematica
that show up in models?
I don't notice the guys working at Mathematica jumping in on this one, LOL.
I'm learning this stuff the hard way by doing and cr....
Here is a working "VertexData" version using ListSurfacePlot3D:
( as you can see this is my 5th experiment: the first two went very
badly....):
Clear[x, y, z, w, r, g, ga, gb, gc]
x = If[Sin[t]*Cos[p] < 0, Sin[t]*Cos[p]/2, Sin[t]*Cos[p]];
y = Sin[t]*Exp[1 - Sin[p]];
z = Cos[t];
w = {-x, 2*y, z};
r = x^2 + y^2 + z^2;
g = Flatten[Table[N[w/r], {t, 0, Pi, Pi/70}, {p, -Pi, Pi, 2*Pi/70}],
1];
Length[g]
ga = ListSurfacePlot3D[g, MaxPlotPoints -> 140, Lighting -> "Neutral",
Mesh -> None, Axes -> False, Boxed -> False,
PlotStyle -> {Pink, Specularity[White, 20]}]
gb = ParametricPlot3D[N[w/r], {t, 0, Pi}, {p, -Pi, Pi},
PlotPoints -> 100,
PlotStyle -> Directive[Purple, Specularity[White, 50]],
Axes -> False, Mesh -> None, Boxed -> False]
gc = Show[{ga, gb}, PlotRange -> All]
Export["AlienSpaceshipListSurfacePlot5.3ds", gc]
Export["AlienSpaceshipListSurfacePlot5.obj", gc]
Export["AlienSpaceshipListSurfacePlot5.stl", gc]
The obj takes forever and ever..
[toc] | [prev] | [next] | [standalone]
| From | Roger Bagula <roger.bagula@gmail.com> |
|---|---|
| Date | 2011-09-12 08:33 +0000 |
| Message-ID | <j4kg59$kk9$1@smc.vnet.net> |
| In reply to | #4833 |
On Sep 8, 2:30 am, "Hans Michel" <hmic...@cox.net> wrote: > If I had time I would chime in detail but all I can offer at this time is > see: > > http://mathgis.blogspot.com/2011/05/fun-with-texture.html > > Computer Graphics from the folks at WRI have made it into the movies, so I > doubt it is a lack of expertise in this field. > > Hans What good are textures on you models if you can't export them as anything but 2d graphics files?
[toc] | [prev] | [next] | [standalone]
| From | "Hans Michel" <hmichel@cox.net> |
|---|---|
| Date | 2011-09-16 09:56 +0000 |
| Message-ID | <j4v6gv$c9e$1@smc.vnet.net> |
| In reply to | #4771 |
Clear[x1, y1, z1, g1, g, ga, gb, t, p, d, a, surface]
x1 = Sin[t]*(2 + Exp[1 - Sin[p]]/Exp[2])*(6.75/5)
y1 = Cos[t]*(2 + Exp[1 - Sin[p]]/Exp[2])*(6.75/5)
z1 = Cos[p]
w1 = {x1, z1, y1};
g = Flatten[Table[w1, {t, -Pi, Pi, 2*Pi/50}, {p, -Pi, Pi, 2*Pi/50}],
1];
Length[g]
d = 0.05;
a[0] = {d, d, d}
a[2] = {d, d, -d}
a[3] = {d, -d, d}
a[4] = {-d, d, d}
a[5] = {-d, d, -d}
a[6] = {-d, -d, d}
a[7] = {-d, d, -d}
a[8] = {-d, -d, -d}
a[1] = {d, -d, -d}
g1 = Table[g[[n]] + a[Mod[n, 8]], {n, 1, Length[g]}];
Needs["TetGenLink`"]
surface = TetGenConvexHull[g1];
ga = Graphics3D[GraphicsComplex[g1, Polygon[surface]]]
(* Export["D:\\rootstuff\\Sinoidring.3ds", ga] *)
Imported the surface into a Carrara 8. The surface has more bumps.
The point of the exercise is to point you towards TetGenLink (TetGen) in
Mathematica.
I don't know what types of 3D objects you are trying to build. TetGen and
triangulation of the surface may help.
Another poster Yves Klett pointed to Luc Barthelet work. I saw slides and
images but very little code on process. But one piece of advice that I
thought worth repeating "Graphic Complex and pay attention to the way the
model is constructed". Slide 8 of Luc Barthelet's presentation is probably
more what you are looking for. A 2D image as texture applied to a 3D
surface. No code that I could see in the NB as to how the final images were
produced. But he may have used TetGenLink.
Good Luck
Hans
-----Original Message-----
From: Roger Bagula [mailto:roger.bagula@gmail.com]
Sent: Wednesday, September 07, 2011 4:41 AM
Subject: Re: Texture in version 8, fine, but don't export...?
So how to get real textures into Mathematica
that show up in models?
I don't notice the guys working at Mathematica jumping in on this one, LOL.
I'm learning this stuff the hard way by doing and cr....
Here is a working "VertexData" version using ListSurfacePlot3D:
( as you can see this is my 5th experiment: the first two went very
badly....):
Clear[x, y, z, w, r, g, ga, gb, gc]
x = If[Sin[t]*Cos[p] < 0, Sin[t]*Cos[p]/2, Sin[t]*Cos[p]];
y = Sin[t]*Exp[1 - Sin[p]];
z = Cos[t];
w = {-x, 2*y, z};
r = x^2 + y^2 + z^2;
g = Flatten[Table[N[w/r], {t, 0, Pi, Pi/70}, {p, -Pi, Pi, 2*Pi/70}],
1];
Length[g]
ga = ListSurfacePlot3D[g, MaxPlotPoints -> 140, Lighting -> "Neutral",
Mesh -> None, Axes -> False, Boxed -> False,
PlotStyle -> {Pink, Specularity[White, 20]}]
gb = ParametricPlot3D[N[w/r], {t, 0, Pi}, {p, -Pi, Pi},
PlotPoints -> 100,
PlotStyle -> Directive[Purple, Specularity[White, 50]],
Axes -> False, Mesh -> None, Boxed -> False]
gc = Show[{ga, gb}, PlotRange -> All]
Export["AlienSpaceshipListSurfacePlot5.3ds", gc]
Export["AlienSpaceshipListSurfacePlot5.obj", gc]
Export["AlienSpaceshipListSurfacePlot5.stl", gc]
The obj takes forever and ever..
[toc] | [prev] | [next] | [standalone]
| From | Roger Bagula <roger.bagula@gmail.com> |
|---|---|
| Date | 2011-09-17 10:31 +0000 |
| Message-ID | <j51suq$pg8$1@smc.vnet.net> |
| In reply to | #5000 |
Hans Michael,
Thanks for this reference.
The Tetrahedral Convex hull is just to much fill and not enough feel
for the surface to get textures. But I've just done a few experiments
so far and it certainly plugs holes in Mathematica models.
I call this Mohawk Asteroid:
Clear[x1, y1, z1, g1, g, ga, gb, t, p, d, a]
(* surface with cusps : asteroid of rotation*)
Clear[x1, y1, z1, g1, \
g, ga, gb, t, p, d, a, surface]
x1 = Cos[t]^3*Sin[p]
y1 = Sin[t]^3*Sin[p]
z1 = Cos[p]
w1 = {x1, z1, y1}
g = Flatten[Table[w1, {t, -Pi, Pi, 2*Pi/50}, {p, -Pi, Pi, 2*Pi/50}],
1];
Length[g]
d = -0.1;
a[0] = {d, d, d}
a[2] = {d, d, -d}
a[3] = {d, -d, d}
a[4] = {-d, d, d}
a[5] = {-d, d, -d}
a[6] = {-d, -d, d}
a[7] = {-d, d, -d}
a[8] = {-d, -d, -d}
a[1] = {d, -d, -d}
g1 = Table[g[[n]] + a[Mod[n, 8]], {n, 1, Length[g]}];
Needs["TetGenLink`"]
{pts, surface} = TetGenConvexHull[g1];
ga = Graphics3D[{Orange, GraphicsComplex[pts, Polygon[surface]]},
Boxed -> False]
gb = ParametricPlot3D[1.25*w1, {t, 0, Pi}, {p, -Pi, Pi},
PlotPoints -> 50, PlotRange -> All,
PlotStyle -> {LightBlue, Specularity[White, 30]}, Axes -> False,
Boxed -> False, ColorFunction -> (Hue[2 #4*#5] &)]
gw = Show[{ga, gb}, PlotRange -> All]
(*Export["MohawkAsteriodColor.obj", gw]*)
Roger Bagula
[toc] | [prev] | [next] | [standalone]
| From | Roger Bagula <roger.bagula@gmail.com> |
|---|---|
| Date | 2011-09-20 10:12 +0000 |
| Message-ID | <j59ou6$pi$1@smc.vnet.net> |
| In reply to | #4771 |
Here is a Graphics3D based texture that closes off the Asteriod
from view:
Clear[x1, y1, z1, g1, g, ga, gb, t, p, d, a, surface]
x1 = Cos[t]^3*Sin[p];
y1 = Sin[t]^3*Sin[p];
z1 = Cos[p];
w1 = {x1, z1, y1};
( creating the parametric point array*)
g = Flatten[Table[w1, {t, -Pi, Pi, 2*Pi/50}, {p, -Pi, Pi, 2*Pi/50}],
1];
Length[g]
d = 0.075;
a[0] = {d, d, d};
a[1] = {d, -d, -d};
a[2] = {d, d, -d};
a[3] = {d, -d, d};
a[4] = {-d, d, d};
a[5] = {-d, d, -d};
a[6] = {-d, -d, d};
a[7] = {-d, -d, -d};
(* adding polygon data to the array*)
g1 = Table[
Polygon[Table[g[[n]] + a[Mod[i + n, 8]], {i, 0, 7}]], {n, 1,
Length[g]}];
ga = Graphics3D[{Yellow, EdgeForm[], g1}, Boxed -> False]
gb = ParametricPlot3D[w1, {t, 0, Pi}, {p, -Pi, Pi}, PlotPoints -> 50,
PlotRange -> All,
PlotStyle -> {LightYellow, Specularity[White, 30]}, Axes -> False,
Boxed -> False, Mesh -> False]
gw = Show[{ga, gb}, PlotRange -> All]
(*Export["AsteroidpolygonsOCTA.3ds", gw]
Export["AsteroidpolygonsOCTA.obj", gw]
Export["AsteroidpolygonsOCTA.stl", gw]*)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web