GPv3: Curve Fill node #113614

Manually merged
Dalai Felinto merged 173 commits from dfelinto/blender:grease-nodes-curve-fill into main 2023-10-16 11:46:30 +02:00

Note, at first this seems to not be working, but it is because the
default grease pencil geometry all on the XZ axis.

Rotating the geometry in X 90 degrees shows the mesh.

Part of #113602.

Note, at first this seems to not be working, but it is because the default grease pencil geometry all on the XZ axis. Rotating the geometry in X 90 degrees shows the mesh. Part of #113602.
Dalai Felinto added the
Interest
Geometry Nodes
Module
Grease Pencil
labels 2023-10-12 16:44:29 +02:00
Hans Goudey requested changes 2023-10-12 16:53:48 +02:00
@ -132,1 +130,3 @@
geometry_set.replace_curves(nullptr);
if (geometry_set.has_grease_pencil()) {
using namespace blender::bke::greasepencil;
Vector<Mesh *> mesh_array;
Member
Array<Mesh *> mesh_by_layer(grease_pencil.layers().size());
...
      mesh_by_layer[layer_index] = mesh;

Might be nice if the number of instances always matches the number of layers. That means some instances have to reference empty geometry.

It would be nice to only generate the empty instance handle (InstanceReference::Type::None / InstanceReference{}) if there's an empty layer

``` Array<Mesh *> mesh_by_layer(grease_pencil.layers().size()); ... mesh_by_layer[layer_index] = mesh; ``` Might be nice if the number of instances always matches the number of layers. That means some instances have to reference empty geometry. It would be nice to only generate the empty instance handle (`InstanceReference::Type::None` / `InstanceReference{}`) if there's an empty layer
dfelinto marked this conversation as resolved
Dalai Felinto force-pushed grease-nodes-curve-fill from a4bf02b1c3 to f711b8af26 2023-10-12 17:06:21 +02:00 Compare
Hans Goudey approved these changes 2023-10-12 17:08:46 +02:00
Hans Goudey left a comment
Member

Just two picky comments inline. It would also be nice to mention the instances thing in the commit message or just link to the conversion design task where we can mention it.

Just two picky comments inline. It would also be nice to mention the instances thing in the commit message or just link to the conversion design task where we can mention it.
@ -133,0 +146,4 @@
if (!mesh_by_layer.is_empty()) {
bke::Instances *mesh_instances = new bke::Instances();
for (Mesh *mesh : mesh_by_layer) {
if (mesh) {
Member

Invert this to handle the !mesh case first. It's more typical to continue or return early in the null/unexpected/empty case

Invert this to handle the `!mesh` case first. It's more typical to continue or return early in the null/unexpected/empty case
dfelinto marked this conversation as resolved
@ -133,0 +152,4 @@
mesh_instances->add_instance(handle, float4x4::identity());
continue;
}
/**
Member

The doxygen format with the newlines and ** is typically only used for function docstrings

The doxygen format with the newlines and `**` is typically only used for function docstrings
dfelinto marked this conversation as resolved
Dalai Felinto force-pushed grease-nodes-curve-fill from f711b8af26 to 38d539f89a 2023-10-12 17:13:00 +02:00 Compare
Dalai Felinto referenced this issue from a commit 2023-10-12 17:30:30 +02:00
Author
Owner

Committed on 2d9ea10892

Committed on 2d9ea10892b2532437708f6ab30771a9ea7cede8
Dalai Felinto closed this pull request 2023-10-12 17:30:48 +02:00
Dalai Felinto reopened this pull request 2023-10-16 11:46:21 +02:00
Dalai Felinto manually merged commit 2d9ea10892 into main 2023-10-16 11:46:30 +02:00
Dalai Felinto deleted branch grease-nodes-curve-fill 2023-10-16 11:47:52 +02:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#113614
No description provided.