SchemeExt:Lop:get-remove-face-info

From DocR21

Jump to: navigation, search

Contents

Action

Returns information about removed faces from a remove-faces operation.

Filename

scm/scmext/lop/lop_scm.cpp

APIs

None

Syntax

(lop:get-remove-face-info lopt)

Argument Types

Argument Scheme Data Type
lopt lop_options

Returns

A list of entities

Errors

None

Description

This extension returns information about a removed face that can be used to recreate the face. For example, if a blended face is removed, the edge is returned. When a vertex blend is removed, the vertex is returned.

Arguments

  • lopt is the local operation option. This argument contains flags that enable self-intersections to be repaired and vent faces to be added.

Example

;lop:get-remove-face-info
(define c (solid:cylinder (position 0 0 0) (position 0 0 1) 0.25))
 
(define e (list-ref (entity:edges c) 1))
(define edges (list e))
 
(blend:const-rad-on-edge edges 0.05)
(blend:network edges)
 
(define f (list-ref (entity:faces c) 0))
(define faces (list f))
 
(define lopt (lop:options))
 
(rem:remove-faces faces lopt)
 
(define entities (lop:get-remove-face-info lopt))
(entity:set-color entities RED)
Image:ACIS_remove_face_info1.PNG Image:ACIS_remove_face_info2.PNG
Red face to be removed. Red edge was created during blend removal.
Personal tools
Live