본문 바로가기

OpenCAD

polyhedron

CubePoints = [
  [  0,  0,  0 ],  //0
  [ 10,  0,  0 ],  //1
  [ 10,  7,  0 ],  //2
  [  0,  7,  0 ],  //3
  [  0,  0,  5 ],  //4
  [ 10,  0,  5 ],  //5
  [ 10,  7,  5 ],  //6
  [  0,  7,  5 ]]; //7
  
CubeFaces = [
  [0,1,2,3],  // bottom
  [4,5,1,0],  // front
  [7,6,5,4],  // top
  [5,6,2,1],  // right
  [6,7,3,2],  // back
  [7,4,0,3]]; // left
  
polyhedron( CubePoints, CubeFaces );

 

'OpenCAD' 카테고리의 다른 글

XYDrawing [1]  (0) 2024.12.11
module, children() [3]  (0) 2021.07.16
회전 _ROTATE() [2]  (0) 2021.07.16
2D _변수 [1]  (0) 2021.07.16