| genre | WEMProcessing |
| status | stable |
| authors | Olaf Konrad, Bart De Dobbelaer |
| package | MeVisLab/Standard |
| dll | MLWEMModules |
| definition | MLWEMModules.def |
| see also | WEMBoolOp |
| keywords | WEM, plane |
The module WEMClip clips a WEM according to a given plane and generates CSOs that represent an intersection of a WEM and a plane.
Connect any WEM to the input of the WEMClip module, choose a plane and click the apply button.
Clipping (also known as culling) is a very common operation in 3D graphics. When viewing a 3D scene, all 3D meshes falling outside the user's view or only partly visible need to be clipped against the viewing frustum. In comparison with such a frustum, which has six clipping planes, the WEMClip module only has one. It intersects the WEM and each face either lies on the interior side or exterior side of the plane.
A smaller portion of the 3D mesh faces intersect the clipping plane. Depending on how the interior and exterior of the clipping plane are defined, some part of the WEM is kept, while the other faces are discarded. The faces intersecting the plane change their geometry since one, two, three or more nodes become invisible.
The clipped WEM and a CSO for the clipped path (can be more than a single CSO).
| Apply: Trigger | Generate CSOs: Bool | Plane: Plane |
| Auto Apply: Bool | Generate Edges: Bool | progress: Float |
| Auto Update: Bool | generateCSOsOpen: Bool | removePreviousWEMs: Bool |
| autoClear: Bool | id: Integer | show: Bool |
| autoLevelCSOs: Bool | invalidMarkerColor: Color | Triangulation Mode: Enum |
| copyInputWEMs: Bool | invalidPathPointColor: Color | useFaceDiffuseColor: Bool |
| editable: Bool | isProcessing: Bool | useInputWEMToCreateOutputWEM: Bool |
| elapsedTime: Float | listenToFinishNotifications: Bool | usePolygonOffset: Bool |
| forwardRepaintNotifications: Bool | modifyAttributes: Bool | Which Output: Enum |
| forwardSelectionNotifications: Bool | outputTabSelected: Bool |
If checked, all changes of parameters lead to a new clipping of the input WEM.
If checked, all changes to the input WEM leads a new clipping.
Defines the triangulation mode.
Values:
| Title | Name | Description |
|---|---|---|
| Center node | Center node | A new node is added to the center of the polygon. |
| Fan | Fan | From one node (the first one), edges are generated to all other nodes of the polygon. |
| Strip | Strip | Nodes on opposing sides are connected by edges. |
Sets the clipping plane, given by its planar equation Ax+By+Cz+D = 0.
If checked, edges are generated on the output meshes.
If edges are not required for the rest of the pipeline, unchecking this option saves time.