-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter: Added LabelTriangleGeometry and RemoveFlaggedTriangles (#1010)
* Fully Implemented RemoveFlaggedTriangles and LabelTriangleGeometry filters and documentation * Stripped unused includes and added pybindings to LabelTriangleGeometry header
- Loading branch information
Showing
7 changed files
with
1,353 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
...ins/SurfaceMeshing/Documentation/SurfaceMeshingFilters/LabelTriangleGeometry.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Label Triangle Geometry # | ||
|
||
## Group (Subgroup) ## | ||
|
||
Surface Meshing (Geometry) | ||
|
||
## Description ## | ||
|
||
This **Filter** accepts a **Triangle Geometry** and checks the connectivity of **Triangles** and assigns them **region ID**s in a mask accordingly as well as providing a count for the number of **Triangles** in each **Region**. | ||
|
||
## Required Geometry ### | ||
|
||
**Triangle Geometry** | ||
|
||
## Required Objects ## | ||
|
||
| Kind | Default Name | Type | Component Dimensions | Description | | ||
|------|--------------|------|----------------------|-------------| | ||
| **Data Container** | CAD Geometry | **Triangle Geometry** | N/A | This is the **Triangle Geometry** to be operated on. | | ||
|
||
## Created Objects ## | ||
|
||
| Kind | Default Name | Type | Component Dimensions | Description | | ||
|------|--------------|------|----------------------|-------------| | ||
| **Face Attribute Array** | Region Ids | int32_t | (1)/(1) | The mask list for **SharedTriList** that holds traingles respective **Region ID**. | | ||
| **Attribute Matrix** | Cell Feature Attribute Matrix | FaceFeature | (1)/(0) | A holding container for **NumTriangles** and respective masks. | | ||
| **FaceFeature Attribute Array** | NumTriangles | int64_t | (1)/(1) | This is a mask for each **Region ID** that contains the amount of **Triangles** in each **Region**. | | ||
|
||
## License & Copyright ## | ||
|
||
Please see the description file distributed with this plugin. | ||
|
||
## DREAM3D Mailing Lists ## | ||
|
||
If you need more help with a filter, please consider asking your question on the DREAM3D Users mailing list: | ||
https://groups.google.com/forum/?hl=en#!forum/dream3d-users |
46 changes: 46 additions & 0 deletions
46
...ns/SurfaceMeshing/Documentation/SurfaceMeshingFilters/RemoveFlaggedTriangles.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Remove Flagged Triangles # | ||
|
||
## Group (Subgroup) ## | ||
|
||
Surface Meshing (Misc) | ||
|
||
## Description ## | ||
|
||
This **Filter** removes **Triangles** from the supplied **Triangle Geometry** that are flagged by a boolean mask array. Specifically, **Triangles** flagged as _true_ are removed from the **Geometry**. A new reduced **Triangle Geometry** is created that contains all the remaining **Triangles**. It is unknown until run time how many **Triangles** will be removed from the **Geometry**. Therefore, this **Filter** requires that a new **Data Container** be created to contain the reduced **Triangle Geometry**. This new **Data Container** will NOT contain copies of any **Feature** or **Ensemble** **Attribute Matrices** from the original **Data Container**. Additionally, all **Vertex** data will be copied, with tuples _removed_ for any **Vertices** removed by the **Filter**. The user must supply a name for the reduced **Data Container**. | ||
|
||
_Note:_ Since it cannot be known before run time how many **Vertices** will be removed, the new **Vertex Geometry** and all associated **Vertex** data to be copied will be initialized to have size 0. | ||
|
||
## Parameters ## | ||
|
||
None | ||
|
||
## Required Geometry ### | ||
|
||
**Triangle Geometry** | ||
|
||
## Required Objects ## | ||
|
||
| Kind | Default Name | Type | Component Dimensions | Description | | ||
|------|--------------|------|----------------------|-------------| | ||
| **Data Container** | TriangleDataContainer | N/A | N/A | **Data Container** holding the **Triangle Geometry** to reduce | | ||
| **RegionIDs Attribute Array** | Region IDs | int32_t | (1) | A **DataArray** containing the **Region IDs** for each | ||
**Triangle** | | ||
| **Triangle Attribute Array** | Mask | bool | (1) | Mask array specifying which **Triangles** to remove | | ||
|
||
## Created Objects ## | ||
|
||
| Kind | Default Name | Type | Component Dimensions | Description | | ||
|------|--------------|------|----------------------|-------------| | ||
| Reduced **Data Container** | ReducedVertexDataContainer | N/A | N/A | **Data Container** holding the reduced **Vertex Geometry** | | ||
|
||
## Example Pipelines ## | ||
|
||
|
||
|
||
## License & Copyright ## | ||
|
||
Please see the description file distributed with this plugin. | ||
|
||
## DREAM3D Mailing Lists ## | ||
|
||
If you need more help with a filter, please consider asking your question on the DREAM3D Users mailing list: |
Oops, something went wrong.