|
Action:
|
Checks the vertices of the input body for errors and stores results in attributes attached to the bad vertices.
|
|
|
Filename:
|
heal/heal_scm/scm_adv.cxx
|
|
|
APIs:
|
api_hh_analyze_vertices
|
|
|
Syntax:
|
(hh:analyze-vertex entity [acis-opts])
|
|
|
Arg Types:
|
entity
|
entity
|
|
acis-opts
|
acis-options
|
|
|
Returns:
|
unspecified
|
|
|
Description:
|
This extension checks all the vertices of the input body. The results are attached to any bad vertices as attributes. The tests include:
|
|
|
-
|
Does the vertex lie on the corresponding edges?
|
|
-
|
Do the edges meet at the vertex?
|
|
-
|
Does the vertex lie on the corresponding surfaces?
|
|
|
The optional argument
acis-opts helps enable journaling and versioning options.
|
|
|
Example:
|
; hh:analyze-vertex
|
|
; Check vertices for errors.
|
|
; Load a file containing a bad part
|
|
(part:load "heal1.sat")
|
|
;; (#[entity 2 1] #[entity 3 1] #[entity 4 1]
|
|
;; #[entity 5 1])
|
|
; Zoom the view in order to see the entities.
|
|
(zoom-all)
|
|
;; #[view 1076700200]
|
|
; Combine the faces into a body
|
|
(define body1 (hh:combine (list (entity 2)
|
|
|
(entity 3) (entity 4) (entity 5))))
|
|
;; body1
|
|
; Prepare the body for healing
|
|
(hh:init-body-for-healing body1)
|
|
;; #[entity 6 1]
|
|
(hh:analyze-vertex body1)
|
|
;; ()
|