Skip to content

Commit

Permalink
Filter: Added LabelTriangleGeometry and RemoveFlaggedTriangles (#1010)
Browse files Browse the repository at this point in the history
* Fully Implemented RemoveFlaggedTriangles and LabelTriangleGeometry filters and documentation
* Stripped unused includes and added pybindings to LabelTriangleGeometry header
  • Loading branch information
nyoungbq authored Oct 27, 2022
1 parent 07e7650 commit 0b91058
Show file tree
Hide file tree
Showing 7 changed files with 1,353 additions and 0 deletions.
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
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:
Loading

0 comments on commit 0b91058

Please sign in to comment.