The BMesh edge connecting 2 verts
Return the angle between 2 connected faces.
| Returns: | The angle between both faces in radians. |
|---|---|
| Return type: | float |
Copy values from another element of matching type.
Update edges vertex normals.
Return the other vertex on this edge or None if the vertex is not used by this edge.
| Parameters: | vert (BMVert) – a vert in this edge. |
|---|---|
| Returns: | The edges other vert. |
| Return type: | BMVert or None |
Set the selection. This is different from the select attribute because it updates the selection state of assosiated geometry.
| Parameters: | select (boolean) – Select or de-select. |
|---|
Hidden state of this element.
| Type : | boolean |
|---|
Index of this element.
| Type : | int |
|---|
Note
This value is not necessarily valid, while editing the mesh it can become dirty.
It’s also possible to assign any number to this attribute for a scripts internal logic.
To ensure the value is up to date - see BMElemSeq.index_update.
True when this edge is at the boundary of a face (read-only).
| Type : | boolean |
|---|
True when this edge is manifold (read-only).
| Type : | boolean |
|---|
True when this element is valid (hasn’t been removed).
| Type : | boolean |
|---|
True when this edge is not connected to any faces (read-only).
| Type : | boolean |
|---|
Smooth state of this element.
| Type : | boolean |
|---|
Selected state of this element.
| Type : | boolean |
|---|
Smooth state of this element.
| Type : | boolean |
|---|
Generic attribute scripts can use for own logic
| Type : | boolean |
|---|
General sequence type used for accessing any sequence of BMVert, BMEdge, BMFace, BMLoop.
When accessed via BMesh.verts, BMesh.edges, BMesh.faces there are also functions to create/remomove items.
Return a face/edge which uses the verts passed.
| Parameters: |
|
|---|
Initialize the index values of this sequence.
This is the equivalent of looping over all elements and assigning the index values.
for index, ele in enumerate(sequence):
ele.index = index
Note
Running this on sequences besides BMesh.verts, BMesh.edges, BMesh.faces works but wont result in each element having a valid index, insted its order in the sequence will be set.
Vertex Sequence
| Parameters: |
|
|---|---|
| Returns: | The newly created edge. |
| Return type: |
Edge Sequence
| Parameters: | |
|---|---|
| Returns: | The newly created edge. |
| Return type: |
Face Sequence
Create a new vert/edge/face.
| Parameters: | |
|---|---|
| Returns: | The newly created face. |
| Return type: |
Remove a vert/edge/face.
The BMesh face with 3 or more sides
Return the area of the face.
| Returns: | Return the area of the face. |
|---|---|
| Return type: | float |
Return bounds center of the face.
| Returns: | a 3D vector. |
|---|---|
| Return type: | mathutils.Vector |
Return median center of the face.
| Returns: | a 3D vector. |
|---|---|
| Return type: | mathutils.Vector |
Make a copy of this face.
| Parameters: |
|
|---|---|
| Returns: | The newly created face. |
| Return type: |
Copy values from another element of matching type.
Interpolate the customdata from another face onto this one (faces should overlap).
| Parameters: | face (BMFace) – The face to interpolate data from. |
|---|
Update faces normal.
Set the selection. This is different from the select attribute because it updates the selection state of assosiated geometry.
| Parameters: | select (boolean) – Select or de-select. |
|---|
Hidden state of this element.
| Type : | boolean |
|---|
Index of this element.
| Type : | int |
|---|
Note
This value is not necessarily valid, while editing the mesh it can become dirty.
It’s also possible to assign any number to this attribute for a scripts internal logic.
To ensure the value is up to date - see BMElemSeq.index_update.
True when this element is valid (hasn’t been removed).
| Type : | boolean |
|---|
The normal for this face as a 3D, wrapped vector.
| Type : | mathutils.Vector |
|---|
Selected state of this element.
| Type : | boolean |
|---|
Smooth state of this element.
| Type : | boolean |
|---|
Generic attribute scripts can use for own logic
| Type : | boolean |
|---|
Internal BMesh type for looping over verts/faces/edges, used for iterating over BMElemSeq types.
This is normally accessed from BMFace.loops where each face corner represents a corner of a face.
Return angle at this loops corner of the face. This is calculated so sharper corners give lower angles.
| Returns: | The angle in radians. |
|---|---|
| Return type: | float |
Copy values from another element of matching type.
Interpolate the customdata from a face onto this loop (the loops vert should overlap the face).
| Parameters: |
|
|---|
Index of this element.
| Type : | int |
|---|
Note
This value is not necessarily valid, while editing the mesh it can become dirty.
It’s also possible to assign any number to this attribute for a scripts internal logic.
To ensure the value is up to date - see BMElemSeq.index_update.
True when this element is valid (hasn’t been removed).
| Type : | boolean |
|---|
Generic attribute scripts can use for own logic
| Type : | boolean |
|---|
The BMesh vertex type
Return the angle between 2 connected edges.
| Returns: | The angle between both edges in radians. |
|---|---|
| Return type: | float |
Copy values from another element of matching type.
Interpolate the customdata from a face onto this loop (the loops vert should overlap the face).
| Parameters: | face (BMFace) – The face to interpolate data from. |
|---|
Interpolate the customdata from a vert between 2 other verts.
| Parameters: | vert_pair (BMVert) – The vert to interpolate data from. |
|---|
Update vertex normal.
Set the selection. This is different from the select attribute because it updates the selection state of assosiated geometry.
| Parameters: | select (boolean) – Select or de-select. |
|---|
The coordinates for this vertex as a 3D, wrapped vector.
| Type : | mathutils.Vector |
|---|
Hidden state of this element.
| Type : | boolean |
|---|
Index of this element.
| Type : | int |
|---|
Note
This value is not necessarily valid, while editing the mesh it can become dirty.
It’s also possible to assign any number to this attribute for a scripts internal logic.
To ensure the value is up to date - see BMElemSeq.index_update.
True when this vertex is manifold (read-only).
| Type : | boolean |
|---|
True when this element is valid (hasn’t been removed).
| Type : | boolean |
|---|
True when this vertex is not connected to any faces (read-only).
| Type : | boolean |
|---|
The normal for this vertex as a 3D, wrapped vector.
| Type : | mathutils.Vector |
|---|
Selected state of this element.
| Type : | boolean |
|---|
Generic attribute scripts can use for own logic
| Type : | boolean |
|---|
The BMesh data structure
Update mesh normals.
| Parameters: | skip_hidden (boolean) – When True hidden elements are ignored. |
|---|
Flush selection, independent of the current selection mode.
| Parameters: | select (boolean) – flush selection or de-selected elements. |
|---|
flush selection based on the current mode current BMesh.select_mode.
Transform the mesh (optionally filtering flagged data only).
| Parameters: |
|
|---|
True when this element is valid (hasn’t been removed).
| Type : | boolean |
|---|
The selection mode, values can be {‘VERT’, ‘EDGE’, ‘FACE’}, can’t be assigned an empty set.
| Type : | set |
|---|