lop:convert-pipes
List of: Scheme Extensions
Subjects: Local Operations
Contents: Local Ops

Action: Replaces the geometry of any faces in the supplied array which currently are pipe_spl_sur splines with rb_blend_spl_sur splines.

Filename: lop/lop_scm/lop_scm.cxx

APIs: api_convert_pipes

Syntax: (lop:convert-pipes body-or-face-list [acis-opts])

Arg Types: body-or-face-list body | face | (face ...)

acis-opts acis-options

Returns: body

Errors: Refer to the Errors listed for the Scheme extension, lop:tweak-faces.



Note that entities returned in the outcome standard_error_info object are highlighted.

Description: Replaces the geometry of any faces in the supplied array which currently are pipe_spl_sur splines with rb_blend_spl_sur splines. If a body is given, all faces in the body are converted.


Topology Changes:


Refer to the topology changes listed for the Scheme extension, lop:tweak-faces.


Geometry Changes:


Refer to the geometry changes listed for the Scheme extension, lop:tweak-faces.


Arguments:


body-or-face-list identifies faces of a body to be moved.


acis-opts specifies options such as versioning and journaling.

Limitations: Refer to the Limitations listed for the Scheme extension, lop:tweak-faces.

Example: ; lop:convert-pipes

; Create a cylinder

(define cyl1


(solid:cylinder (position 0 0 -25)


(position 0 0 25) 25))

;; cyl1

; Create a block

(define block1


(solid:block (position -50 -25 -25)


(position 0 25 25)))

;; block1

; Subtract bodies

(define subtract (bool:subtract cyl1 block1))

;; subtract

; Taper top face of body

(define taper (lop:taper-faces (pick:face


(ray (position 1 0 0) (gvector 0 0 1)))


(position 0 0 0) (gvector 1 0 0) 45))

;; taper

; Blend top edge

(define blend (solid:blend-edges (pick:edge


(ray (position 25 0 0) (gvector 0 0 1))) 10))

;; blend

; Convert splines

(define convert (lop:convert-pipes


(pick:face (ray (position 24 0 0)


(gvector 0 0 1)))))

;; convert
PDF/LOP/02SC.PDF
HTM/DATA/LOP/LOP/02SC/0001.HTM