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
1
vote
2answers
260 views

Navigate the disk cycle, like you can navigate the loop and radial loop cycles in bmesh?

So, in bmesh you can navigate the loop cycle via loop.link_loop_next loop.link_loop_prev You can navigate the radial loop cycle via ...
0
votes
1answer
269 views

use python to randomly inset each face, bmesh?

I would like to create some interesting shapes with a script. I'm still pretty new to python and I'm having trouble understanding how to get BMesh to behave the way I want. Here is what I'm trying to ...
2
votes
0answers
19 views

split edge at multiple points without distorting uv or other data

Here's a bmesh edge: +-----------------------------+ Say I want to cut it at multiple points, in the middle and 3/4 from the end like so: ...
4
votes
1answer
514 views

Is there a way to clear sharp edges using bmesh in python?

I'm trying to speed up an addon that had to toggle into Edit Mode for sometimes thousands of object by staying at the object level using bmesh instead of ...
0
votes
0answers
177 views

bmesh.ops.bisect_edges interferes with my list of verts

I am trying to subdivide a face, using bmesh.ops.bisect_edges, followed by bmesh.ops.connect_verts. I collect a list of vertices, before subdividing further, but after I use bmesh.ops.bisect_edges ...
1
vote
0answers
53 views

How to find the distance from a face of one object to the surface of another object, along the face's normal

I feel like this has probably been answered, but I searched and couldn't find an exact solution. What I want is a quick way to take a selected set of faces on an object (or the vertices that make up ...
2
votes
1answer
131 views

bpy.ops.bridge_edge_loops() vs bmesh.ops.bridge_loops()

Why is the bmesh bridge tool so limited? There's no argument to control segments(number_cuts) and no argument to control interpolation. Am I missing something? I was under the impression the bpy ...
1
vote
1answer
415 views

How do you select an edge loop with BMesh?

Can someone please explain to me how I go about selecting edge loops in BMesh? I'm new to Blender scripting and am venturing into BMesh but I can not figure out how to actual select an edge loop. Let'...
4
votes
2answers
1k views

How is possible to create a tetrakaidecahedron? How can I keep only the edges?

The idea I have is to start from the tetrakaidecahedron, have the edges and create something organical as the photomicrograph below. Photomicrograph of open-cell foamed urethane
1
vote
1answer
1k views

There is a way to add custom split normal use Python API?

I can't find a way to achieve custom split normal effect. I want to use python (mesh normal/hard edge or soft edge) data collected from Maya then write to Blender mesh. How to do it using the ...
1
vote
1answer
88 views

Scripting: separating selection results in edgeless mesh

Whenever I use a script to separate a mesh by means of a selection the separated mesh contains no edges (only vertices). In contrast, separated meshes always contain edges when either manually ...
0
votes
1answer
682 views

How to use “bmesh.ops.subdivide_edges” on selected edges

I need to cut an edge into equal parts via script. Using the standart subdivide is out of question because i will need more then 100 cuts (und using subdivide several times to achieve this is not ...
1
vote
1answer
647 views

Can you extrude a mesh like a 'stroke'?

In a 2D app like Photoshop or GIMP, you can add a stroke to an object, and an outline is created for it that's of even distance around the shape. I want to do this for an irregular mesh in Blender. ...
0
votes
1answer
2k views

How to create edges in existing mesh based on a list of vertex indices with Python

I parse 2 csvs, one with vertex coordinates id,x,y,z,r,g,b 0,0.30778491,0.12740749,0.04903458,174.0,84.0,118.0 1,0.3315943,0.0922608,0.08094925,174.0,84.0,118.0 ...
0
votes
1answer
695 views

trying to create a bmesh from csv coordinate list

Hello fellow Blender snakehandlers, I have a list of coordinates in a csv file and I would like to create a mesh with only vertices from it. When I run it, it throws the following error, which I can'...
0
votes
0answers
131 views

How to obtain sequence of selected UV in Python?

Sorry for continuous post from below post. This question is related to it. How to obtain selected UV pairs on same edge in Python? I want to obtain sequence of selected UV in Python. But I did not ...
1
vote
1answer
343 views

How to obtain selected UV pairs on same edge in Python?

I have a problem about Python scripting in Blender. I want to get selected UV pairs on same edge and write below code. ...
0
votes
0answers
74 views

How to hardcode mesh objects as python variable declarations

I am doing an addon, and I need to load constantly some premade objects to reproduce and edit it, I through that making the data directly avaliable from python would help to build fast bmesh variants. ...
1
vote
0answers
101 views

How do I remove the original faces when extruding with Bmesh?

I followed this and ended up with a closed mesh. ...
1
vote
1answer
158 views

Can I permanently change some default settings like inset size, remove doubles threshold, new mesh size?

Ver. 2.79. I was hoping I could change some annoying settings by just editing some of the .PY files bundled with blender. Especially default inset amount. Maybe it's not that easy. But for example, I ...
3
votes
1answer
6k views

Create a UV Sphere / Object in Blender from Python

Referencing to this code: Create a Cube in Blender from Python ...
1
vote
0answers
295 views

Calculate a surface by checking if meshes intersect

In addition to this unresolved question, I would like to add another problem: The main problem is that I made a few hundreds of random non overlapping circles that belong to the same mesh object, and ...
0
votes
2answers
3k views

BMesh: How to get a list of faces and edges, given the vectors (and delete them)?

I have a list of a centre vertice along with all its surrounding vertices. listOfVectors = [ vertice, neighbour1, neighbour2, neighbour3, ... ] I need to remove ...
0
votes
1answer
483 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
432 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
673 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
194 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
23 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
2answers
931 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 ...
1
vote
1answer
251 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
941 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
32 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
119 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
733 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 ...
0
votes
1answer
159 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
83 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
389 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
573 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
1k 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 ...
2
votes
0answers
240 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
76 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
99 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
58 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 ...
3
votes
2answers
578 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 ...
4
votes
1answer
2k 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
342 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
890 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
285 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
364 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
69 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 2 3
4
5
7