Class ElementMeshes
- Namespace
- RvtIO.Meshes
- Assembly
- RvtIO.dll
Triangle meshes of the drawable model elements of an opened document, in feet, in the coordinates of the document (Revit internal coordinates, Z up). The document is not read again: the meshes are made from the decoded faces it holds.
public static class ElementMeshesInheritance
Inherited Members
Remarks
An element is drawable when the IFC export of the current profile would consider it a product by these of its rules: it is not a symbol or type definition (a record kept only for its geometry, an element that other elements name as their type and that names no project phase), not a group template, not in a secondary design option, not outside the last project phase (demolished or not yet created), not a reveal, not a rectangular wall opening (a void), not the container of a stacked wall (its member walls are drawn), not a record outside an exact element table, not owned by a family, not of a non-physical category (annotations, rooms, spaces, ...), names its project phase (walls and family instances of a generic category excepted), and not a void helper whose faces are all unfilled. An element whose geometry is exactly other drawable elements placed (a stair of its runs and landings, a model group of its members) is left out, as those elements are listed themselves; a placement of a drawable element is likewise left out of an element's placements. A drawable element is listed when it has a geometry record, or, in a document whose geometry was not decoded, a bounding box. Other product rules of the IFC export are not applied, so the meshes can include elements that the IFC leaves out: the "export to IFC" flag, topography, walls that are not visible, curtain panels that are walls, family instances whose level is not a project level, curtain children without bounds, openings of hidden walls, and the rebar rules.
Faces of Geometry nodes that Revit does not take (another detail level) are left out when the element has faces of nodes it takes and no ghost node (a node Revit exports that has no decoded polygon, which also makes the element RvtIO.Meshes.MeshCoverage.Partial). Planar faces with holes are triangulated in their plane; curved surfaces are the dense polygons the reader decoded for them. Every triangle is counter-clockwise around the normal of its face.
The material of a face is its own material, else the material of the symbol face it was placed from, else the material of the graphics style of its Geometry node, else none (0). Only elements of the Materials category count as materials.
Methods
Extract(RvtDocument, ElementMeshOptions?)
The meshes of the drawable elements of document.
public static MeshSet Extract(RvtDocument document, ElementMeshOptions? options = null)Parameters
documentRvtDocumentoptionsElementMeshOptions?
Returns
Exceptions
- ArgumentNullException
-
documentis null.