Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5089

Re: Texture in version 8, fine, but don't export...?

From Roger Bagula <roger.bagula@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Texture in version 8, fine, but don't export...?
Date 2011-09-20 10:12 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j59ou6$pi$1@smc.vnet.net> (permalink)
References <j44jpj$8vb$1@smc.vnet.net> <201109070940.FAA21529@smc.vnet.net>

Show all headers | View raw


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]*)

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

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

csiph-web