Blender V5.3
blender::geometry::BevelParameters Struct Reference

#include <GEO_mesh_bevel.hh>

Public Attributes

int segments = 1
float shape = 0.5f
BevelAffect affect_type = BevelAffect::Edges
Array< float2 > custom_profile_samples
std::array< Array< float >, 4 > offsets
Array< bool > miter
Array< float > spread
geometry::BevelAttributeOutputs attribute_outputs

Detailed Description

Definition at line 48 of file GEO_mesh_bevel.hh.

Member Data Documentation

◆ affect_type

BevelAffect blender::geometry::BevelParameters::affect_type = BevelAffect::Edges

◆ attribute_outputs

geometry::BevelAttributeOutputs blender::geometry::BevelParameters::attribute_outputs

Which output attributes are needed.

Definition at line 78 of file GEO_mesh_bevel.hh.

Referenced by blender::nodes::node_geo_bevel_cc::node_geo_exec().

◆ custom_profile_samples

Array<float2> blender::geometry::BevelParameters::custom_profile_samples

Pre-sampled custom profile points, if non-empty. Each element is a (x, y) coordinate in the unit square [0,1]x[0,1], sampled at even arc-length intervals from the input curve. The array has segments + 1 entries (inclusive of both endpoints). Endpoint values (index 0 and last) are always (1,0) and (0,1) so that they align with the bevel strip corners, matching the CurveProfile convention.

Definition at line 62 of file GEO_mesh_bevel.hh.

Referenced by blender::geometry::profile::find_profile_fullness(), blender::geometry::mesh_bevel(), blender::nodes::node_geo_bevel_cc::node_geo_exec(), and blender::geometry::profile::set_profile_spacing().

◆ miter

Array<bool> blender::geometry::BevelParameters::miter

Per corner bool saying whether or not to miter at that corner.

Definition at line 74 of file GEO_mesh_bevel.hh.

Referenced by blender::nodes::node_geo_bevel_cc::node_geo_exec().

◆ offsets

std::array<Array<float>, 4> blender::geometry::BevelParameters::offsets

Blender units to offset each end of each edge. A 4d Array of Arrays indexed by mesh edge id. If affect_type is Edges or Faces, these are in order: source end (left, right), destination end (left, right), viewed from the source end looking towards the destination end, standing on the normal positive side. If affect_type is Vertices, these are the amounts to move along each edge from the vertex, and only the first and third values are used.

Definition at line 72 of file GEO_mesh_bevel.hh.

Referenced by blender::geometry::mesh_bevel(), and blender::nodes::node_geo_bevel_cc::node_geo_exec().

◆ segments

◆ shape

float blender::geometry::BevelParameters::shape = 0.5f

◆ spread

Array<float> blender::geometry::BevelParameters::spread

Per corner float saying how much to spread arc miters.

Definition at line 76 of file GEO_mesh_bevel.hh.

Referenced by blender::nodes::node_geo_bevel_cc::node_geo_exec().


The documentation for this struct was generated from the following file: