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


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

Re: Problem in "block cutting"

Started byHeike Gramberg <heike.gramberg@gmail.com>
First post2011-09-21 09:38 +0000
Last post2011-09-22 11:27 +0000
Articles 3 — 2 participants

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: Problem in "block cutting" Heike Gramberg <heike.gramberg@gmail.com> - 2011-09-21 09:38 +0000
    Re: Problem in "block cutting" Roger Bagula <roger.bagula@gmail.com> - 2011-09-22 11:26 +0000
    Re: Problem in "block cutting" Roger Bagula <roger.bagula@gmail.com> - 2011-09-22 11:27 +0000

#5118 — Re: Problem in "block cutting"

FromHeike Gramberg <heike.gramberg@gmail.com>
Date2011-09-21 09:38 +0000
SubjectRe: Problem in "block cutting"
Message-ID<j5cbas$d0c$1@smc.vnet.net>
Since Cosh[p]^2-Sinh[p]^2==1 for all p, x0 and z0 satisfy the equation

(((z0 + 0.075) 1.25 + 3)/2)^2 - (x0 1.25 1.2)^2 ==1

Therefore you could do something like

Module[{x, y, z},
 Show[RegionPlot3D[(((y + 0.075) 1.25 + 3)/2)^2 - (x 1.25 1.2)^2 <= 1, 
     ##, Boxed -> False, Axes -> True, 
     TextureCoordinateFunction -> ({2 #1 + #2, #2 + #3} &),
     Mesh -> None, 
     PlotStyle -> 
      Directive[Brown, Specularity[White, 50], 
       Texture[ExampleData[{"ColorTexture", "BurlOak"}]]], 
     Lighting -> "Neutral",
     AxesLabel -> {"x", "y", "z"}] & @@@ {{{x, 0, 1}, {y, -1, 0}, {z, 
      0, 1}},
    {{x, 0, 1}, {y, -1, 0}, {z, -1, 0}},
    {{x, -1, 0}, {y, -1, 0}, {z, 0, 1}},
    {{x, -1, 0}, {y, -1, 0}, {z, -1, 0}}}, PlotRange -> All, 
  Axes -> False, BoxRatios -> {2, 1, 2}]]

Heike.

On 20 Sep 2011, at 12:08, Roger Bagula wrote:

> In architecture there is a curve called an hanging chain curve
> that is based on Sinh and Cosh functions.
> I want to cut an arch made of a cylinder of the hanging chain
> from a rectangular set of cubic blocks.
> I have it visualized but not actualized in Mathematica:
> 
> x0 = (Sinh[p]/1.2)/1.25;
> y0 = Sin[t];
> z0 = (2*Cosh[p] - 3)/1.25 - 0.075;
> gc = ParametricPlot3D[{x0, z0, y0}, {t, -Pi, Pi}, {p, -1, 1},
>  Boxed -> False, Axes -> True,
>  TextureCoordinateFunction -> ({2 #4, #5} &),
>  PlotStyle ->
>   Directive[Brown, Specularity[White, 50],
>    Texture[ExampleData[{"ColorTexture", "BurlOak"}]]],
>  Lighting -> "Neutral"]
> g1 = Show[
>  Graphics3D[{Opacity[0.5], Cuboid[{0, -1, 0}], Cuboid[{-1, -1, 0}],
>    Cuboid[{-1, -1, -1}], Cuboid[{0, -1, -1}]}], Boxed -> False]
> Show[{gc, g1}, PlotRange -> All]
> 
> Something like the RegionFunction:
> 
> ga = SphericalPlot3D[
>  1 + Sin[3 \[Theta]] Sin[3 \[Phi]]/3, {\[Theta], 0, Pi}, {\[Phi], 0,
>   2 Pi}, RegionFunction -> (#6 > 0.95 &),
>  PlotStyle -> FaceForm[Blue, Cyan], Boxed -> False, Axes -> False,
>  Mesh -> False]
> 
> Would seem to be a way to approach the problem,
> but I can't figure out how.
> Roger Bagula
> 

[toc] | [next] | [standalone]


#5131

FromRoger Bagula <roger.bagula@gmail.com>
Date2011-09-22 11:26 +0000
Message-ID<j5f610$q4d$1@smc.vnet.net>
In reply to#5118
Heike Gramberg
Nice!
Thanks., very good programming.
"WhiteMarble" might be better for
a classical arch building material.
I'm goint to try to stack the arch blocks
like the Romans did and their aqueducts
with circle arches.
http://en.wikipedia.org/wiki/Roman_aqueduct
Roger Bagula

[toc] | [prev] | [next] | [standalone]


#5133

FromRoger Bagula <roger.bagula@gmail.com>
Date2011-09-22 11:27 +0000
Message-ID<j5f62t$q5q$1@smc.vnet.net>
In reply to#5118
Stacking the blocks:
( probably look better with a two layer and a one layer
on top of these... )

Clear[x, y, z, g, g1]
g = Module[{x, y, z},
  Show[RegionPlot3D[(((y + 0.075) 1.25 + 3)/2)^2 - (x 1.25 1.2)^2 <=
       1, ##, Boxed -> False, Axes -> True,
      TextureCoordinateFunction -> ({2 #1 + #2, #2 + #3} &),
      Mesh -> None,
      PlotStyle -> Directive[Brown, Specularity[White, 50]
        , Texture[ExampleData[{"ColorTexture", "WhiteMarble"}]]],
      Lighting -> "Neutral",
      AxesLabel -> {"x", "y", "z"}]
     & @@@ {{{x, 0, 1}, {y, -1, 0}, {z, 0, 1}}, {{x, 0, 1}, {y, -1,
       0}, {z, -1, 0}}, {{x, -1, 0}, {y, -1, 0}, {z, 0, 1}}, {{x, -1,
       0}, {y, -1, 0}, {z, -1, 0}}},
   PlotRange -> All, Axes -> False, BoxRatios -> {2, 1, 2}]]
g1 = Module[{x, y, z},
  Show[RegionPlot3D[(((y + 0.075) 1.25 + 3)/
           2)^2 - ((x - 2) 1.25 1.2)^2 <= 1, ##, Boxed -> False,
      Axes -> True,
      TextureCoordinateFunction -> ({2 #1 + #2, #2 + #3} &),
      Mesh -> None,
      PlotStyle -> Directive[Brown, Specularity[White, 50]
        , Texture[ExampleData[{"ColorTexture", "WhiteMarble"}]]],
      Lighting -> "Neutral",
      AxesLabel -> {"x", "y", "z"}]
     & @@@ {{{x, 2, 3}, {y, -1, 0}, {z, 0, 1}}, {{x, 2, 3}, {y, -1,
       0}, {z, -1, 0}}, {{x, 1, 2}, {y, -1, 0}, {z, 0, 1}}, {{x, 1,
       2}, {y, -1, 0}, {z, -1, 0}}},
   PlotRange -> All, Axes -> False, BoxRatios -> {2, 1, 2}]]
g2 = Module[{x, y, z},
  Show[RegionPlot3D[(((y + 0.075) 1.25 + 3)/
           2)^2 - ((x - 4)*1.25 1.2)^2 <= 1, ##, Boxed -> False,
      Axes -> True,
      TextureCoordinateFunction -> ({2 #1 + #2, #2 + #3} &),
      Mesh -> None,
      PlotStyle -> Directive[Brown, Specularity[White, 50]
        , Texture[ExampleData[{"ColorTexture", "WhiteMarble"}]]],
      Lighting -> "Neutral",
      AxesLabel -> {"x", "y", "z"}]
     & @@@ {{{x, 4, 5}, {y, -1, 0}, {z, 0, 1}}, {{x, 4, 5}, {y, -1,
       0}, {z, -1, 0}}, {{x, 3, 4}, {y, -1, 0}, {z, 0, 1}}, {{x, 3,
       4}, {y, -1, 0}, {z, -1, 0}}},
   PlotRange -> All, Axes -> False, BoxRatios -> {2, 1, 2}]]
g3 = Module[{x, y, z},
  Show[RegionPlot3D[((((y - 1) + 0.075) 1.25 + 3)/
           2)^2 - ((x - 1) 1.25 1.2)^2 <= 1, ##, Boxed -> False,
      Axes -> True,
      TextureCoordinateFunction -> ({2 #1 + #2, #2 + #3} &),
      Mesh -> None,
      PlotStyle -> Directive[Brown, Specularity[White, 50]
        , Texture[ExampleData[{"ColorTexture", "WhiteMarble"}]]],
      Lighting -> "Neutral",
      AxesLabel -> {"x", "y", "z"}]
     & @@@ {{{x, 1, 2}, {y, 0, 1}, {z, 0, 1}}, {{x, 1, 2}, {y, 0,
       1}, {z, -1, 0}}, {{x, 0, 1}, {y, 0, 1}, {z, 0, 1}}, {{x, 0,
       1}, {y, 0, 1}, {z, -1, 0}}},
   PlotRange -> All, Axes -> False, BoxRatios -> {2, 1, 2}]]
g4 = Module[{x, y, z},
  Show[RegionPlot3D[((((y - 1) + 0.075) 1.25 + 3)/
           2)^2 - ((x - 3) 1.25 1.2)^2 <= 1, ##, Boxed -> False,
      Axes -> True,
      TextureCoordinateFunction -> ({2 #1 + #2, #2 + #3} &),
      Mesh -> None,
      PlotStyle -> Directive[Brown, Specularity[White, 50]
        , Texture[ExampleData[{"ColorTexture", "WhiteMarble"}]]],
      Lighting -> "Neutral",
      AxesLabel -> {"x", "y", "z"}]
     & @@@ {{{x, 3, 4}, {y, 0, 1}, {z, 0, 1}}, {{x, 3, 4}, {y, 0,
       1}, {z, -1, 0}}, {{x, 2, 3}, {y, 0, 1}, {z, 0, 1}}, {{x, 2,
       3}, {y, 0, 1}, {z, -1, 0}}},
   PlotRange -> All, Axes -> False, BoxRatios -> {2, 1, 2}]]
g6 = Module[{x, y, z},
  Show[RegionPlot3D[((((y - 1) + 0.075) 1.25 + 3)/
           2)^2 - ((x - 5) 1.25 1.2)^2 <= 1, ##, Boxed -> False,
      Axes -> True,
      TextureCoordinateFunction -> ({2 #1 + #2, #2 + #3} &),
      Mesh -> None,
      PlotStyle -> Directive[Brown, Specularity[White, 50]
        , Texture[ExampleData[{"ColorTexture", "WhiteMarble"}]]],
      Lighting -> "Neutral",
      AxesLabel -> {"x", "y", "z"}]
     & @@@ {{{x, 5, 6}, {y, 0, 1}, {z, 0, 1}}, {{x, 5, 6}, {y, 0,
       1}, {z, -1, 0}}, {{x, 4, 5}, {y, 0, 1}, {z, 0, 1}}, {{x, 4,
       5}, {y, 0, 1}, {z, -1, 0}}},
   PlotRange -> All, Axes -> False, BoxRatios -> {2, 1, 2}]]
gw = Show[{g, g1, g2, g3, g4, g5, g6}, PlotRange -> All]
(*Export["ChainArch.3ds",gw]
Export["ChainArch.obj",gw]
Export["ChainArch.stl",gw]*)

[toc] | [prev] | [standalone]


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


csiph-web