Work in progress.\ This will be a rust port of my old scala based project toxicblend. (now defunct)
It is a client-server based addon for Blender written in Rust (and Python for the client side parts).
Follow instructions in installasblender_addon.md
Requires #![feature(hash_drain_filter)]
and #![feature(map_first_last)]
i.e. rust +nightly
The blender addon is based on a client-server model using grpc and tonic.
The blender addon is the client, and it only connects to localhost
.
The server binds to localhost
as well; so it should not be reachable from any other computer (not thoroughly tested), run it with this command:
cargo +nightly run --bin toxicblend_server --release
If the grpc server (for any unimaginable reason) would crash, blender will hang waiting for response.
This can easily be fixed if you run blender from the console. A ctrl
- C
will fix it.
These operations all operate in blender edit mode:
Will convert a flat mesh object into a 2D outline. Right now the data must be in a plane crossing origin (one axis need to be zero)
Works similarly to the built-in simplify command, but instead of a distance it takes a percentage. This percentage is applied to the largest dimension of the AABB and that value is used as the Ramer–Douglas–Peucker distance. Works on 3D linestrings/polylines (no faces).
This percentage change makes it possible to simplify tiny objects without having to scale them up, simplify and then scale them down again.
Runs the Voronoi sweepline algorithm on loops of 2D lines and builds a 2½D mesh (input geometry must be on a plane crossing origin).
Encircle the input lines in an outer, closed, perimeter for better results.
Do not input single points or faces, only edge loops.
Takes the output of the 2d_outline command and calculates the 3D centerline.
This operation only works on non-intersecting loops with islands of loops inside. E.g. fonts.
If you only need the 2D centerline, you can simply scale the added dimension to zero.
Keyboard command: s
z
0
for setting Z to zero.
Runs the Voronoi sweepline algorithm on 2D points and lines (geometry must be on a plane crossing origin).
Takes an edge-only 3D mesh, like the output of the Voronoi operation, and puts voxelized tubes along the edges. This operation does not require flat input.
This operation uses building-blocks and sdfu for the voxel generation.
Takes an edge-only mesh, like the output of the Voronoi operation, and puts metaballs along the edges. This operation does not require flat input.
This operation is located under Object
-> Add
-> Metaball
-> MetaVolume
Generates a Lindenmayer systems graph/curve using dcc-lsystem.
This operation is located under Object
-> Add
-> Mesh
-> LSystem
Runs on a single flat mesh object made of edges (no faces) and tests for self-intersections. If an intersection is found, the intersecting edges will be split at that point.
Selects all vertexes that only connects to one other vertex. Useful for identifying dangling vertices.
Select edges that are connected to the selected edges, but limit by an angle constraint.
If edge A
is selected and edge B
is directly connected to it, B
will be selected if the angle between A
and B
is smaller than the angle limit. B
will then be used to select more edges and so on.
Selects all vertexes that connects to three or more other vertices. Useful for selecting intersections.
Checks a mesh for anomalies, double edges etc. Will print results to the console/terminal.