Blender V5.3
blender::geometry::debug Namespace Reference

Functions

template<typename T>
static void print_span (Span< T > span, const char *label)
static void print_float3 (const float3 &v)
static void print_float3_span (Span< float3 > span, const char *label)
static void print_int2 (const int2 pair)
static void print_int2_span (Span< int2 > span, const char *label)
static void print_indexrange (const IndexRange &range)
static void print_groupedspan (const GroupedSpan< int > &groupedspan, const char *label)
static const char * mesh_kind_name (MeshKind kind)
static void dump_profile (const Profile &prof)
static void dump_edge_half (const EdgeHalf &eh, const int index)
static void dump_bound_vert (const BoundVert &bndv)
static void dump_vmesh (const VMesh &vm)
static void dump_bev_vert (const BevVert &bv)
static void dump_edge_polygons (const BevelState &state, const BevVert &bv)
static void dump_rebuilt_face (const BevelState &state, const int face_idx)
static void dump_new_face_examples (const BevelState &state)
static void dump_new_edge_examples (const BevelState &state)

Function Documentation

◆ dump_bev_vert()

◆ dump_bound_vert()

◆ dump_edge_half()

◆ dump_edge_polygons()

void blender::geometry::debug::dump_edge_polygons ( const BevelState & state,
const BevVert & bv )
static

Dumps the edge-strip quads associated with bv that were created by #construct::bevel_build_edge_polygons.

For each beveled EdgeHalf of bv, uses leftv->index as the boundary row i in the VMesh, then for each segment k walks the ring to find successive boundary vertex pairs (i,0,k) and (i,0,k+1). It searches the new faces of emesh for a quad whose vertex list contains both those vertices in the opposite cyclic order (since bevel_build_edge_polygons builds the quad with bv2's verts first). Each matching quad is dumped as a list of corners with their vertex and edge indices.

Definition at line 1745 of file mesh_bevel.cc.

References blender::geometry::ExtendableMesh::corner_edge(), blender::geometry::ExtendableMesh::corner_vert(), dump_edge_polygons(), blender::geometry::EdgeHalf::e, blender::geometry::BevVert::edgecount, blender::geometry::BevVert::edges, blender::geometry::ExtendableMesh::face_corners(), blender::Mesh::faces_num, blender::geometry::BoundVert::index, blender::geometry::EdgeHalf::is_bev, blender::geometry::EdgeHalf::leftv, blender::geometry::ExtendableMesh::mesh, blender::geometry::geom::mesh_vert(), blender::geometry::ExtendableMesh::new_faces_num(), blender::geometry::VMesh::seg, state, blender::geometry::BevVert::v, and blender::geometry::BevVert::vmesh.

Referenced by dump_edge_polygons().

◆ dump_new_edge_examples()

void blender::geometry::debug::dump_new_edge_examples ( const BevelState & state)
static

Dumps the representative (example) edge index recorded for every newly created edge in emesh. New edges have indices [mesh.edges_num, mesh.edges_num + new_edges_num). Prints one line per new edge: " new_edge=<idx> example=<orig_edge_idx>".

Definition at line 1866 of file mesh_bevel.cc.

References dump_new_edge_examples(), blender::Mesh::edges_num, blender::geometry::ExtendableMesh::mesh, blender::geometry::ExtendableMesh::new_edge_examples(), blender::geometry::ExtendableMesh::new_edges(), blender::Span< T >::size(), and state.

Referenced by dump_new_edge_examples().

◆ dump_new_face_examples()

void blender::geometry::debug::dump_new_face_examples ( const BevelState & state)
static

Dumps the representative (example) face index recorded for every newly created face in emesh. New faces have indices [mesh.faces_num, mesh.faces_num + new_faces_num). Prints one line per new face: " new_face=<idx> example=<orig_face_idx>".

Definition at line 1834 of file mesh_bevel.cc.

References dump_new_face_examples(), blender::geometry::uv::UVMapInfo::face_component, blender::Mesh::faces_num, blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::geometry::ExtendableMesh::mesh, blender::geometry::ExtendableMesh::new_face_examples(), blender::geometry::ExtendableMesh::new_faces_num(), blender::Span< T >::size(), and state.

Referenced by dump_new_face_examples().

◆ dump_profile()

◆ dump_rebuilt_face()

void blender::geometry::debug::dump_rebuilt_face ( const BevelState & state,
const int face_idx )
static

Dumps the rebuilt face face_idx of emesh. Prints the face index and each corner's vertex index, edge index, and vertex coordinates.

Definition at line 1815 of file mesh_bevel.cc.

References blender::geometry::ExtendableMesh::corner_edge(), blender::geometry::ExtendableMesh::corner_vert(), dump_rebuilt_face(), blender::e, blender::geometry::ExtendableMesh::face_corners(), state, blender::v, and blender::geometry::ExtendableMesh::vert_position().

Referenced by dump_rebuilt_face().

◆ dump_vmesh()

◆ mesh_kind_name()

const char * blender::geometry::debug::mesh_kind_name ( MeshKind kind)
static

◆ print_float3()

void blender::geometry::debug::print_float3 ( const float3 & v)
static

Definition at line 1511 of file mesh_bevel.cc.

References print_float3(), and blender::v.

Referenced by dump_bound_vert(), dump_profile(), print_float3(), and print_float3_span().

◆ print_float3_span()

void blender::geometry::debug::print_float3_span ( Span< float3 > span,
const char * label )
static

◆ print_groupedspan()

void blender::geometry::debug::print_groupedspan ( const GroupedSpan< int > & groupedspan,
const char * label )
static

◆ print_indexrange()

void blender::geometry::debug::print_indexrange ( const IndexRange & range)
static

◆ print_int2()

void blender::geometry::debug::print_int2 ( const int2 pair)
static

Definition at line 1534 of file mesh_bevel.cc.

References print_int2().

Referenced by print_int2(), and print_int2_span().

◆ print_int2_span()

void blender::geometry::debug::print_int2_span ( Span< int2 > span,
const char * label )
static

◆ print_span()

template<typename T>
void blender::geometry::debug::print_span ( Span< T > span,
const char * label )
static