shapes.inc内のobject


書式

#include"shapes.inc"

object{Sphere}
など。
*大文字・小文字の違いには注意しましょう。
*textureなどは指定されていません。


Sphere

半径1、原点中心の球。

s1_sphere
#declare Sphere =
 sphere {<0, 0, 0>,1}

Ellipsoid

半径1、原点中心の球。

s1_ellipsoid
#declare Ellipsoid =
 sphere {<0, 0, 0>,1}

立方体

UnitBox

原点中心、一辺の長さ2。

s1_unitbox
#declare UnitBox =
 box { <-1, -1, -1>, <1, 1, 1> }


Cube

原点中心、一辺の長さ2。

s1_cube
#declare Cube =
 box { <-1, -1, -1>, <1, 1, 1> }

円錐

Cone_X

X軸方向に尖った円錐。
原点中心、底面の半径1、高さ2。

s1_cone_x
#declare Cone_X = cone {x,0,-x,1}

Cone_Y

Y軸方向に尖った円錐。
原点中心、底面の半径1、高さ2。

s1_cone_y
#declare Cone_Y = cone {y,0,-y,1}

Cone_Z

Z軸方向に尖った円錐。
原点中心、底面の半径1、高さ2。

s1_cone_z
#declare Cone_Z = cone {z,0,-z,1}

円柱

Disk_X

X軸方向に伸びた円柱。
原点中心、底面の半径1、高さ2。

s1_disk_x
#declare Disk_X =
 cylinder { x,-x,1}

Disk_Y

Y軸方向に伸びた円柱。
原点中心、底面の半径1、高さ2。

s1_disk_y
#declare Disk_Y =
 cylinder { y,-y,1}

Disk_Z

Z軸方向に伸びた円柱。
原点中心、底面の半径1、高さ2。

s1_disk_z
#declare Disk_Z =
 cylinder { z,-z,1}

平面

Plane_YZ

YZ平面。

s1_plane_yz
#declare Plane_YZ = plane {x,0}

Plane_XZ

XZ平面。

s1_plane_xz
#declare Plane_XZ = plane {y,0}

Plane_XY

XY平面。

s1_plane_xy
#declare Plane_XY = plane {z,0}

X,Y,Z軸

Cylinder_X

X軸方向に無限に伸びる円柱。
原点中心、軸の半径1。

s1_cylinder_x
#declare Cylinder_X =
 quadric
  {<0, 1, 1>,
   <0, 0, 0>,
   <0, 0, 0>, -1
  }

Cylinder_Y

Y軸方向に無限に伸びる円柱。
原点中心、軸の半径1。

s1_cylinder_y
#declare Cylinder_Y =
 quadric
  {<1, 0, 1>,
   <0, 0, 0>,
   <0, 0, 0>, -1
  }

Cylinder_Z

Z軸方向に無限に伸びる円柱。
原点中心、軸の半径1。

s1_cylinder_z
#declare Cylinder_Z =
 quadric
  {<1, 1, 0>,
   <0, 0, 0>,
   <0, 0, 0>, -1
  }

2次曲面

無限円錐(楕円錐面)

QCone_X

原点を頂点として、X軸方向に無限に伸びる円錐。

s1_qcone_x
#declare QCone_X =
 quadric
  {<-1, 1, 1>,
   < 0, 0, 0>,
   < 0, 0, 0>, 0
  }

QCone_Y

原点を頂点として、Y軸方向に無限に伸びる円錐。

s1_qcone_y
#declare QCone_Y =
 quadric
  {<1, -1, 1>,
   <0, 0, 0>,
   <0, 0, 0>, 0
  }

QCone_Z

原点を頂点として、Z軸方向に無限に伸びる円錐。

s1_qcone_z
#declare QCone_Z =
 quadric
  {<1, 1, -1>,
   <0, 0, 0>,
   <0, 0, 0>, 0
  }

楕円放物面

Paraboloid_X

原点を頂点として、X軸方向に伸びる楕円放物面。
y^2 + z^2 - x = 0

s1_paraboloid_x
#declare Paraboloid_X =
 quadric
  {< 0, 1, 1>,
   < 0, 0, 0>,
   <-1, 0, 0>, 0
  }

Paraboloid_Y

原点を頂点として、Y軸方向に伸びる楕円放物面。
x^2 + z^2 - y = 0

s1_paraboloid_y
#declare Paraboloid_Y =
 quadric
  {<1,  0,  1>,
   <0,  0,  0>,
   <0, -1,  0>, 0
  }

Paraboloid_Z

原点を頂点として、Z軸方向に伸びる楕円放物面。
x^2 + y^2 - z = 0

s1_paraboloid_z
#declare Paraboloid_Z =
 quadric
  {<1,  1,  0>,
   <0,  0,  0>,
   <0,  0, -1>, 0
  }

双曲面

Hyperboloid

双曲放物面。
y - x^2 + z^2 = 0

s1_hyperboloid
#declare Hyperboloid =
 quadric
  {<-1,  0,  1>,
   < 0,  0,  0>,
   < 0,  1,  0>, 0
  }

Hyperboloid_Y

一葉双曲面。
x^2 - y^2 + z^2 -1 = 0

s1_hyperboloid_y
#declare Hyperboloid_Y =
 quadric
  {<1, -1,  1>,
   <0,  0,  0>,
   <0,  0,  0>, -1
  }

リファレンスの一覧に戻る