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


Groups > comp.soft-sys.math.mathematica > #5101 > unrolled thread

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

Started byRoger Bagula <roger.bagula@gmail.com>
First post2011-09-20 10:09 +0000
Last post2011-09-21 09:37 +0000
Articles 2 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Texture in version 8, fine, but don't export...? Roger Bagula <roger.bagula@gmail.com> - 2011-09-20 10:09 +0000
    Re: Texture in version 8, fine, but don't export...? Roger Bagula <roger.bagula@gmail.com> - 2011-09-21 09:37 +0000

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

FromRoger Bagula <roger.bagula@gmail.com>
Date2011-09-20 10:09 +0000
SubjectRe: Texture in version 8, fine, but don't export...?
Message-ID<j59ooe$mm$1@smc.vnet.net>
The 3d models that export from Mathematica are what are used
in 3d printers. You can make such models with a lot of programs
but for exact scales Mathematica is very hard to beat.
I made a ring model using one of my surfaces and it came out very well
in plastic from Scultpeo.

http://www.bbc.co.uk/news/technology-14946808

-- 
Roger L. Bagula { email: roger.bagula@gmail.com or
rlbagulatftn@yahoo.com}
11759 Waterhill Road,
Lakeside, Ca. 92040    telephone: 619-561-0814

[toc] | [next] | [standalone]


#5115

FromRoger Bagula <roger.bagula@gmail.com>
Date2011-09-21 09:37 +0000
Message-ID<j5cb80$cvn$1@smc.vnet.net>
In reply to#5101
Here is a texture that has a pattern that you can see
based on a tetrahedral basis for the polygons:

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};

(*adding polygon data to the array*)

g1 = Table[
   Polygon[Table[g[[n]] + a[Mod[i + n, 4]], {i, 0, 4}]], {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["Asteroidpolygonstetra.3ds",gw] \
Export["Asteroidpolygonstetra.obj",gw] \
Export["Asteroidpolygonstetra.stl",gw]*)

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web