Blender Git Loki

Git Commits -> Revision 9a56a38

Revision 9a56a38 by Hans Goudey (master)
March 16, 2021, 21:35 (GMT)
Geometry Nodes: Add initial version of mesh primitives

This commit includes nodes to build the following primitives:
- Cone
- Cylinder
- Circle
- Cube
- UV Sphere
- Ico Sphere
- Line
- Plane/Grid

In general the inputs are the same as the corresponding operators
in the 3D view.

**Line Primitive**
The line primitive has two modes-- adding vertices between two end
points, or adding vertices each at an offset from the start point.
For the former mode, there is a choice between a vertex count
and a distance between each point.

**Plane Primitive**
This commit includes the "Plane" and "Grid" primitives as one node.
Generally primitives are named after the simpler form of the shape they
create (i.e. "Cone" can make some more complex shapes). Also, generally
you want to tweak the number of subdivisions anyway, so defaulting to
plane is not an inconvenience. And generally having fewer redundant
base primitives is better.

**Future Improvements**
A following patch proposes to improve the speed of the cylinder, cone,
and sphere primitives: D10730. Additional possible future improvements
would be adding subdivisions to the cube node and rings to the cone
and cylinder nodes.

Differential Revision: https://developer.blender.org/D10715

Commit Details:

Full Hash: 9a56a3865c06b472ac54c0351e270dcf738add07
Parent Commit: 3e87d8a
Lines Changed: +1502, -6

8 Added Paths:

/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_circle.cc (+244, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cone.cc (+279, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cube.cc (+84, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cylinder.cc (+105, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_ico_sphere.cc (+91, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_line.cc (+188, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_plane.cc (+183, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_uv_sphere.cc (+131, -0) (View)

10 Modified Paths:

/release/scripts/startup/nodeitems_builtins.py (+10, -0) (Diff)
/source/blender/blenkernel/BKE_node.h (+8, -0) (Diff)
/source/blender/blenkernel/intern/node.cc (+8, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+38, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+89, -1) (Diff)
/source/blender/nodes/CMakeLists.txt (+8, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_transform.cc (+7, -5) (Diff)
/source/blender/nodes/geometry/node_geometry_util.hh (+13, -0) (Diff)
/source/blender/nodes/NOD_geometry.h (+8, -0) (Diff)
/source/blender/nodes/NOD_static_types.h (+8, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021