modeling/src/primitives/index.js

  1. /**
  2. * Primitives provide the building blocks for complex parts.
  3. * Each primitive is a geometrical object that can be described mathematically, and therefore precise.
  4. * Primitives can be logically combined, transformed, extruded, etc.
  5. * @module modeling/primitives
  6. * @example
  7. * const { cube, ellipse, star } = require('@jscad/modeling').primitives
  8. */
  9. module.exports = {
  10. arc: require('./arc'),
  11. circle: require('./circle'),
  12. cube: require('./cube'),
  13. cuboid: require('./cuboid'),
  14. cylinder: require('./cylinder'),
  15. cylinderElliptic: require('./cylinderElliptic'),
  16. ellipse: require('./ellipse'),
  17. ellipsoid: require('./ellipsoid'),
  18. geodesicSphere: require('./geodesicSphere'),
  19. line: require('./line'),
  20. polygon: require('./polygon'),
  21. polyhedron: require('./polyhedron'),
  22. rectangle: require('./rectangle'),
  23. roundedCuboid: require('./roundedCuboid'),
  24. roundedCylinder: require('./roundedCylinder'),
  25. roundedRectangle: require('./roundedRectangle'),
  26. sphere: require('./sphere'),
  27. square: require('./square'),
  28. star: require('./star'),
  29. torus: require('./torus'),
  30. triangle: require('./triangle')
  31. }