Blender  V3.3
Classes | Namespaces | Functions
curve_to_mesh_convert.cc File Reference
#include "BLI_array.hh"
#include "BLI_devirtualize_parameters.hh"
#include "BLI_set.hh"
#include "BLI_task.hh"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "BKE_attribute_math.hh"
#include "BKE_curves.hh"
#include "BKE_geometry_set.hh"
#include "BKE_material.h"
#include "BKE_mesh.h"
#include "BKE_curve_to_mesh.hh"

Go to the source code of this file.

Classes

struct  blender::bke::CurvesInfo
 
struct  blender::bke::ResultOffsets
 
struct  blender::bke::CombinationInfo
 

Namespaces

 blender
 
 blender::bke
 

Functions

static void blender::bke::mark_edges_sharp (MutableSpan< MEdge > edges)
 
static void blender::bke::fill_mesh_topology (const int vert_offset, const int edge_offset, const int poly_offset, const int loop_offset, const int main_point_num, const int profile_point_num, const bool main_cyclic, const bool profile_cyclic, const bool fill_caps, MutableSpan< MEdge > edges, MutableSpan< MLoop > loops, MutableSpan< MPoly > polys)
 
static void blender::bke::mark_bezier_vector_edges_sharp (const int profile_point_num, const int main_segment_num, const Span< int > control_point_offsets, const Span< int8_t > handle_types_left, const Span< int8_t > handle_types_right, MutableSpan< MEdge > edges)
 
static void blender::bke::fill_mesh_positions (const int main_point_num, const int profile_point_num, const Span< float3 > main_positions, const Span< float3 > profile_positions, const Span< float3 > tangents, const Span< float3 > normals, const Span< float > radii, MutableSpan< MVert > mesh_positions)
 
static CurvesInfo blender::bke::get_curves_info (const CurvesGeometry &main, const CurvesGeometry &profile)
 
static ResultOffsets blender::bke::calculate_result_offsets (const CurvesInfo &info, const bool fill_caps)
 
static eAttrDomain blender::bke::get_attribute_domain_for_mesh (const AttributeAccessor &mesh_attributes, const AttributeIDRef &attribute_id)
 
static bool blender::bke::should_add_attribute_to_mesh (const AttributeAccessor &curve_attributes, const AttributeAccessor &mesh_attributes, const AttributeIDRef &id)
 
static GSpan blender::bke::evaluated_attribute_if_necessary (const GVArray &src, const CurvesGeometry &curves, const std::array< int, CURVE_TYPES_NUM > &type_counts, Vector< std::byte > &buffer)
 
template<typename Fn >
static void blender::bke::foreach_curve_combination (const CurvesInfo &info, const ResultOffsets &offsets, const Fn &fn)
 
template<typename T >
static void blender::bke::copy_main_point_data_to_mesh_verts (const Span< T > src, const int profile_point_num, MutableSpan< T > dst)
 
template<typename T >
static void blender::bke::copy_main_point_data_to_mesh_edges (const Span< T > src, const int profile_point_num, const int main_segment_num, const int profile_segment_num, MutableSpan< T > dst)
 
template<typename T >
static void blender::bke::copy_main_point_data_to_mesh_faces (const Span< T > src, const int main_segment_num, const int profile_segment_num, MutableSpan< T > dst)
 
static void blender::bke::copy_main_point_domain_attribute_to_mesh (const CurvesInfo &curves_info, const ResultOffsets &offsets, const eAttrDomain dst_domain, const GSpan src_all, GMutableSpan dst_all)
 
template<typename T >
static void blender::bke::copy_profile_point_data_to_mesh_verts (const Span< T > src, const int main_point_num, MutableSpan< T > dst)
 
template<typename T >
static void blender::bke::copy_profile_point_data_to_mesh_edges (const Span< T > src, const int main_segment_num, MutableSpan< T > dst)
 
template<typename T >
static void blender::bke::copy_profile_point_data_to_mesh_faces (const Span< T > src, const int main_segment_num, const int profile_segment_num, MutableSpan< T > dst)
 
static void blender::bke::copy_profile_point_domain_attribute_to_mesh (const CurvesInfo &curves_info, const ResultOffsets &offsets, const eAttrDomain dst_domain, const GSpan src_all, GMutableSpan dst_all)
 
template<typename T >
static void blender::bke::copy_indices_to_offset_ranges (const VArray< T > &src, const Span< int > curve_indices, const Span< int > mesh_offsets, MutableSpan< T > dst)
 
static void blender::bke::copy_curve_domain_attribute_to_mesh (const ResultOffsets &mesh_offsets, const Span< int > curve_indices, const eAttrDomain dst_domain, const GVArray &src, GMutableSpan dst)
 
Meshblender::bke::curve_to_mesh_sweep (const CurvesGeometry &main, const CurvesGeometry &profile, bool fill_caps)
 
static CurvesGeometry blender::bke::get_curve_single_vert ()
 
Meshblender::bke::curve_to_wire_mesh (const CurvesGeometry &curve)