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


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

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-17 10:31 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j51suq$pg8$1@smc.vnet.net> (permalink)
References <j44jpj$8vb$1@smc.vnet.net> <201109070940.FAA21529@smc.vnet.net> <j4v6gv$c9e$1@smc.vnet.net>

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next 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