Blender V4.3
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< intvertex_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< intcorner_verts_
 
Span< intcorner_edges_
 
blender::OffsetIndices< intfaces
 
Span< blender::int2edges_
 
Span< intloop_to_face_map_
 
- Protected Attributes inherited from FairingContext
Vector< float * > co_
 
int totvert_
 
int totloop_
 
blender::GroupedSpan< intvlmap_
 

Detailed Description

Definition at line 186 of file mesh_fair.cc.

Constructor & Destructor Documentation

◆ MeshFairingContext()

MeshFairingContext::MeshFairingContext ( Mesh * mesh,
MutableSpan< float3 > deform_positions )
inline

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

Implements FairingContext.

Definition at line 216 of file mesh_fair.cc.

References FairingContext::co_, copy_v3_v3(), corner_verts_, and loop_to_face_map_.

◆ other_vertex_index_from_loop()

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

Implements FairingContext.

Definition at line 228 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 237 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 236 of file mesh_fair.cc.

Referenced by adjacents_coords_from_loop(), and MeshFairingContext().

◆ edges_

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

Definition at line 239 of file mesh_fair.cc.

Referenced by MeshFairingContext(), and other_vertex_index_from_loop().

◆ faces

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

Definition at line 238 of file mesh_fair.cc.

◆ loop_to_face_map_

Span<int> MeshFairingContext::loop_to_face_map_
protected

Definition at line 240 of file mesh_fair.cc.

Referenced by adjacents_coords_from_loop(), and MeshFairingContext().

◆ mesh_

Mesh* MeshFairingContext::mesh_
protected

Definition at line 235 of file mesh_fair.cc.


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