How to create new selectable item / volumetric elements

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
Posts: 0
Joined: Wed Aug 21, 2013 1:33 pm

How to create new selectable item / volumetric elements

Post by kiter » Wed Aug 21, 2013 1:41 pm


I am interested in using blender to create meshes with volumetric elements ( for mechanical simulations ).

As an example I would like to create a mesh made up of hexahdrons. The basic idea is that a hexahedron has 8 vertices and when a hexahedron is selected, its vertices are selected too, similar to how face selection works.

I'm assuming that it is not possible to add volumetric elements as a new list to the lists of vertices, edges, and faces in BMesh.

So if I just want to create a new 'selectable type', how do I go about doing this? So just how a face has a little square that enables the selection of the face, and that in turn selects it's vertices, how could I make something similar for my newly defined volumetric type?

Any thoughts or pointers in the right direction would be greatly appreciated,


Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post by stiv » Wed Aug 21, 2013 8:39 pm

Looking at the BMesh code would be a good start.

Post Reply