Curve to Mesh Node #87428

Closed
opened 2021-04-12 15:37:10 +02:00 by Hans Goudey · 7 comments
Member

{F9974759 size=full}

That screenshot is missing a "fill caps" option

This node takes a profile curve and extrudes it along each of the curve splines based on the data generated by the curve evaluation.

Details

  • Without a profile input, the node just uses a point, so it outputs a line.
  • The node uses the resolution, cyclic, and radius data already stored as attributes on the control points and on the spline.
  • The curve profile widget can be used as a node to provide a quick way to sketch a profile or choose from a preset.
  • For bezier splines, edges coming from sharp points on the profile can be automatically marked sharp.
  • By marking the ends sharp, the node can generate a fully manifold mesh.

Related Nodes

image.png The node described in this task only does the "extrusion" type of meshing, a separate node would do the 2D meshing currently reserved for 2D curves.
image.png With this node added, a simple further improvement would be to add a node that uses a separate profile for the start and end and smoothly interpolates between the two.

Further Questions

  • I would like to consider naming this node "Extrude Profile" or "Curve Extrude" since that's really what it's doing. There are many possible ways to convert a curve to a mesh, and this method is only one of them.
  • One conflict is exposing parameters in this node vs. storing them in the curve. For example, the normal calculation method currently at the top of the curve data property editor tab. I would like to store them in the curve, since the evaluated data can be used for much more than just this node.

Implementation

  • The mesh topology created will be quite similar to the grid node, the sphere node, and a cylinder with rings. That could be abstracted at some point.
  • Other than that, the actual creation of the mesh is rather simple, most of the complexity lies in the curve evaluation.
{[F9974759](https://archive.blender.org/developer/F9974759/image.png) size=full} *That screenshot is missing a "fill caps" option* This node takes a profile curve and extrudes it along each of the curve splines based on the data generated by the curve evaluation. **Details** * Without a profile input, the node just uses a point, so it outputs a line. * The node uses the resolution, cyclic, and radius data already stored as attributes on the control points and on the spline. * The curve profile widget can be used as a node to provide a quick way to sketch a profile or choose from a preset. * For bezier splines, edges coming from sharp points on the profile can be automatically marked sharp. * By marking the ends sharp, the node can generate a fully manifold mesh. **Related Nodes** | ![image.png](https://archive.blender.org/developer/F9975045/image.png) | The node described in this task only does the "extrusion" type of meshing, a separate node would do the 2D meshing currently reserved for 2D curves. | -- | -- | | ![image.png](https://archive.blender.org/developer/F9975170/image.png) | With this node added, a simple further improvement would be to add a node that uses a separate profile for the start and end and smoothly interpolates between the two. **Further Questions** * I would like to consider naming this node "Extrude Profile" or "Curve Extrude" since that's really what it's doing. There are many possible ways to convert a curve to a mesh, and this method is only one of them. * One conflict is exposing parameters in this node vs. storing them in the curve. For example, the normal calculation method currently at the top of the curve data property editor tab. I would like to store them in the curve, since the evaluated data can be used for much more than just this node. **Implementation** * The mesh topology created will be quite similar to the grid node, the sphere node, and a cylinder with rings. That could be abstracted at some point. * Other than that, the actual creation of the mesh is rather simple, most of the complexity lies in the curve evaluation.
Author
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly

Added subscriber: @victorlouis

Added subscriber: @victorlouis

From the description it seems like it's planned that the extrusion part will be contained in this node, right?

Maybe the extrusion should be a separate node? The Curve to Mesh would then just output points connected by edges.

(Edit: Maybe I'm understanding this wrong and by extrusion you just mean extrusion along the tangent to the curve or something like that.)

From the description it seems like it's planned that the extrusion part will be contained in this node, right? Maybe the extrusion should be a separate node? The `Curve to Mesh` would then just output points connected by edges. (Edit: Maybe I'm understanding this wrong and by extrusion you just mean extrusion along the tangent to the curve or something like that.)
Author
Member

Yes, I was thinking about that too, since the 2D meshing is also another way to do "Curve to Mesh", maybe this node could have a different name.

Yes, I was thinking about that too, since the 2D meshing is also another way to do "Curve to Mesh", maybe this node could have a different name.
Hans Goudey self-assigned this 2021-04-14 21:30:23 +02:00

This issue was referenced by 8216b759e9

This issue was referenced by 8216b759e9557c786e517aa64eee424fed0ac742

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
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
4 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#87428
No description provided.