Blender
Counting AABB for object in Blender
For quick and rough checking of two objects geometry intersections, bounding objects are usually used – spheres or parallelograms in which all points of the object are inscribed. Bounding object intersections are often inaccurate, but they are very efficient in terms of speed. One of the types of bounding objects is AABB (Axis Aligned Bounding Box) – a parallelogram aligned with the global coordinate axes.
Selecting objects with no materials
For quickly finding and selecting objects that do not have materials, we can use the Blender Python API and write a script consisting of just a few lines.
Convex hull
The convex_hull() function allows us to create a convex hull for a mesh – a shape that completely encloses the mesh at its extreme points. With its help, we can quickly build simplified models from complex meshes.
Getting all classes for menus in Blender UI
To make changes to menus in Blender UI, for example, add new items or overriding the menu completely, we first need to know the class of the menu which we need to change.
Custom icons in Blender UI
Mostly often Blender add-on developers use icons from Blender built-in library to personalize UI buttons. However, absolutely any external images can be uploaded and used as icons in the UI.
MatCap based on shader nodes
MatCap is a material with just one texture, but it allows to quickly and conveniently show how a mesh will look with a certain material and in a certain light. When we assign a MatCap by selecting it in the 3D viewport shading options (Shading – Lighting – MatCap), the MatCap is assigned to all objects in the scene at once. However, if we need to selectively assign a MatCap to some meshes, MatCap can be emulated using shader nodes.