SchemeExt:Eda:mesh-element-count

From DocR21

Jump to: navigation, search

Contents

Action

Get the number of elements in a mesh.

Filename

scm/scmext/vabridge/vabridge_scm_query.cpp

APIs

api_va_get_element_count

Syntax

(eda:mesh-element-count mesh [acis-options])

Argument Types

Argument Scheme Data Type
mesh va_surfmesh | va_tetmesh
acis-options acis-options

Returns

integer

Errors

  • mesh is not a mesh object

Description

The mesher generates a mesh consisting of elements which contain faces and edges. Access to the topology in the mesh is provided by iterating through the elements.

Arguments

  • mesh specifies the mesh object to be queried.
  • acis-options specifies parameters for versioning and journaling.

Example

(define b (solid:block 0 0 0 1 1 1))
(define mesh (eda:generate-tet-mesh b))
(eda:mesh-element-count mesh)
; 24
Personal tools
Live