You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Docs/Sphinx/source/Parsers.rst
+26-19Lines changed: 26 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,16 @@ Reading data
6
6
Routines for parsing surface grid from files into ``EBGeometry``'s DCEL grids are given in the namespace ``EBGeometry::Parser``.
7
7
The source code is implemented in :file:`Source/EBGeometry_Parser.hpp`.
8
8
9
-
.. warning::
9
+
.. important::
10
10
11
-
``EBGeometry`` is currently limited to reading binary and ASCII STL files and reconstructing DCEL grids from those.
12
-
However, it is also possible to build DCEL grids from polygon soups read using third-party codes (see :ref:`Chap:ThirdPartyParser`).
11
+
``EBGeometry`` is currently limited to reading STL, PLY, and VTK files, and then reconstructing DCEL grids from those.
12
+
PLY and and VTK files can contain associated data on the nodes and faces, but this is not automatically populated when constructing the DCEL grids.
13
+
It is also possible to build DCEL grids from polygon soups read using third-party codes (see :ref:`Chap:ThirdPartyParser`).
13
14
14
15
Quickstart
15
16
----------
16
17
17
-
If you have one or multiple STL files, you can quickly turn them into signed distance fields using
18
+
If you have one or multiple files, you can quickly turn them into signed distance fields using
18
19
19
20
.. code-block:: c++
20
21
@@ -37,46 +38,52 @@ See :ref:`Chap:LinearSTL` for further details.
37
38
38
39
This version will convert all DCEL polygons to triangles, and usually provides a nice code speedup.
39
40
40
-
Reading STL files
41
-
-----------------
41
+
Reading mesh files
42
+
------------------
42
43
43
-
``EBGeometry`` supports a native parser for binary and ASCII STL files, which can be read into a few different representations:
44
+
``EBGeometry`` supports a native parser for binary and ASCII files, which can be read into a few different representations:
44
45
45
46
#. Into a DCEL mesh, see :ref:`Chap:ImplemDCEL`.
46
47
#. Into a signed distance function representation of a DCEL mesh, see :ref:`Chap:ImplemCSG`.
47
48
#. Into a signed distance function representation of a DCEL mesh, but using a BVH accelerator in full representation.
48
-
#. Into a signed distance function representation of a DCEL mesh, but using a BVH accelerator in compact representation.
49
+
#. Into a signed distance function representation of a DCEL mesh, but using a BVH accelerator in compact representation.
50
+
51
+
.. important::
52
+
53
+
The ``EBGeometry`` parser will read input files into internal objects that represent each file type.
54
+
Conversion of these objects into DCEL meshes is not required, and it is possible to creating bounding volume hierarchies directly from the facets.
55
+
This is useful when only an acceleration structure is needed for looking up facets or triangles, but no signed distance function is otherwise required.
49
56
50
57
DCEL representation
51
58
___________________
52
59
53
-
To read one or multiple STL files and turn it into DCEL meshes, use
60
+
To read one or multiple files and turn it into DCEL meshes, use
0 commit comments