Solid Primitives
List of: Discussion Topic
Subjects: Creating Solids
Contents: Getting Started Guide

ACIS provides many standard basic solid types that can be created quickly, and if desired, already as body topological elements. These include blocks, cones, cylinders, prisms, pyramids, spheres, tori, and "wiggles." These are solid primitives.

The following example creates several simple solid primitives.

Scheme Example

; In the previous Scheme example, options were changed.
; If not already done so through a restart,
; turn them back to the defaults.
(option:set "sil" #t)
;; #f
(option:set "u_par" -1)
;; 5
(option:set "v_par" -1)
;; 7

; Create solid block.
(define my_block

(solid:block (position 10 10 10)

(position 15 20 30)))
;; my_block

; Create solid cylinder.
(define my_cyl

(solid:cylinder (position -10 -5 -15)

(position 0 -15 -15) 10))
;; my_cyl

; Create solid cone.
(define my_cone

(solid:cone (position 20 -15 0)

(position 40 -15 10) 10 2))
;; my_cone

; Create a solid prism.
(define my_prism (solid:prism 10 5 5 6))
;; my_prism

; Create a solid pyramid.
(define my_pyramid (solid:pyramid 5 10 15 10 15))
;; my_pyramid

; Create solid sphere.
(define my_sphere (solid:sphere (position -20 20 30) 5))
;;my_sphere

; Create solid torus.
(define my_torus (solid:torus (position 20 -20 -20) 7 3))
;; my_torus

; Save the results to an output file.
(part:save "tmpsolprim1.sat")
;; #t

Some of the Scheme extensions related to creation of standard solids are:

solid:block Creates a solid block.

solid:cone Creates a right circular cone.

solid:cylinder Creates a right circular cylinder.

solid:prism Creates a solid prism.

solid:pyramid Creates a solid pyramid.

solid:sphere Creates a sphere centered at the specified position.

solid:torus Creates a solid torus.

solid:wiggle Creates a rectangular block with a spline surface top.
PDF/GET/08CREAT.PDF
HTM/DATA/ACIS/GET/08CREAT/0006.HTM