Skip to main content
Tweeted twitter.com/#!/StackMma/status/432417428447178752
Improved formatting
Source Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259
Graphics3D[
  Table[
    GeometricTransformation[
      Cuboid[{1, 0, 0}, {.01, .2, .1}], 
      {RotationMatrix[a, {0, 0, .05}], {.001 Cos[a], .001 Sin[a], a}}], 
    {a, -[Pi]Pi, 2 Pi, .2}], 
  Boxed -> False]

I followed this Documentation Center page about rotating cuboids along a space curve to make the above code (which creates the stairs for spiral staircase). I don't want to just follow it, though, I would like to understand everything I am typing in. After researching the primitives, I know that Cuboid[{a,b,c},{d,e,f}] creates a cuboid with corner {a, b, c} and opposing corner {d, e, f}.

But other than that, I'm not all sure what else is going on. I can guess at what is going on, but that does not make me feel confident in my Mathematica usage.

Specific questions:

  • What does Table do? When reading about it, I cannot make sense of why I need it in my code.
  • Graphics3D creates a 3D image based upon the primitives and directives entered. Is this correct? What else should I know about this?
  • To make sure I understand primitives and directives clearly: Table is a primitive for Graphics3D. GeometricTransformation is a primitive for Table. Cuboid and RotationMatrix are primitives for GeometricTransformation. Boxed is a directive for Graphics3D. And things like {a, b, c} are parameters for equations or primitives. Is this correct? Sorry, this may read like a riddle.
  • Final questions: What exactly does GeometricTransformation do? Is it basically saying "I'd like to rotate something (a cuboid) about an axis and in the shape of a helix?" Where are the vectors/matrices coming to play in this? This is where I read about it, but it does not help me much in understanding what I am doing.
Graphics3D[
  Table[
    GeometricTransformation[
      Cuboid[{1, 0, 0}, {.01, .2, .1}], 
      {RotationMatrix[a, {0, 0, .05}], {.001 Cos[a], .001 Sin[a], a}}], 
    {a, -[Pi], 2 Pi, .2}], 
  Boxed -> False]

I followed this Documentation Center page about rotating cuboids along a space curve to make the above code (which creates the stairs for spiral staircase). I don't want to just follow it, though, I would like to understand everything I am typing in. After researching the primitives, I know that Cuboid[{a,b,c},{d,e,f}] creates a cuboid with corner {a, b, c} and opposing corner {d, e, f}.

But other than that, I'm not all sure what else is going on. I can guess at what is going on, but that does not make me feel confident in my Mathematica usage.

Specific questions:

  • What does Table do? When reading about it, I cannot make sense of why I need it in my code.
  • Graphics3D creates a 3D image based upon the primitives and directives entered. Is this correct? What else should I know about this?
  • To make sure I understand primitives and directives clearly: Table is a primitive for Graphics3D. GeometricTransformation is a primitive for Table. Cuboid and RotationMatrix are primitives for GeometricTransformation. Boxed is a directive for Graphics3D. And things like {a, b, c} are parameters for equations or primitives. Is this correct? Sorry, this may read like a riddle.
  • Final questions: What exactly does GeometricTransformation do? Is it basically saying "I'd like to rotate something (a cuboid) about an axis and in the shape of a helix?" Where are the vectors/matrices coming to play in this? This is where I read about it, but it does not help me much in understanding what I am doing.
Graphics3D[
  Table[
    GeometricTransformation[
      Cuboid[{1, 0, 0}, {.01, .2, .1}], 
      {RotationMatrix[a, {0, 0, .05}], {.001 Cos[a], .001 Sin[a], a}}], 
    {a, -Pi, 2 Pi, .2}], 
  Boxed -> False]

I followed this Documentation Center page about rotating cuboids along a space curve to make the above code (which creates the stairs for spiral staircase). I don't want to just follow it, though, I would like to understand everything I am typing in. After researching the primitives, I know that Cuboid[{a,b,c},{d,e,f}] creates a cuboid with corner {a, b, c} and opposing corner {d, e, f}.

But other than that, I'm not all sure what else is going on. I can guess at what is going on, but that does not make me feel confident in my Mathematica usage.

Specific questions:

  • What does Table do? When reading about it, I cannot make sense of why I need it in my code.
  • Graphics3D creates a 3D image based upon the primitives and directives entered. Is this correct? What else should I know about this?
  • To make sure I understand primitives and directives clearly: Table is a primitive for Graphics3D. GeometricTransformation is a primitive for Table. Cuboid and RotationMatrix are primitives for GeometricTransformation. Boxed is a directive for Graphics3D. And things like {a, b, c} are parameters for equations or primitives. Is this correct? Sorry, this may read like a riddle.
  • Final questions: What exactly does GeometricTransformation do? Is it basically saying "I'd like to rotate something (a cuboid) about an axis and in the shape of a helix?" Where are the vectors/matrices coming to play in this? This is where I read about it, but it does not help me much in understanding what I am doing.
Improved formatting
Source Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259

Can someone explain what the primitives and parameters mean in thismy Graphics3D bitcode?

Graphics3D[Table[GeometricTransformation[Cuboid[Graphics3D[
  Table[
    GeometricTransformation[
      Cuboid[{1, 0, 0}, {.01, .2, .1}],  
  {RotationMatrix[ a   {RotationMatrix[a, {0, 0, .05}], {.001 Cos[a], .001 Sin[a], a}}], 
    {a, -[Pi], 2 Pi, .2}], 
  Boxed -> False]

I followed this Documentation Center page about rotating cuboids along a space curve to make the above code (which creates the stairs for spiral staircase). I don't want to just follow it, though, I would like to understand everything I am typing in. After researching the primitives, I know that Cuboid[{a,b,c},{d,e,f}]Cuboid[{a,b,c},{d,e,f}] creates a cuboid with corner {a,b,c}{a, b, c} and opposing corner {d,e,f}{d, e, f}.

But other than that, I'm not all sure what else is going on. I can guess at what is going on, but that does not make me feel confident in my Mathematica usage.

Specific questions:

  • What does TableTable do? When reading about it, I cannot make sense of why I need it in my code.
  • Graphics3DGraphics3D creates a 3D image based upon the primitives and directives entered. Is this correct? What else should I know about this?
  • To make sure I understand primitives and directives clearly: TableTable is a primitive for Graphics3DGraphics3D. GeometricTransformationGeometricTransformation is a primitive for TableTable. CuboidCuboid and RotationMatrixRotationMatrix are primitives for GeometricTransformationGeometricTransformation. BoxedBoxed is a directive for Graphics3DGraphics3D. And things like {a,b,c}{a, b, c} are parameters for equations or primitives. Is this correct? Sorry, this may read like a riddle.
  • Final questions: What exactly does GeometricTransformationGeometricTransformation do? Is it basically saying "I'd like to rotate something (a cuboid) about an axis and in the shape of a helix?" Where are the vectors/matrices coming to play in this? This is where I read about it, but it does not help me much in understanding what I am doing.

Can someone explain what the primitives and parameters mean in this Graphics3D bit?

Graphics3D[Table[GeometricTransformation[Cuboid[{1, 0, 0}, {.01, .2, .1}],   {RotationMatrix[ a, {0, 0, .05}], {.001 Cos[a], .001 Sin[a], a}}], {a, -[Pi], 2 Pi, .2}], Boxed -> False]

I followed this Documentation Center page about rotating cuboids along a space curve to make the above code (which creates the stairs for spiral staircase). I don't want to just follow it, though, I would like to understand everything I am typing in. After researching the primitives, I know that Cuboid[{a,b,c},{d,e,f}] creates a cuboid with corner {a,b,c} and opposing corner {d,e,f}.

But other than that, I'm not all sure what else is going on. I can guess at what is going on, but that does not make me feel confident in my Mathematica usage.

Specific questions:

  • What does Table do? When reading about it, I cannot make sense of why I need it in my code.
  • Graphics3D creates a 3D image based upon the primitives and directives entered. Is this correct? What else should I know about this?
  • To make sure I understand primitives and directives clearly: Table is a primitive for Graphics3D. GeometricTransformation is a primitive for Table. Cuboid and RotationMatrix are primitives for GeometricTransformation. Boxed is a directive for Graphics3D. And things like {a,b,c} are parameters for equations or primitives. Is this correct? Sorry, this may read like a riddle.
  • Final questions: What exactly does GeometricTransformation do? Is it basically saying "I'd like to rotate something (a cuboid) about an axis and in the shape of a helix?" Where are the vectors/matrices coming to play in this? This is where I read about it, but it does not help me much in understanding what I am doing.

Can someone explain what the primitives and parameters mean in my Graphics3D code?

Graphics3D[
  Table[
    GeometricTransformation[
      Cuboid[{1, 0, 0}, {.01, .2, .1}],  
      {RotationMatrix[a, {0, 0, .05}], {.001 Cos[a], .001 Sin[a], a}}], 
    {a, -[Pi], 2 Pi, .2}], 
  Boxed -> False]

I followed this Documentation Center page about rotating cuboids along a space curve to make the above code (which creates the stairs for spiral staircase). I don't want to just follow it, though, I would like to understand everything I am typing in. After researching the primitives, I know that Cuboid[{a,b,c},{d,e,f}] creates a cuboid with corner {a, b, c} and opposing corner {d, e, f}.

But other than that, I'm not all sure what else is going on. I can guess at what is going on, but that does not make me feel confident in my Mathematica usage.

Specific questions:

  • What does Table do? When reading about it, I cannot make sense of why I need it in my code.
  • Graphics3D creates a 3D image based upon the primitives and directives entered. Is this correct? What else should I know about this?
  • To make sure I understand primitives and directives clearly: Table is a primitive for Graphics3D. GeometricTransformation is a primitive for Table. Cuboid and RotationMatrix are primitives for GeometricTransformation. Boxed is a directive for Graphics3D. And things like {a, b, c} are parameters for equations or primitives. Is this correct? Sorry, this may read like a riddle.
  • Final questions: What exactly does GeometricTransformation do? Is it basically saying "I'd like to rotate something (a cuboid) about an axis and in the shape of a helix?" Where are the vectors/matrices coming to play in this? This is where I read about it, but it does not help me much in understanding what I am doing.
Source Link

Can someone explain what the primitives and parameters mean in this Graphics3D bit?

Graphics3D[Table[GeometricTransformation[Cuboid[{1, 0, 0}, {.01, .2, .1}],   {RotationMatrix[ a, {0, 0, .05}], {.001 Cos[a], .001 Sin[a], a}}], {a, -[Pi], 2 Pi, .2}], Boxed -> False]

I followed this Documentation Center page about rotating cuboids along a space curve to make the above code (which creates the stairs for spiral staircase). I don't want to just follow it, though, I would like to understand everything I am typing in. After researching the primitives, I know that Cuboid[{a,b,c},{d,e,f}] creates a cuboid with corner {a,b,c} and opposing corner {d,e,f}.

But other than that, I'm not all sure what else is going on. I can guess at what is going on, but that does not make me feel confident in my Mathematica usage.

Specific questions:

  • What does Table do? When reading about it, I cannot make sense of why I need it in my code.
  • Graphics3D creates a 3D image based upon the primitives and directives entered. Is this correct? What else should I know about this?
  • To make sure I understand primitives and directives clearly: Table is a primitive for Graphics3D. GeometricTransformation is a primitive for Table. Cuboid and RotationMatrix are primitives for GeometricTransformation. Boxed is a directive for Graphics3D. And things like {a,b,c} are parameters for equations or primitives. Is this correct? Sorry, this may read like a riddle.
  • Final questions: What exactly does GeometricTransformation do? Is it basically saying "I'd like to rotate something (a cuboid) about an axis and in the shape of a helix?" Where are the vectors/matrices coming to play in this? This is where I read about it, but it does not help me much in understanding what I am doing.