The BMesh edge connecting 2 verts
Returns: | The angle between 2 connected faces in radians. |
---|---|
Return type: | float |
Returns: | The length between both verts. |
---|---|
Return type: | float |
Copy values from another element of matching type.
Set the hide state. This is different from the hide attribute because it updates the selection and hide state of assosiated geometry.
Parameters: | hide (boolean) – Hidden or visible. |
---|
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. |
---|
Note
Currently this only flushes down, so selecting a face will select all its vertices but de-selecting a vertex won’t de-select all the faces that use it, before finishing with a mesh typically flushing is still needed.
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 |
---|
Add an element to the selection history (no action taken if its already added).
Empties the selection history.
Remove an element from the selection history.
Ensures all elements in the selection history are selected.
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. |
---|
Set the hide state. This is different from the hide attribute because it updates the selection and hide state of assosiated geometry.
Parameters: | hide (boolean) – Hidden or visible. |
---|
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. |
---|
Note
Currently this only flushes down, so selecting a face will select all its vertices but de-selecting a vertex won’t de-select all the faces that use it, before finishing with a mesh typically flushing is still needed.
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 the 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 |
Return normal at this loops corner of the face. Falls back to the face normal for straignt lines.
Returns: | a normalized vector. |
---|---|
Return type: | mathutils.Vector |
Return the tangent at this loops corner of the face (pointing inward into the face). Falls back to the face normal for straignt lines.
Returns: | a normalized vector. |
---|---|
Return type: | mathutils.Vector |
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. |
---|
Set the hide state. This is different from the hide attribute because it updates the selection and hide state of assosiated geometry.
Parameters: | hide (boolean) – Hidden or visible. |
---|
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. |
---|
Note
Currently this only flushes down, so selecting a face will select all its vertices but de-selecting a vertex won’t de-select all the faces that use it, before finishing with a mesh typically flushing is still needed.
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
Clear all mesh data.
Explicitly free the BMesh data from memory, causing exceptions on further access.
Note
The BMesh is freed automatically, typically when the script finishes executing. However in some cases its hard to predict when this will be and its useful to explicitly free the data.
Initialize this bmesh from existing mesh datablock.
Parameters: |
|
---|
Initialize this bmesh from existing object datablock.
Parameters: |
|
---|
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.
Writes this BMesh data into an existing Mesh datablock.
Parameters: | mesh (Mesh) – The mesh data to write into. |
---|
Transform the mesh (optionally filtering flagged data only).
Parameters: |
|
---|
True when this element is valid (hasn’t been removed).
Type : | boolean |
---|
True when this mesh is owned by blender (typically the editmode BMesh).
Type : | boolean |
---|
Sequence of selected items (the last is displayed as active).
Type : | BMEditSelSeq |
---|
The selection mode, values can be {‘VERT’, ‘EDGE’, ‘FACE’}, can’t be assigned an empty set.
Type : | set |
---|