Blender V5.0
MeshFairingContext Class Reference

Inherits FairingContext.

Public Member Functions

 MeshFairingContext (Mesh *mesh, MutableSpan< float3 > deform_positions)
void adjacents_coords_from_loop (const int loop, float r_adj_next[3], float r_adj_prev[3]) override
int other_vertex_index_from_loop (const int loop, const int v) override
Public Member Functions inherited from FairingContext
int vertex_count_get ()
int loop_count_get ()
Span< int > vertex_loop_map_get (const int v)
floatvertex_deformation_co_get (const int v)
virtual ~FairingContext ()=default
void fair_verts (const bool affected_verts[], const eMeshFairingDepth depth, const VertexWeight &vertex_weight, const LoopWeight &loop_weight)

Protected Attributes

Meshmesh_
Span< int > corner_verts_
Span< int > corner_edges_
blender::OffsetIndices< int > faces
Span< blender::int2edges_
Span< int > loop_to_face_map_
Protected Attributes inherited from FairingContext
Vector< float * > co_
int totvert_
int totloop_
blender::GroupedSpan< int > vlmap_

Detailed Description

Definition at line 183 of file mesh_fair.cc.

Constructor & Destructor Documentation

◆ MeshFairingContext()

Member Function Documentation

◆ adjacents_coords_from_loop()

void MeshFairingContext::adjacents_coords_from_loop ( const int loop,
float r_adj_next[3],
float r_adj_prev[3] )
inlineoverridevirtual

◆ other_vertex_index_from_loop()

int MeshFairingContext::other_vertex_index_from_loop ( const int loop,
const int v )
inlineoverridevirtual

Implements FairingContext.

Definition at line 225 of file mesh_fair.cc.

References corner_edges_, blender::bke::mesh::edge_other_vert(), edges_, and v.

Member Data Documentation

◆ corner_edges_

Span<int> MeshFairingContext::corner_edges_
protected

Definition at line 234 of file mesh_fair.cc.

Referenced by MeshFairingContext(), and other_vertex_index_from_loop().

◆ corner_verts_

Span<int> MeshFairingContext::corner_verts_
protected

Definition at line 233 of file mesh_fair.cc.

Referenced by adjacents_coords_from_loop(), and MeshFairingContext().

◆ edges_

Span<blender::int2> MeshFairingContext::edges_
protected

Definition at line 236 of file mesh_fair.cc.

Referenced by MeshFairingContext(), and other_vertex_index_from_loop().

◆ faces

blender::OffsetIndices<int> MeshFairingContext::faces
protected

Definition at line 235 of file mesh_fair.cc.

Referenced by adjacents_coords_from_loop(), and MeshFairingContext().

◆ loop_to_face_map_

Span<int> MeshFairingContext::loop_to_face_map_
protected

Definition at line 237 of file mesh_fair.cc.

Referenced by adjacents_coords_from_loop(), and MeshFairingContext().

◆ mesh_

Mesh* MeshFairingContext::mesh_
protected

Definition at line 232 of file mesh_fair.cc.


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