Questions tagged [bmesh]

Blender's new mesh system that was added in 2.63, with full support for N-sided polygons instead of only triangles and quads.

Filter by
Sorted by
Tagged with
0
votes
1answer
237 views

Circular order of edges around vertex

I'm trying to get a circular order of connected edges to a vertex. From the bmesh module, we can have a BMEdgeSeq of linked edges to a vertex with the link_edges function. But the edges list is not ...
1
vote
1answer
315 views

How to get a list of vertices from a list of edges in bmesh?

So if I have a list of edges, selected_edges = [e for e in bm.edges if e.select] How would I make an array of the vertices contained in the edges of that list? ...
2
votes
1answer
401 views

How to select extruded vertices in bmesh?

I'm just messing around with bmesh and was trying to create a script that would extrude the edges I mark as sharp. Here's my code: ...
2
votes
2answers
169 views

How do I use bmesh on a set?

I have an array that is called ccValids, which contains "good" center coordinates for the cylinders I want to create. These cylinders are created as follows: ...
0
votes
0answers
22 views

using a bmesh changes the behaviour of other parts of the code

i have some code, which moves vertices in a mesh: ...
1
vote
1answer
438 views

What is the best way to copy/append geometry from one bmesh to another

I get geometry from bisecting some mesh bm_tmp by a plane and I want to copy/append the resulting geometry r['geom_cut'] (only ...
0
votes
1answer
136 views

edge.use_seam isn't working

Just isn't working, I'm not sure what else to say. There's no errors and it returns True when you call the value. I'm trying create a script that creates an object ...
0
votes
1answer
549 views

Moving vertices of two objects away from each other

Consider having two (multiple) objects that are very close to each other. Is there any algorithm which can identify vertices of these objects that their distances are less than a tolerance and then ...
0
votes
1answer
26 views

Got two connected BVerts, how to get the BEdge?

I've created a couple of BVerts: v1 = self.bm.verts.new(vector1) v2 = self.bm.verts.new(vector2) I run some python functions ...
0
votes
2answers
49 views

Triangularization problem in symmetric objects

If I create a symmetric object without the mirror modifier, the triangularizations of the mesh aren't symmetric during rendering. Is this a feature or bug ?
1
vote
0answers
442 views

Edge Loops and Python. Enumerating and Analysis

Does Blender Provide any Edge Loop identification in Mesh or BMesh? If yes, what is the link or document that describe such support? Showing edge indices of a selection. Image Above. Crude Console ...
1
vote
0answers
34 views

Tris inversion from OpenGL rendering to blender internal

I create a plane, made of 2 tris, and move up one vertex to highlight the presence of the tris. Why if I switch to blender internal renderer the tris are reversed ?
0
votes
1answer
128 views

Retreiving element face number in binary .ply file

I have a binary .ply file of a model, is there a way with blender to retrieve the number (i.e. their position in the file) of the faces corresponding to a set of ...
1
vote
1answer
62 views

Why does creating a new face int layer break Unwrap Reset?

EDIT: This apparently is a bug (https://developer.blender.org/T52723) However, I'm still creating bmeshes in the draw method of my panels which is bad practice, but not the cause of this problem. I'...
2
votes
1answer
210 views

Fail to join faces with python

I would like to join two faces which are in the same mesh by using bmesh.utils.face_join(faces, remove=True), and the details from blender 2.78c API documentation ...
3
votes
1answer
277 views

How do I grab the active texture on a face in python?

So I'm pretty much done with designing a script to export meshes I (or others within my group) make in Blender for use in another piece of software (VoxelStudio). Everything has been slow going due ...
1
vote
0answers
702 views

How can I change the resting position of a rig from T-pose to A-pose

The avatar is in a T-Pose and the weighing etc. works, but I want to put it in an A, standing position so that I can more easily create clothing for it. But whenever I reposition the rig, the weights ...
1
vote
0answers
169 views

Why is mesh.from_pydata resulting in segmentation faults?

I have vertex and face data loaded from a cube that was subdivided many times, with a total of 26138 vertices and slightly fewer faces. I am loading the object in a script, and whenever I try to load ...
0
votes
0answers
62 views

Boolean operations has unexpected behaviors

Whenever two faces on two intersecting models are co-planer, booleans completely break. Steps to reproduce: Create a new file with the default cube. Select and duplicate the default cube and ...
0
votes
1answer
96 views

Boolean modifier cannot be executed error

I'm trying to create a background for a friend with his username, so I've created two text objects, and given them meshes. I hope to make some pretty cool semi-transparent materials for them. However, ...
0
votes
0answers
46 views

Thickness to windows

I have been making a plane in blender for some time now and the one thing I cannot get around is adding thickness to windows on a plane. I have been making the plane using a cylinder and are NOT going ...
1
vote
2answers
376 views

Adding Edge Loops Around Airplane Window

I would like to add an edge loop around each one of these windows and are not 100% sure on the best way to do it even after watching some videos. If someone could point me in the right direction that ...
2
votes
1answer
1k views

BMesh get edge loop

I'm trying to get edge loop, starting from one edge and continuing as far as the loop goes. This atrocity (below) doesn't work, because vertex index order is disrupted. So I have no apparent way of ...
1
vote
1answer
188 views

UV Maps - is it possible to use the third channel (W?)

The Vector of a UV map consists of 3 channels as for any vector in 3D space (whether Generated, Object, World, etc.) and as can be accessed via the Separte XYZ node. The 'U' and 'V' correspond to the '...
3
votes
1answer
568 views

Access color of a point given the 3D position (on the surface of a polygon)

My problem consists in accessing the color of a given point (I know the 3D coordinates (x,y,z) that lies on one surface of a mesh. I use raytracing to get the 3D position of the point casting a ray ...
0
votes
1answer
207 views

Union partially overlapping cubes without boolean modifier

My goal is to generate a model composed of many partially overlapping cubes. But I need to get rid of the parts where they overlap, so I have a single mesh without any intersections. One of the ...
3
votes
1answer
218 views

Using custom vertex data in render

Can float vertex layer data added with bmesh, be used in rendering? Let us say we added some data to all verteces: bm.verts.layers.float.new('G') Can this "G" ...
0
votes
1answer
53 views

fac value in bmesh.utils.edge_split

Not massively familiar with blender and looking at: https://docs.blender.org/api/blender_python_api_current/bmesh.utils.html?highlight=edge_split#bmesh.utils.edge_split It's not clear what the value ...
1
vote
1answer
111 views

Add Bmesh to another Bmesh

I'm using a scrip Subprogram of Animation nodes to merge that will merge a list of objects using Bmesh (Because it holds the UVs) But now i'm stuck at merging two Bmesh as the picture below explains....
3
votes
1answer
267 views

How to subdivide concave face into quads

I'm aware of bpy.ops.mesh.vert_connect_concave() and the result is similar to what I'm looking to implement. However, with ...
2
votes
1answer
60 views

Bmesh: Immediately encounter strange error after adding new layer and running bmesh op

The script is simple: ...
1
vote
1answer
213 views

Bmesh: running bmesh ops after deleting geometry often results in an error

I've uploaded a blend file that demonstrates the problem, please have a look and test it for yourself: https://drive.google.com/open?id=0B9DFPZBPKp6AdERZTmJWeGE0RFE If you delete geometry from a ...
3
votes
2answers
138 views

Problem with BMesh Vertex Location Precision

I'm writing an add-on that imports vertex locations and builds a BMesh by placing vertices at those locations. I'm running into precision issues, since the imported data can be large floating point ...
2
votes
1answer
342 views

Python BMESH: For loop breaking trying to split mesh via UV Islands

Perhaps I am not using bmesh properly. I'm trying to create a script that splits a mesh by it's UV islands. The script attempts to iterate through each face of mesh and... select a face. select ...
0
votes
1answer
34 views

Trying to swap vertex with uv by script

Basically, I want to create a tool that can swap between one vertex coordinate with specialized UV data named 'SwappedUV' for whole vertex in active object (if not exist, it'll create new UV layer ...
0
votes
1answer
100 views

Issues with manual culling, using BMesh

I have a camera and a monkey (suzanne) in the scene. I'm attempting to manually cull the back faces from the monkey. The problem is that certain faces get culled, despite its normal seen from the ...
0
votes
1answer
438 views

vertices jump about when dragging

I am retopologising a mesh using shrink wrap modifier, but some of the vertices jump about when being dragged for alignment: For example if I press G and drag the vertex below to the right a bit it, ...
0
votes
2answers
567 views

Create a boundary mesh around complex mesh

I have a mesh which has many faces and I want to create a simple mesh around it's shape to kinda form a bounding box around it's parts so that I have less faces and have simple bounds around the ...
2
votes
1answer
374 views

selection history from “shortest path”?

is it possible to retrieve the selection history(the specific sequence) of vertices selected using "shortest path"? Using bmesh, I can get the selection history by doing: ...
0
votes
2answers
534 views

Rotate bmesh around Vector with Python

I try to rotate a bmesh around a vector as axis. ...
6
votes
2answers
1k views

how to create and extrude a bmesh face

I would like to programmatically create and extrude polygons. I've found several examples of code (e.g. here), but none of them are currently working for me. As a simple example, I am trying to get ...
3
votes
1answer
137 views

OSM skillion roof with bmesh… need an alternative to ray_cast

OSM buildings with the skillion roof shape, are often tagged with only direction and levels. ...
0
votes
0answers
100 views

Is there a library/addon for scripters that supports geometry related selection operations?

I find myself writing various operations that one would expect to be available in blender (somewhere). These operations largely stem around things like selecting subsets of a geometry, finding various ...
1
vote
1answer
385 views

BMesh and Bevel

I'm trying to perform a bevel operation using the bmesh API. My script either crashes blender, with the error message EXCEPTION_ACCESS_VIOLATION, or it doesn't do ...
2
votes
0answers
355 views

Unwrap mesh with spherical projection in python

I would like to have the same result with python as in the UI when I do unwrap > sphere projection on a mesh. I know it's possible to use the operator ...
25
votes
1answer
914 views

Closing “Fibonacci's Hole”

Creating a sphere using the points defined by Spherical Fibonacci Mapping. For the most part it is easy to "skin" by using two consecutive fibonacci numbers as steps to loop on the index. And get ...
3
votes
1answer
1k views

Applying per-vertex colors to new Bmesh

I'm having trouble applying vertex colors through Python to a mesh. The mesh is imported from a file which has vertex info, face info (vertex indices), and a list of colors that corresponds to each ...
1
vote
0answers
57 views

Merging 2 BMVert's with Python

Is it possible with bmesh to specify merge together 2 BMVerts easily? Or must I do it the manual way and delete faces, remove vertices, and recreate faces at the ...
1
vote
1answer
434 views

Python: Edit panel to edit custom bmesh face layers?

With the bmesh module, I added a custom data layer to a mesh, holding information for each face. ...
2
votes
1answer
2k views

When to use bmesh.update_edit_mesh and when Mesh.update?

When is it appropriate to use one over the other? In example, I have the following: ...