|
Blender V5.3
|
Classes | |
| struct | ConverterStorage |
| struct | Displacement |
| struct | ForeachContext |
| struct | ForeachTaskContext |
| struct | LoopsForInterpolation |
| struct | LoopsOfPtex |
| struct | MultiresDisplacementData |
| struct | PolyCornerIndex |
| struct | Settings |
| struct | Subdiv |
| struct | SubdivDeformContext |
| struct | SubdivMeshContext |
| struct | SubdivMeshTLS |
| struct | SubdivStats |
| struct | ToMeshSettings |
| struct | VerticesForInterpolation |
Typedefs | |
| using | ForeachTopologyInformationCb |
| using | ForeachVertFromCornerCb |
| using | ForeachVertFromEdgeCb |
| using | ForeachVertInnerCb |
| using | ForeachEdgeCb |
| using | ForeachLoopCb |
| using | FacesCb |
| using | ForeachLooseCb |
| using | ForeachVertOfLooseEdgeCb |
Functions | |
| bool | eval_begin (Subdiv *subdiv, eSubdivEvaluatorType evaluator_type, OpenSubdiv_EvaluatorCache *evaluator_cache, const OpenSubdiv_EvaluatorSettings *settings) |
| bool | eval_begin_from_mesh (Subdiv *subdiv, const Mesh *mesh, eSubdivEvaluatorType evaluator_type, Span< float3 > coarse_vert_positions={}, OpenSubdiv_EvaluatorCache *evaluator_cache=nullptr) |
| bool | eval_refine_from_mesh (Subdiv *subdiv, const Mesh *mesh, Span< float3 > coarse_vert_positions) |
| void | eval_init_displacement (Subdiv *subdiv) |
| float3 | eval_limit_point (Subdiv *subdiv, int ptex_face_index, float u, float v) |
| void | eval_limit_point_and_derivatives (Subdiv *subdiv, int ptex_face_index, float u, float v, float3 &r_P, float3 &r_dPdu, float3 &r_dPdv) |
| void | eval_limit_point_and_normal (Subdiv *subdiv, int ptex_face_index, float u, float v, float3 &r_P, float3 &r_N) |
| void | eval_vert_data (Subdiv *subdiv, int ptex_face_index, float u, float v, float r_vert_data[]) |
| void | eval_face_varying (Subdiv *subdiv, int face_varying_channel, int ptex_face_index, float u, float v, float2 &r_face_varying) |
| void | eval_displacement (Subdiv *subdiv, int ptex_face_index, float u, float v, const float3 &dPdu, const float3 &dPdv, float3 &r_D) |
| float3 | eval_final_point (Subdiv *subdiv, int ptex_face_index, float u, float v) |
| int | topology_num_fvar_layers_get (const Subdiv *subdiv) |
| void | converter_free (OpenSubdiv_Converter *converter) |
| int | converter_vtx_boundary_interpolation_from_settings (const Settings *settings) |
| int | converter_fvar_linear_from_settings (const Settings *settings) |
| void | converter_init_for_mesh (OpenSubdiv_Converter *converter, const Settings *settings, const Mesh *mesh) |
| static OpenSubdiv_SchemeType | get_scheme_type (const Settings &settings) |
| static bool | specifies_full_topology (const OpenSubdiv_Converter *) |
| static int | original_to_manifold (const Array< int > &forward_map, const int original_index) |
| static int | manifold_to_original (const Array< int > &reverse_map, const int manifold_index) |
| static int | get_num_uv_layers (const OpenSubdiv_Converter *converter) |
| static void | precalc_uv_layer (const OpenSubdiv_Converter *converter, const int layer_index) |
| static void | finish_uv_layer (const OpenSubdiv_Converter *) |
| static int | get_num_uvs (const OpenSubdiv_Converter *converter) |
| static int | get_face_corner_uv_index (const OpenSubdiv_Converter *converter, const int face_index, const int corner) |
| static void | free_user_data (const OpenSubdiv_Converter *converter) |
| static void | init_functions (OpenSubdiv_Converter *converter) |
| static bool | unused_is_trailing_range (const IndexMask &unused_mask, const int num_elements) |
| static int | initialize_manifold_index_map (const IndexMask &unused_mask, const int num_elements, Array< int > *r_index_forward, Array< int > *r_index_reverse) |
| static void | initialize_manifold_edges (ConverterStorage &storage) |
| static void | initialize_manifold_indices (ConverterStorage &storage) |
| static void | gather_manifold_sharpness (const Span< float > creases, const Span< int > manifold_to_orig, const MutableSpan< float > sharpness) |
| static void | initialize_edge_sharpness (ConverterStorage &storage) |
| static void | initialize_vert_sharpness (ConverterStorage &storage) |
| static void | init_user_data (OpenSubdiv_Converter *converter, const Settings *settings, const Mesh *mesh) |
| static int | displacement_get_grid_and_coord (const Displacement &displacement, const int ptex_face_index, const float u, const float v, const MDisps **r_displacement_grid, float &r_grid_u, float &r_grid_v) |
| static const MDisps * | displacement_get_other_grid (const Displacement &displacement, const int ptex_face_index, const int corner, const int corner_delta) |
| BLI_INLINE AverageWith | read_displacement_grid (const MDisps &displacement_grid, const int grid_size, const float grid_u, const float grid_v, float3 &r_tangent_D) |
| static void | average_convert_grid_coord_to_ptex (const int num_corners, const int corner, const float grid_u, const float grid_v, float &r_ptex_face_u, float &r_ptex_face_v) |
| static void | average_construct_tangent_matrix (Subdiv &subdiv, const int num_corners, const int ptex_face_index, const int corner, const float u, const float v, float3x3 &r_tangent_matrix) |
| static void | average_read_displacement_tangent (const MultiresDisplacementData &data, const MDisps &other_displacement_grid, const float grid_u, const float grid_v, float3 &r_tangent_D) |
| static void | average_read_displacement_object (const MultiresDisplacementData &data, const MDisps &displacement_grid, const float grid_u, const float grid_v, const int ptex_face_index, const int corner_index, float3 &r_D) |
| static void | average_get_other_ptex_and_corner (const MultiresDisplacementData &data, const int ptex_face_index, const int corner, const int corner_delta, int &r_other_ptex_face_index, int &r_other_corner_index) |
| static void | average_with_other (const Displacement &displacement, const int ptex_face_index, const int corner, const float grid_u, const float grid_v, const int corner_delta, float3 &r_D) |
| static void | average_with_all (const Displacement &displacement, const int ptex_face_index, const int corner, const float, const float, float3 &r_D) |
| static void | average_with_next (const Displacement &displacement, const int ptex_face_index, const int corner, const float grid_u, const float, float3 &r_D) |
| static void | average_with_prev (const Displacement &displacement, const int ptex_face_index, const int corner, const float, const float grid_v, float3 &r_D) |
| static void | average_displacement (const Displacement &displacement, const AverageWith average_with, const int ptex_face_index, const int corner, const float grid_u, const float grid_v, float3 &r_D) |
| static int | displacement_get_face_corner (const MultiresDisplacementData &data, const int ptex_face_index, const float u, const float v) |
| static void | initialize (Displacement *displacement) |
| static void | eval_displacement (Displacement *displacement, const int ptex_face_index, const float u, const float v, const float3 &dPdu, const float3 &dPdv, float3 &r_D) |
| static void | free_displacement (Displacement *displacement) |
| static int | count_num_ptex_faces (const Mesh &mesh) |
| static void | displacement_data_init_mapping (Displacement &displacement, const Mesh &mesh) |
| static void | displacement_init_data (Displacement &displacement, Subdiv &subdiv, const Mesh &mesh, const MultiresModifierData &mmd) |
| static void | displacement_init_functions (Displacement *displacement) |
Module | |
| void | init () |
| void | exit () |
Conversion helpers. | |
| FVarLinearInterpolation | fvar_interpolation_from_uv_smooth (int uv_smooth) |
| VtxBoundaryInterpolation | vtx_boundary_interpolation_from_subsurf (int boundary_smooth) |
Statistics | |
| void | stats_init (SubdivStats *stats) |
| void | stats_begin (SubdivStats *stats, StatsValue value) |
| void | stats_end (SubdivStats *stats, StatsValue value) |
| void | stats_reset (SubdivStats *stats, StatsValue value) |
| void | stats_print (const SubdivStats *stats) |
Settings | |
| bool | settings_equal (const Settings *settings_a, const Settings *settings_b) |
Construction | |
| Subdiv * | new_from_converter (const Settings *settings, OpenSubdiv_Converter *converter) |
| Subdiv * | new_from_mesh (const Settings *settings, const Mesh *mesh) |
| Subdiv * | update_from_converter (Subdiv *subdiv, const Settings *settings, OpenSubdiv_Converter *converter) |
| Subdiv * | update_from_mesh (Subdiv *subdiv, const Settings *settings, const Mesh *mesh) |
| void | free (Subdiv *subdiv) |
Displacement API | |
| void | displacement_attach_from_multires (Subdiv *subdiv, const Mesh *mesh, const MultiresModifierData *mmd) |
| void | displacement_detach (Subdiv *subdiv) |
Topology helpers | |
| Span< int > | face_ptex_offset_get (Subdiv *subdiv) |
PTex faces and grids | |
| BLI_INLINE void | ptex_face_uv_to_grid_uv (float ptex_u, float ptex_v, float *r_grid_u, float *r_grid_v) |
| BLI_INLINE float2 | ptex_face_uv_to_grid_uv (const float2 &ptex_uv) |
| BLI_INLINE void | grid_uv_to_ptex_face_uv (float grid_u, float grid_v, float *r_ptex_u, float *r_ptex_v) |
| BLI_INLINE int | grid_size_from_level (int level) |
| BLI_INLINE int | rotate_quad_to_corner (float quad_u, float quad_v, float *r_corner_u, float *r_corner_v) |
| BLI_INLINE float2 | rotate_quad_to_corner (int corner, const float2 &quad) |
| BLI_INLINE void | rotate_grid_to_quad (int corner, float grid_u, float grid_v, float *r_quad_u, float *r_quad_v) |
| BLI_INLINE float | crease_to_sharpness (float crease) |
| BLI_INLINE float | sharpness_to_crease (float sharpness) |
| BLI_INLINE float4 | quad_weights_from_uv (float u, float v) |
| template<typename T> | |
| std::array< T, 4 > | interpolate_vert_data_for_subdivided_irregular_face (Span< int > corner_verts, IndexRange face, int corner, Span< T > src) |
| template<typename T> | |
| std::array< T, 4 > | interpolate_corner_data_for_subdivided_irregular_face (IndexRange face, int corner, Span< T > src) |
Public entry point | |
| void | deform_coarse_vertices (Subdiv *subdiv, const Mesh *coarse_mesh, MutableSpan< float3 > vert_positions) |
| Mesh * | subdiv_to_mesh (Subdiv *subdiv, const ToMeshSettings *settings, const Mesh *coarse_mesh) |
Subdivision process entry points | |
| bool | foreach_subdiv_geometry (Subdiv *subdiv, const ForeachContext *context, const ToMeshSettings *mesh_settings, const Mesh *coarse_mesh) |
| static void | subdiv_foreach_single_geometry_vertices (ForeachTaskContext *ctx, void *tls) |
| static void | subdiv_foreach_mark_non_loose_geometry (ForeachTaskContext *ctx) |
| static void | subdiv_foreach_single_thread_tasks (ForeachTaskContext *ctx) |
| static void | subdiv_foreach_task (void *__restrict userdata, const int face_index, const TaskParallelTLS *__restrict tls) |
| static void | subdiv_foreach_boundary_edges_task (void *__restrict userdata, const int edge_index, const TaskParallelTLS *__restrict tls) |
| static void | subdiv_foreach_free (const void *__restrict userdata, void *__restrict userdata_chunk) |
Loose elements subdivision process | |
| float3 | mesh_interpolate_position_on_edge (Span< float3 > coarse_positions, Span< int2 > coarse_edges, GroupedSpan< int > vert_to_edge_map, int coarse_edge_index, bool is_simple, float u) |
| static void | subdiv_mesh_vert_loose (const ForeachContext *foreach_context, void *, const int coarse_vert_index, const int subdiv_vert_index) |
| static std::array< std::optional< int2 >, 2 > | find_edge_neighbors (const Span< int2 > coarse_edges, const GroupedSpan< int > vert_to_edge_map, const int edge_index) |
| static std::array< float3, 4 > | find_loose_edge_interpolation_positions (const Span< float3 > coarse_positions, const int2 &coarse_edge, const std::array< std::optional< int2 >, 2 > &neighbors) |
| static void | subdiv_mesh_vert_of_loose_edge_interpolate (SubdivMeshContext *ctx, const int2 &coarse_edge, const float u, const int subdiv_vert_index) |
| static void | subdiv_mesh_vert_of_loose_edge (const ForeachContext *foreach_context, void *, const int coarse_edge_index, const float u, const int subdiv_vert_index) |
Limit surface | |
| void | calculate_limit_positions (Mesh *mesh, MutableSpan< float3 > limit_positions) |
Subdivision context | |
| static void | subdiv_mesh_prepare_accumulator (SubdivDeformContext *ctx, int num_vertices) |
| static void | subdiv_mesh_context_free (SubdivDeformContext *ctx) |
| static void | subdiv_mesh_ctx_cache_uv_layers (SubdivMeshContext *ctx) |
| static void | subdiv_mesh_ctx_cache_custom_data_layers (SubdivMeshContext *ctx) |
| static void | subdiv_mesh_prepare_accumulator (SubdivMeshContext *ctx, int num_vertices) |
| static void | subdiv_mesh_context_free (SubdivMeshContext *ctx) |
Accumulation helpers | |
| static void | subdiv_accumulate_vert_displacement (SubdivDeformContext *ctx, const int ptex_face_index, const float u, const float v, int vert_index) |
| static void | subdiv_accumulate_vert_displacement (SubdivMeshContext *ctx, const int ptex_face_index, const float u, const float v, const int subdiv_vert_index) |
Subdivision callbacks | |
| static bool | subdiv_mesh_topology_info (const ForeachContext *foreach_context, const int, const int, const int, const int, const Span< int >) |
| static void | subdiv_mesh_vert_every_corner (const ForeachContext *foreach_context, void *, const int ptex_face_index, const float u, const float v, const int coarse_vert_index, const int, const int, const int) |
| static void | subdiv_mesh_vert_corner (const ForeachContext *foreach_context, void *, const int ptex_face_index, const float u, const float v, const int coarse_vert_index, const int, const int, const int) |
Initialization | |
| static void | setup_foreach_callbacks (const SubdivDeformContext *subdiv_context, ForeachContext *foreach_context) |
| static void | subdiv_foreach_ctx_count (ForeachTaskContext *ctx) |
| static void | subdiv_foreach_ctx_init_offsets (ForeachTaskContext *ctx) |
| static void | subdiv_foreach_ctx_init (Subdiv *subdiv, ForeachTaskContext *ctx) |
| static void | subdiv_foreach_ctx_free (ForeachTaskContext *ctx) |
| static void | setup_foreach_callbacks (const SubdivMeshContext *subdiv_context, ForeachContext *foreach_context) |
General helpers | |
| BLI_INLINE int | num_ptex_faces_per_face_get (const IndexRange face) |
| BLI_INLINE int | num_edges_per_ptex_face_get (const int resolution) |
| BLI_INLINE int | num_inner_edges_per_ptex_face_get (const int resolution) |
| BLI_INLINE int | num_faces_per_ptex_get (const int resolution) |
| BLI_INLINE int | ptex_face_resolution_get (const IndexRange face, int resolution) |
Threading helpers | |
| static void * | subdiv_foreach_tls_alloc (ForeachTaskContext *ctx) |
| static void | subdiv_foreach_tls_free (ForeachTaskContext *ctx, void *tls) |
Vertex traversal process | |
| static void | subdiv_foreach_corner_vertices_regular_do (ForeachTaskContext *ctx, void *tls, const int coarse_face_index, ForeachVertFromCornerCb vert_corner, bool check_usage) |
| static void | subdiv_foreach_corner_vertices_regular (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_corner_vertices_special_do (ForeachTaskContext *ctx, void *tls, const int coarse_face_index, ForeachVertFromCornerCb vert_corner, bool check_usage) |
| static void | subdiv_foreach_corner_vertices_special (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_corner_vertices (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_every_corner_vertices_regular (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_every_corner_vertices_special (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_every_corner_vertices (ForeachTaskContext *ctx, void *tls) |
| static void | subdiv_foreach_edge_vertices_regular_do (ForeachTaskContext *ctx, void *tls, const int coarse_face_index, ForeachVertFromEdgeCb vert_edge, bool check_usage) |
| static void | subdiv_foreach_edge_vertices_regular (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_edge_vertices_special_do (ForeachTaskContext *ctx, void *tls, const int coarse_face_index, ForeachVertFromEdgeCb vert_edge, bool check_usage) |
| static void | subdiv_foreach_edge_vertices_special (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_edge_vertices (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_every_edge_vertices_regular (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_every_edge_vertices_special (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_every_edge_vertices (ForeachTaskContext *ctx, void *tls) |
| static void | subdiv_foreach_inner_vertices_regular (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_inner_vertices_special (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_inner_vertices (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_vertices (ForeachTaskContext *ctx, void *tls, const int face_index) |
Edge traversal process | |
| static int | subdiv_foreach_edges_row (ForeachTaskContext *ctx, void *tls, const int coarse_edge_index, const int start_subdiv_edge_index, const int start_vert_index, const int num_edges_per_row) |
| static int | subdiv_foreach_edges_column (ForeachTaskContext *ctx, void *tls, const int coarse_start_edge_index, const int coarse_end_edge_index, const int start_subdiv_edge_index, const int start_vert_index, const int num_edges_per_row) |
| static void | subdiv_foreach_edges_all_patches_regular (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_edges_all_patches_special (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_edges_all_patches (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_edges (ForeachTaskContext *ctx, void *tls, int face_index) |
| static void | subdiv_foreach_boundary_edges (ForeachTaskContext *ctx, void *tls, int coarse_edge_index) |
Loops traversal | |
| static void | rotate_indices (const int rot, int *a, int *b, int *c, int *d) |
| static void | subdiv_foreach_loops_of_face (ForeachTaskContext *ctx, void *tls, int subdiv_loop_start_index, const int ptex_face_index, const int coarse_face_index, const int coarse_corner_index, const int rotation, int v0, int e0, int v1, int e1, int v2, int e2, int v3, int e3, const float u, const float v, const float du, const float dv) |
| static int | subdiv_foreach_loops_corner_index (const float u, const float v, const float du, const float dv) |
| static void | subdiv_foreach_loops_regular (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_loops_special (ForeachTaskContext *ctx, void *tls, const int coarse_face_index) |
| static void | subdiv_foreach_loops (ForeachTaskContext *ctx, void *tls, int face_index) |
Loose elements traverse process | |
| static void | subdiv_foreach_loose_vertices_task (void *__restrict userdata, const int coarse_vert_index, const TaskParallelTLS *__restrict tls) |
| static void | subdiv_foreach_vertices_of_loose_edges_task (void *__restrict userdata, const int coarse_edge_index, const TaskParallelTLS *__restrict tls) |
Loop custom data copy helpers | |
| static void | loops_of_ptex_get (LoopsOfPtex *loops_of_ptex, const IndexRange coarse_face, const int ptex_of_face_index) |
Vertex custom data interpolation helpers | |
| static float3 | mix_normals (const Span< float3 > src, const Span< int > src_indices, const Span< float > weights) |
| static float3 | mix_normals (const Span< float3 > src, const std::array< int, 4 > &src_indices, const float4 &weights) |
| static float3 | mix_normals (const Span< float3 > src, const std::array< int, 2 > &src_indices, const float factor) |
| static void | mix_attrs (const Span< GSpan > src, const std::array< int, 2 > &src_indices, const float factor, const int dst_index, const Span< GMutableSpan > dst) |
| static void | mix_attrs (const Span< GSpan > src, const std::array< int, 4 > &src_indices, const float4 &weights, const int dst_index, const Span< GMutableSpan > dst) |
| static void | mix_attrs (const Span< GSpan > src, const Span< int > src_indices, const Span< float > weights, const int dst_index, const Span< GMutableSpan > dst) |
| static void | copy_attrs (const Span< GSpan > src, const int src_index, const int dst_index, const Span< GMutableSpan > dst) |
| static void | vert_interpolation_from_face (const SubdivMeshContext *ctx, VerticesForInterpolation *vert_interpolation, const IndexRange coarse_face) |
| static void | vert_interpolation_from_corner (const SubdivMeshContext *ctx, VerticesForInterpolation *vert_interpolation, const IndexRange coarse_face, const int corner) |
Loop custom data interpolation helpers | |
| static void | loop_interpolation_from_face (const SubdivMeshContext *ctx, LoopsForInterpolation *loop_interpolation, const IndexRange coarse_face) |
| static void | loop_interpolation_from_corner (const SubdivMeshContext *ctx, LoopsForInterpolation *loop_interpolation, const IndexRange coarse_face, const int corner) |
TLS | |
| static void | subdiv_mesh_tls_free (void *tls_v) |
Evaluation helper functions | |
| static void | subdiv_vert_orco_evaluate (const SubdivMeshContext *ctx, const int ptex_face_index, const float u, const float v, const int subdiv_vert_index) |
Callbacks | |
| static void | create_attrs_and_retrieve_interp_spans (const AttributeAccessor src_attrs, const bke::AttrDomain domain, const Set< StringRef > &skip_names, MutableAttributeAccessor dst_attrs, Vector< GVArraySpan > &coarse_varray_spans, Vector< GSpan > &coarse_spans, Vector< GSpanAttributeWriter > &dst_writers, Vector< GMutableSpan > &dst_spans) |
| static bool | subdiv_mesh_topology_info (const ForeachContext *foreach_context, const int num_vertices, const int num_edges, const int num_loops, const int num_faces, const Span< int >) |
Vertex subdivision process | |
| static void | subdiv_vert_data_copy (const SubdivMeshContext *ctx, const int coarse_vert_index, const int subdiv_vert_index) |
| static void | subdiv_vert_data_interpolate (const SubdivMeshContext *ctx, const int subdiv_vert_index, VerticesForInterpolation *vert_interpolation, const float u, const float v) |
| static void | evaluate_vert_and_apply_displacement_copy (const SubdivMeshContext *ctx, const int ptex_face_index, const float u, const float v, const int coarse_vert_index, const int subdiv_vert_index) |
| static void | evaluate_vert_and_apply_displacement_interpolate (const SubdivMeshContext *ctx, const int ptex_face_index, const float u, const float v, VerticesForInterpolation *vert_interpolation, const int subdiv_vert_index) |
| static void | subdiv_mesh_vert_displacement_every_corner_or_edge (const ForeachContext *foreach_context, void *, const int ptex_face_index, const float u, const float v, const int subdiv_vert_index) |
| static void | subdiv_mesh_vert_displacement_every_corner (const ForeachContext *foreach_context, void *tls, const int ptex_face_index, const float u, const float v, const int, const int, const int, const int subdiv_vert_index) |
| static void | subdiv_mesh_vert_displacement_every_edge (const ForeachContext *foreach_context, void *tls, const int ptex_face_index, const float u, const float v, const int, const int, const int, const int subdiv_vert_index) |
| static void | subdiv_mesh_vert_corner (const ForeachContext *foreach_context, void *, const int ptex_face_index, const float u, const float v, const int coarse_vert_index, const int, const int, const int subdiv_vert_index) |
| static void | subdiv_mesh_ensure_vert_interpolation (SubdivMeshContext *ctx, SubdivMeshTLS *tls, const int coarse_face_index, const int coarse_corner) |
| static void | subdiv_mesh_vert_edge (const ForeachContext *foreach_context, void *tls_v, const int ptex_face_index, const float u, const float v, const int, const int coarse_face_index, const int coarse_corner, const int subdiv_vert_index) |
| static bool | subdiv_mesh_is_center_vert (const IndexRange coarse_face, const float u, const float v) |
| static void | subdiv_mesh_tag_center_vert (const IndexRange coarse_face, const int subdiv_vert_index, const float u, const float v, SubdivMeshContext *ctx) |
| static void | subdiv_mesh_vert_inner (const ForeachContext *foreach_context, void *tls_v, const int ptex_face_index, const float u, const float v, const int coarse_face_index, const int coarse_corner, const int subdiv_vert_index) |
Edge subdivision process | |
| static void | subdiv_copy_edge_data (SubdivMeshContext *ctx, const int subdiv_edge_index, const int coarse_edge_index) |
| static void | subdiv_mesh_edge (const ForeachContext *foreach_context, void *, const int coarse_edge_index, const int subdiv_edge_index, const bool, const int subdiv_v1, const int subdiv_v2) |
Loops creation/interpolation | |
| static void | subdiv_interpolate_corner_data (const SubdivMeshContext *ctx, const int subdiv_loop_index, const LoopsForInterpolation *loop_interpolation, const float u, const float v) |
| static void | subdiv_eval_uv_layer (SubdivMeshContext *ctx, const int corner_index, const int ptex_face_index, const float u, const float v) |
| static void | subdiv_mesh_ensure_loop_interpolation (SubdivMeshContext *ctx, SubdivMeshTLS *tls, const int coarse_face_index, const int coarse_corner) |
| static void | subdiv_mesh_loop (const ForeachContext *foreach_context, void *tls_v, const int ptex_face_index, const float u, const float v, const int, const int coarse_face_index, const int coarse_corner, const int subdiv_loop_index, const int subdiv_vert_index, const int subdiv_edge_index) |
Polygons subdivision process | |
| static void | subdiv_mesh_face (const ForeachContext *foreach_context, OffsetIndices< int > subdiv_faces_by_base_face) |
| subdiv_faces_by_base_face | Groups the subdivided faces by the base mesh face they came from (all the subdivided faces for a single base mesh face are contiguous). For more information, see OffsetIndices. |
Definition at line 86 of file BKE_subdiv_foreach.hh.
Definition at line 61 of file BKE_subdiv_foreach.hh.
Definition at line 69 of file BKE_subdiv_foreach.hh.
Definition at line 89 of file BKE_subdiv_foreach.hh.
Definition at line 25 of file BKE_subdiv_foreach.hh.
Definition at line 32 of file BKE_subdiv_foreach.hh.
Definition at line 42 of file BKE_subdiv_foreach.hh.
Definition at line 52 of file BKE_subdiv_foreach.hh.
Definition at line 94 of file BKE_subdiv_foreach.hh.
|
strong |
| Enumerator | |
|---|---|
| None | |
| All | |
| Prev | |
| Next | |
Definition at line 59 of file subdiv_displacement_multires.cc.
| Enumerator | |
|---|---|
| SUBDIV_EVALUATOR_TYPE_CPU | |
| SUBDIV_EVALUATOR_TYPE_GPU | |
Definition at line 22 of file BKE_subdiv_eval.hh.
Definition at line 40 of file BKE_subdiv.hh.
Definition at line 90 of file BKE_subdiv.hh.
| Enumerator | |
|---|---|
| SUBDIV_VTX_BOUNDARY_NONE | Do not interpolate boundaries. |
| SUBDIV_VTX_BOUNDARY_EDGE_ONLY | Sharpen edges. |
| SUBDIV_VTX_BOUNDARY_EDGE_AND_CORNER | Sharpen edges and corners. |
Definition at line 31 of file BKE_subdiv.hh.
|
static |
Definition at line 147 of file subdiv_displacement_multires.cc.
References average_construct_tangent_matrix(), blender::BKE_multires_construct_tangent_matrix(), eval_limit_point_and_derivatives(), and blender::v.
Referenced by average_construct_tangent_matrix(), and average_read_displacement_object().
|
static |
Definition at line 132 of file subdiv_displacement_multires.cc.
References average_convert_grid_coord_to_ptex(), grid_uv_to_ptex_face_uv(), and rotate_grid_to_quad().
Referenced by average_convert_grid_coord_to_ptex(), and average_read_displacement_object().
|
static |
Definition at line 282 of file subdiv_displacement_multires.cc.
References All, average_displacement(), average_with_all(), average_with_next(), average_with_prev(), Next, None, and Prev.
Referenced by average_displacement(), and eval_displacement().
|
static |
Definition at line 199 of file subdiv_displacement_multires.cc.
References average_get_other_ptex_and_corner(), blender::data, and blender::bke::subdiv::PolyCornerIndex::face_index.
Referenced by average_get_other_ptex_and_corner(), and average_with_other().
|
static |
Definition at line 173 of file subdiv_displacement_multires.cc.
References average_construct_tangent_matrix(), average_convert_grid_coord_to_ptex(), average_read_displacement_object(), average_read_displacement_tangent(), blender::data, blender::bke::subdiv::PolyCornerIndex::face_index, blender::math::transform_direction(), and blender::v.
Referenced by average_read_displacement_object(), and average_with_other().
|
static |
Definition at line 164 of file subdiv_displacement_multires.cc.
References average_read_displacement_tangent(), blender::data, and read_displacement_grid().
Referenced by average_read_displacement_object(), and average_read_displacement_tangent().
|
static |
Definition at line 246 of file subdiv_displacement_multires.cc.
References average_with_all(), average_with_other(), blender::data, blender::bke::subdiv::PolyCornerIndex::face_index, and blender::bke::subdiv::Displacement::user_data.
Referenced by average_displacement(), and average_with_all().
|
static |
Definition at line 262 of file subdiv_displacement_multires.cc.
References average_with_next(), and average_with_other().
Referenced by average_displacement(), and average_with_next().
|
static |
Definition at line 217 of file subdiv_displacement_multires.cc.
References average_get_other_ptex_and_corner(), average_read_displacement_object(), average_with_other(), blender::data, displacement_get_other_grid(), and blender::bke::subdiv::Displacement::user_data.
Referenced by average_with_all(), average_with_next(), average_with_other(), and average_with_prev().
|
static |
Definition at line 272 of file subdiv_displacement_multires.cc.
References average_with_other(), and average_with_prev().
Referenced by average_displacement(), and average_with_prev().
| void blender::bke::subdiv::calculate_limit_positions | ( | Mesh * | mesh, |
| MutableSpan< float3 > | limit_positions ) |
Calculate positions position of the given mesh vertices at the limit surface of the mesh.
The limit_positions is to be sized at exactly the number of the base mesh vertices.
Definition at line 1567 of file subdiv_mesh.cc.
References blender::BLI_assert(), calculate_limit_positions(), blender::MutableSpan< T >::copy_from(), deform_coarse_vertices(), free(), blender::bke::subdiv::Settings::fvar_linear_interpolation, blender::bke::subdiv::Settings::is_adaptive, blender::bke::subdiv::Settings::is_simple, blender::bke::subdiv::Settings::level, blender::MutableSpan< T >::size(), SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_AND_JUNCTIONS, SUBDIV_VTX_BOUNDARY_EDGE_ONLY, update_from_mesh(), blender::bke::subdiv::Settings::use_creases, and blender::bke::subdiv::Settings::vtx_boundary_interpolation.
Referenced by blender::add_verts_to_dgroups(), and calculate_limit_positions().
| void blender::bke::subdiv::converter_free | ( | OpenSubdiv_Converter * | converter | ) |
Definition at line 15 of file subdiv_converter.cc.
References converter_free(), and OpenSubdiv_Converter::freeUserData.
Referenced by converter_free(), new_from_mesh(), and update_from_mesh().
| int blender::bke::subdiv::converter_fvar_linear_from_settings | ( | const Settings * | settings | ) |
Definition at line 36 of file subdiv_converter.cc.
References BLI_assert_msg, converter_fvar_linear_from_settings(), blender::bke::subdiv::Settings::fvar_linear_interpolation, OSD_FVAR_LINEAR_INTERPOLATION_ALL, OSD_FVAR_LINEAR_INTERPOLATION_BOUNDARIES, OSD_FVAR_LINEAR_INTERPOLATION_CORNERS_ONLY, OSD_FVAR_LINEAR_INTERPOLATION_CORNERS_PLUS1, OSD_FVAR_LINEAR_INTERPOLATION_CORNERS_PLUS2, OSD_FVAR_LINEAR_INTERPOLATION_NONE, SUBDIV_FVAR_LINEAR_INTERPOLATION_ALL, SUBDIV_FVAR_LINEAR_INTERPOLATION_BOUNDARIES, SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_AND_JUNCTIONS, SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_JUNCTIONS_AND_CONCAVE, SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_ONLY, and SUBDIV_FVAR_LINEAR_INTERPOLATION_NONE.
Referenced by converter_fvar_linear_from_settings(), and converter_init_for_mesh().
| void blender::bke::subdiv::converter_init_for_mesh | ( | OpenSubdiv_Converter * | converter, |
| const Settings * | settings, | ||
| const Mesh * | mesh ) |
Definition at line 405 of file subdiv_converter_mesh.cc.
References converter_fvar_linear_from_settings(), converter_init_for_mesh(), converter_vtx_boundary_interpolation_from_settings(), OpenSubdiv_Converter::corner_verts, OpenSubdiv_Converter::edge_sharpness, OpenSubdiv_Converter::edges, OpenSubdiv_Converter::face_offsets, OpenSubdiv_Converter::fvar_linear_interpolation, get_scheme_type(), init_functions(), init_user_data(), OpenSubdiv_Converter::scheme_type, storage, OpenSubdiv_Converter::user_data, OpenSubdiv_Converter::vert_sharpness, OpenSubdiv_Converter::verts_num, and OpenSubdiv_Converter::vtx_boundary_interpolation.
Referenced by converter_init_for_mesh(), new_from_mesh(), and update_from_mesh().
| int blender::bke::subdiv::converter_vtx_boundary_interpolation_from_settings | ( | const Settings * | settings | ) |
Definition at line 22 of file subdiv_converter.cc.
References BLI_assert_msg, converter_vtx_boundary_interpolation_from_settings(), OSD_VTX_BOUNDARY_EDGE_AND_CORNER, OSD_VTX_BOUNDARY_EDGE_ONLY, OSD_VTX_BOUNDARY_NONE, SUBDIV_VTX_BOUNDARY_EDGE_AND_CORNER, SUBDIV_VTX_BOUNDARY_EDGE_ONLY, SUBDIV_VTX_BOUNDARY_NONE, and blender::bke::subdiv::Settings::vtx_boundary_interpolation.
Referenced by converter_init_for_mesh(), and converter_vtx_boundary_interpolation_from_settings().
|
static |
Definition at line 374 of file subdiv_mesh.cc.
References copy_attrs(), blender::CPPType::copy_construct(), and blender::Span< T >::index_range().
Referenced by copy_attrs(), loop_interpolation_from_corner(), subdiv_copy_edge_data(), subdiv_vert_data_copy(), and vert_interpolation_from_corner().
|
static |
Definition at line 370 of file subdiv_displacement_multires.cc.
References count_num_ptex_faces(), and blender::offset_indices::OffsetIndices< T >::size().
Referenced by count_num_ptex_faces(), and displacement_data_init_mapping().
| BLI_INLINE float blender::bke::subdiv::crease_to_sharpness | ( | float | crease | ) |
Convert Blender edge crease value to OpenSubdiv sharpness.
Definition at line 116 of file subdiv_inline.hh.
References BLI_INLINE, and crease_to_sharpness().
Referenced by crease_to_sharpness(), blender::io::alembic::get_edge_creases(), blender::io::usd::get_edge_creases(), blender::io::alembic::get_vert_creases(), and blender::io::usd::get_vert_creases().
|
static |
Definition at line 771 of file subdiv_mesh.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::GVArrayCommon::common_info(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), create_attrs_and_retrieve_interp_spans(), blender::CommonVArrayInfo::data, blender::bke::AttributeIter::data_type, blender::bke::AttributeIter::domain, blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::AttributeIter::get(), blender::Vector< T, InlineBufferCapacity, Allocator >::last(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::AttributeIter::name, blender::CommonVArrayInfo::Single, blender::bke::String, blender::CommonVArrayInfo::type, and blender::GVArrayCommon::type().
Referenced by create_attrs_and_retrieve_interp_spans(), and subdiv_mesh_topology_info().
| void blender::bke::subdiv::deform_coarse_vertices | ( | Subdiv * | subdiv, |
| const Mesh * | coarse_mesh, | ||
| MutableSpan< float3 > | vert_positions ) |
Special version of subdivision surface which calculates final positions for coarse vertices. Effectively is pushing the coarse positions to the limit surface.
One of the usage examples is calculation of crazy space of subdivision modifier, allowing to paint on a deformed mesh with sub-surf on it.
vertex_cos are supposed to hold coordinates of the coarse mesh.
Definition at line 182 of file subdiv_deform.cc.
References blender::bke::subdiv::SubdivDeformContext::coarse_mesh, deform_coarse_vertices(), eval_begin_from_mesh(), blender::Mesh::faces_num, foreach_subdiv_geometry(), blender::bke::subdiv::SubdivDeformContext::have_displacement, blender::bke::subdiv::ToMeshSettings::resolution, setup_foreach_callbacks(), stats_begin(), stats_end(), blender::bke::subdiv::SubdivDeformContext::subdiv, SUBDIV_EVALUATOR_TYPE_CPU, subdiv_mesh_context_free(), SUBDIV_STATS_SUBDIV_TO_MESH, SUBDIV_STATS_SUBDIV_TO_MESH_GEOMETRY, blender::bke::subdiv::ToMeshSettings::use_optimal_display, blender::bke::subdiv::ForeachContext::user_data, and blender::bke::subdiv::SubdivDeformContext::vert_positions.
Referenced by calculate_limit_positions(), deform_coarse_vertices(), blender::deform_matrices(), and blender::shrinkwrap_calc_subdivided_positions().
| void blender::bke::subdiv::displacement_attach_from_multires | ( | Subdiv * | subdiv, |
| const Mesh * | mesh, | ||
| const MultiresModifierData * | mmd ) |
Definition at line 432 of file subdiv_displacement_multires.cc.
References blender::CD_MDISPS, blender::CustomData_has_layer(), displacement_attach_from_multires(), displacement_detach(), displacement_init_data(), displacement_init_functions(), blender::MEM_new_zeroed(), and blender::bke::subdiv::Displacement::user_data.
Referenced by blender::deform_matrices(), displacement_attach_from_multires(), blender::multires_as_ccg(), and blender::multires_as_mesh().
|
static |
Definition at line 380 of file subdiv_displacement_multires.cc.
References count_num_ptex_faces(), blender::data, displacement_data_init_mapping(), blender::IndexRange::size(), and blender::bke::subdiv::Displacement::user_data.
Referenced by displacement_data_init_mapping(), and displacement_init_data().
| void blender::bke::subdiv::displacement_detach | ( | Subdiv * | subdiv | ) |
Definition at line 15 of file subdiv_displacement.cc.
References displacement_detach().
Referenced by displacement_attach_from_multires(), displacement_detach(), and free().
|
static |
Definition at line 305 of file subdiv_displacement_multires.cc.
References blender::bke::subdiv::PolyCornerIndex::corner, blender::data, displacement_get_face_corner(), blender::bke::subdiv::PolyCornerIndex::face_index, rotate_quad_to_corner(), and blender::v.
Referenced by displacement_get_face_corner(), and eval_displacement().
|
static |
Definition at line 66 of file subdiv_displacement_multires.cc.
References blender::bke::subdiv::PolyCornerIndex::corner, blender::data, displacement_get_grid_and_coord(), blender::bke::subdiv::PolyCornerIndex::face_index, ptex_face_uv_to_grid_uv(), rotate_quad_to_corner(), blender::IndexRange::size(), blender::IndexRange::start(), blender::bke::subdiv::Displacement::user_data, and blender::v.
Referenced by displacement_get_grid_and_coord(), and eval_displacement().
|
static |
Definition at line 93 of file subdiv_displacement_multires.cc.
References blender::bke::subdiv::PolyCornerIndex::corner, blender::data, displacement_get_other_grid(), blender::bke::subdiv::PolyCornerIndex::face_index, blender::IndexRange::size(), and blender::bke::subdiv::Displacement::user_data.
Referenced by average_with_other(), and displacement_get_other_grid().
|
static |
Definition at line 407 of file subdiv_displacement_multires.cc.
References blender::CD_MDISPS, blender::CustomData_get_layer(), blender::data, displacement_data_init_mapping(), displacement_init_data(), face_ptex_offset_get(), grid_size_from_level(), blender::MultiresModifierData::totlvl, and blender::bke::subdiv::Displacement::user_data.
Referenced by displacement_attach_from_multires(), and displacement_init_data().
|
static |
Definition at line 425 of file subdiv_displacement_multires.cc.
References displacement_init_functions(), blender::bke::subdiv::Displacement::eval_displacement, eval_displacement(), blender::bke::subdiv::Displacement::free, free_displacement(), blender::bke::subdiv::Displacement::initialize, and initialize().
Referenced by displacement_attach_from_multires(), and displacement_init_functions().
| bool blender::bke::subdiv::eval_begin | ( | Subdiv * | subdiv, |
| eSubdivEvaluatorType | evaluator_type, | ||
| OpenSubdiv_EvaluatorCache * | evaluator_cache, | ||
| const OpenSubdiv_EvaluatorSettings * | settings ) |
Returns true if evaluator is ready for use.
Definition at line 58 of file subdiv_eval.cc.
References eval_begin(), eval_init_displacement(), openSubdiv_createEvaluatorFromTopologyRefiner(), stats_begin(), stats_end(), stats_reset(), SUBDIV_STATS_EVALUATOR_CREATE, and UNUSED_VARS.
Referenced by eval_begin(), and eval_begin_from_mesh().
| bool blender::bke::subdiv::eval_begin_from_mesh | ( | Subdiv * | subdiv, |
| const Mesh * | mesh, | ||
| eSubdivEvaluatorType | evaluator_type, | ||
| Span< float3 > | coarse_vert_positions = {}, | ||
| OpenSubdiv_EvaluatorCache * | evaluator_cache = nullptr ) |
| coarse_vert_positions | optional span of positions to override the mesh positions. |
Definition at line 216 of file subdiv_eval.cc.
References eval_begin(), eval_begin_from_mesh(), eval_refine_from_mesh(), and UNUSED_VARS.
Referenced by blender::BKE_subdiv_to_ccg_mesh(), deform_coarse_vertices(), blender::draw::draw_subdiv_create_requested_buffers(), eval_begin_from_mesh(), blender::multires_reshape_create_subdiv(), blender::bke::tests::GridsBVHTest::SetUp(), and subdiv_to_mesh().
|
static |
Definition at line 329 of file subdiv_displacement_multires.cc.
References average_displacement(), blender::BKE_multires_construct_tangent_matrix(), blender::BLI_assert(), blender::data, displacement_get_face_corner(), displacement_get_grid_and_coord(), eval_displacement(), read_displacement_grid(), blender::math::transform_direction(), blender::bke::subdiv::Displacement::user_data, and blender::v.
| void blender::bke::subdiv::eval_displacement | ( | Subdiv * | subdiv, |
| int | ptex_face_index, | ||
| float | u, | ||
| float | v, | ||
| const float3 & | dPdu, | ||
| const float3 & | dPdv, | ||
| float3 & | r_D ) |
TODO(sergey): This is currently used together with eval_final_point() which can easily evaluate derivatives. Would be nice to have displacement evaluation function which does not require knowing derivatives ahead of a time.
Definition at line 367 of file subdiv_eval.cc.
References eval_displacement(), and blender::v.
Referenced by displacement_init_functions(), eval_displacement(), eval_displacement(), eval_final_point(), subdiv_accumulate_vert_displacement(), and subdiv_accumulate_vert_displacement().
| void blender::bke::subdiv::eval_face_varying | ( | Subdiv * | subdiv, |
| int | face_varying_channel, | ||
| int | ptex_face_index, | ||
| float | u, | ||
| float | v, | ||
| float2 & | r_face_varying ) |
Evaluate face-varying layer (such as UV).
Definition at line 352 of file subdiv_eval.cc.
References eval_face_varying(), UNUSED_VARS, and blender::v.
Referenced by blender::draw::pbvh::calc_non_quad_uv(), blender::draw::pbvh::calc_quad_uv(), eval_face_varying(), and subdiv_eval_uv_layer().
| float3 blender::bke::subdiv::eval_final_point | ( | Subdiv * | subdiv, |
| int | ptex_face_index, | ||
| float | u, | ||
| float | v ) |
Evaluate point on a limit surface with displacement applied to it.
Definition at line 383 of file subdiv_eval.cc.
References blender::D(), eval_displacement(), eval_final_point(), eval_limit_point(), eval_limit_point_and_derivatives(), and blender::v.
Referenced by eval_final_point(), and subdiv_mesh_vert_inner().
| void blender::bke::subdiv::eval_init_displacement | ( | Subdiv * | subdiv | ) |
Makes sure displacement evaluator is initialized.
Definition at line 271 of file subdiv_eval.cc.
References eval_init_displacement().
Referenced by eval_begin(), and eval_init_displacement().
| float3 blender::bke::subdiv::eval_limit_point | ( | Subdiv * | subdiv, |
| int | ptex_face_index, | ||
| float | u, | ||
| float | v ) |
Definition at line 286 of file subdiv_eval.cc.
References eval_limit_point(), UNUSED_VARS, and blender::v.
Referenced by blender::BKE_subdiv_ccg_eval_limit_positions(), eval_final_point(), eval_limit_point(), evaluate_vert_and_apply_displacement_copy(), evaluate_vert_and_apply_displacement_interpolate(), and subdiv_mesh_vert_corner().
| void blender::bke::subdiv::eval_limit_point_and_derivatives | ( | Subdiv * | subdiv, |
| int | ptex_face_index, | ||
| float | u, | ||
| float | v, | ||
| float3 & | r_P, | ||
| float3 & | r_dPdu, | ||
| float3 & | r_dPdv ) |
Definition at line 298 of file subdiv_eval.cc.
References eval_limit_point_and_derivatives(), blender::math::is_equal(), blender::math::is_zero(), UNUSED_VARS, and blender::v.
Referenced by average_construct_tangent_matrix(), eval_final_point(), eval_limit_point_and_derivatives(), eval_limit_point_and_normal(), blender::multires_reshape_evaluate_base_mesh_limit_at_grid(), subdiv_accumulate_vert_displacement(), and subdiv_accumulate_vert_displacement().
| void blender::bke::subdiv::eval_limit_point_and_normal | ( | Subdiv * | subdiv, |
| int | ptex_face_index, | ||
| float | u, | ||
| float | v, | ||
| float3 & | r_P, | ||
| float3 & | r_N ) |
Definition at line 329 of file subdiv_eval.cc.
References blender::math::cross(), eval_limit_point_and_derivatives(), eval_limit_point_and_normal(), blender::math::normalize(), and blender::v.
Referenced by eval_limit_point_and_normal().
| bool blender::bke::subdiv::eval_refine_from_mesh | ( | Subdiv * | subdiv, |
| const Mesh * | mesh, | ||
| Span< float3 > | coarse_vert_positions ) |
Definition at line 235 of file subdiv_eval.cc.
References BLI_assert_msg, blender::bke::Corner, eval_refine_from_mesh(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_range(), blender::Span< T >::is_empty(), blender::bke::AttributeAccessor::lookup(), stats_begin(), stats_end(), SUBDIV_STATS_EVALUATOR_REFINE, and UNUSED_VARS.
Referenced by eval_begin_from_mesh(), eval_refine_from_mesh(), blender::multires_reshape_apply_base_refine_from_base(), blender::multires_reshape_apply_base_refine_from_deform(), and blender::ed::sculpt_paint::undo::refine_subdiv().
| void blender::bke::subdiv::eval_vert_data | ( | Subdiv * | subdiv, |
| int | ptex_face_index, | ||
| float | u, | ||
| float | v, | ||
| float | r_vert_data[] ) |
Evaluate smoothly interpolated vertex data (such as ORCO).
Definition at line 342 of file subdiv_eval.cc.
References eval_vert_data(), UNUSED_VARS, and blender::v.
Referenced by eval_vert_data(), and subdiv_vert_orco_evaluate().
|
static |
Definition at line 944 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshContext::accumulated_counters, blender::copy_v3_v3(), blender::D(), eval_limit_point(), evaluate_vert_and_apply_displacement_copy(), blender::bke::subdiv::SubdivMeshContext::have_displacement, blender::mul_v3_fl(), blender::bke::subdiv::SubdivMeshContext::subdiv, blender::bke::subdiv::SubdivMeshContext::subdiv_positions, subdiv_vert_data_copy(), subdiv_vert_orco_evaluate(), and blender::v.
Referenced by evaluate_vert_and_apply_displacement_copy(), and subdiv_mesh_vert_corner().
|
static |
Definition at line 969 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshContext::accumulated_counters, blender::add_v3_v3(), blender::copy_v3_v3(), blender::D(), eval_limit_point(), evaluate_vert_and_apply_displacement_interpolate(), blender::bke::subdiv::SubdivMeshContext::have_displacement, blender::mul_v3_fl(), blender::bke::subdiv::SubdivMeshContext::subdiv, blender::bke::subdiv::SubdivMeshContext::subdiv_positions, subdiv_vert_data_interpolate(), subdiv_vert_orco_evaluate(), and blender::v.
Referenced by evaluate_vert_and_apply_displacement_interpolate(), and subdiv_mesh_vert_edge().
| void blender::bke::subdiv::exit | ( | ) |
Definition at line 40 of file subdiv.cc.
References exit(), and openSubdiv_cleanup().
Referenced by blender::__attribute__(), blender::arg_handle_audio_set(), blender::arg_handle_command_set(), blender::arg_handle_engine_set(), blender::arg_handle_env_system_set(), blender::arg_handle_gpu_device_exit(), blender::arg_handle_list_clog_cats(), blender::arg_handle_playback_mode(), blender::arg_handle_print_help(), blender::arg_handle_print_version(), blender::arg_handle_window_geometry(), exit(), main(), blender::ed::space_node::node_group_edit_exec(), scan_external_symbols(), blender::sig_handle_blender_esc(), blender::WM_exit(), blender::WM_exit_ex(), and blender::wm_ghost_init().
For each element in the array, this stores the total number of ptex faces up to that element, with the total number of ptex faces being the last element in the array. The array is of length base face count + 1.
Definition at line 216 of file subdiv.cc.
References blender::opensubdiv::TopologyRefinerImpl::base_level(), face_ptex_offset_get(), and UNUSED_VARS.
Referenced by blender::draw::pbvh::calc_node_uvs_for_flat_layout(), blender::draw::pbvh::calc_node_uvs_for_standard_layout(), blender::context_init_common(), displacement_init_data(), face_ptex_offset_get(), blender::subdiv_ccg_coord_to_ptex_coord(), and subdiv_foreach_ctx_init().
|
static |
Definition at line 1311 of file subdiv_mesh.cc.
References find_edge_neighbors(), and blender::Span< T >::size().
Referenced by find_edge_neighbors(), and mesh_interpolate_position_on_edge().
|
static |
Definition at line 1328 of file subdiv_mesh.cc.
References blender::bke::mesh::edge_other_vert(), find_loose_edge_interpolation_positions(), and blender::result.
Referenced by find_loose_edge_interpolation_positions(), and mesh_interpolate_position_on_edge().
|
static |
Definition at line 158 of file subdiv_converter_mesh.cc.
References finish_uv_layer().
Referenced by finish_uv_layer(), and init_functions().
| bool blender::bke::subdiv::foreach_subdiv_geometry | ( | Subdiv * | subdiv, |
| const ForeachContext * | context, | ||
| const ToMeshSettings * | mesh_settings, | ||
| const Mesh * | coarse_mesh ) |
Invokes callbacks in the order and with values which corresponds to creation of final subdivided mesh.
Main goal is to abstract all the traversal routines to give geometry element indices (for vertices, edges, loops, faces) in the same way as subdivision modifier will do for a dense mesh.
Returns true if the whole topology was traversed, without any early exits.
TODO(@sergey): Need to either get rid of subdiv or of coarse_mesh. The main point here is to be able to get base level topology, which can be done with either of those. Having both of them is kind of redundant.
Definition at line 1748 of file subdiv_foreach.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::BLI_parallel_range_settings_defaults(), blender::BLI_task_parallel_range(), blender::bke::subdiv::ForeachTaskContext::coarse_corner_edges, blender::bke::subdiv::ForeachTaskContext::coarse_corner_verts, blender::bke::subdiv::ForeachTaskContext::coarse_edges, blender::bke::subdiv::ForeachTaskContext::coarse_faces, blender::bke::subdiv::ForeachTaskContext::coarse_mesh, blender::Mesh::edges_num, blender::Mesh::faces_num, blender::bke::subdiv::ForeachTaskContext::foreach_context, foreach_subdiv_geometry(), blender::TaskParallelSettings::func_free, blender::TaskParallelSettings::min_iter_per_thread, blender::bke::subdiv::ForeachTaskContext::num_subdiv_edges, blender::bke::subdiv::ForeachTaskContext::num_subdiv_faces, blender::bke::subdiv::ForeachTaskContext::num_subdiv_loops, blender::bke::subdiv::ForeachTaskContext::num_subdiv_vertices, blender::bke::subdiv::ForeachTaskContext::settings, blender::bke::subdiv::ForeachTaskContext::subdiv_face_offset, subdiv_foreach_boundary_edges_task(), subdiv_foreach_ctx_free(), subdiv_foreach_ctx_init(), subdiv_foreach_free(), subdiv_foreach_loose_vertices_task(), subdiv_foreach_single_thread_tasks(), subdiv_foreach_task(), subdiv_foreach_vertices_of_loose_edges_task(), blender::TaskParallelSettings::userdata_chunk, blender::TaskParallelSettings::userdata_chunk_size, and blender::Mesh::verts_num.
Referenced by deform_coarse_vertices(), foreach_subdiv_geometry(), blender::multires_reshape_assign_final_coords_from_vertcos(), and subdiv_to_mesh().
| void blender::bke::subdiv::free | ( | Subdiv * | subdiv | ) |
Definition at line 192 of file subdiv.cc.
References blender::BKE_subsurf_modifier_free_gpu_cache_cb, displacement_detach(), free(), OPENSUBDIV_EVALUATOR_CPU, and UNUSED_VARS.
Referenced by blender::ResourceScope::add(), blender::arg_handle_addons_set(), blender::BKE_blender_atexit(), blender::BKE_blender_atexit_unregister(), blender::BKE_rigidbody_free_world(), blender::BLI_dynstr_clear(), blender::BLI_exists(), blender::BLI_file_stat_mode(), blender::BLI_freelist(), blender::BLI_getenv(), blender::BLI_is_dir(), blender::BLI_is_file(), blender::BLI_rng_shuffle_array(), blender::BLI_system_backtrace_with_os_info(), blender::BLI_windows_exception_show_dialog(), blender::bli_windows_get_module_version(), blender::BLI_windows_system_backtrace_run_trace(), blender::ui::block_set_active_operator(), blender::ui::but_event_property_operator_string(), blender::ui::button_matches_search_filter(), calculate_limit_positions(), blender::callback_main_atexit(), blender::gpu::MTLUniformBuf::clear_to_zero(), blender::curve_draw_exec(), blender::ed::curves::curves_draw_exec(), blender::CustomData_external_write(), blender::RawAllocator::deallocate(), blender::ui::def_but_rna(), blender::ui::def_but_rna__menu(), blender::deform_matrices(), blender::draw::DRW_cache_free_old_subdiv(), blender::ED_region_draw_cb_remove_by_type(), blender::ED_userpref_tabs_list(), free(), blender::free_runtime_data(), blender::ed::geometry::geometry_attribute_add_invoke(), blender::gpu::MTLContext::get_null_buffer(), blender::GIZMO_GT_snap_3d(), blender::ui::icon_view_menu_cb(), blender::IFileStream::IFileStream(), blender::insert_key_menu_invoke(), blender::ui::item_enum_expand_exec(), blender::ui::item_rna_size(), blender::ui::menu_item_enum_opname_menu_active(), blender::mesh_wrapper_ensure_subdivision(), blender::modify_mesh(), blender::multires_do_versions_simple_to_catmull_clark(), blender::multires_reshape_context_free(), blender::multires_reshape_create_subdiv(), blender::ed::space_node::node_space_subtype_item_extend(), blender::ed::object::object_remove_parent_deform_modifiers(), blender::ed::object::ocean_bake_exec(), blender::OFileStream::OFileStream(), blender::ui::Layout::op_enum(), blender::ed::greasepencil::polyline_detect_corners(), blender::ed::greasepencil::polyline_fit_curve(), blender::ui::Layout::prop_enum(), blender::ui::Layout::props_enum(), blender::pyrna_enum_as_string(), blender::pyrna_prop_to_enum_bitfield(), blender::recursive_operation_impl(), blender::RNA_enum_is_equal(), blender::RNA_property_as_string(), blender::RNA_property_enum_bitflag_identifiers(), blender::RNA_property_enum_identifier(), blender::RNA_property_enum_item_from_value(), blender::RNA_property_enum_items_gettexted_all(), blender::RNA_property_enum_name(), blender::RNA_property_enum_step(), blender::RNA_property_enum_value(), blender::rna_PropertyGroup_register(), blender::shrinkwrap_calc_subdivided_positions(), blender::space_type_set_or_cycle_exec(), blender::strbuf_free(), blender::subdivide_edit_mesh(), blender::TEST(), blender::thumb_data_vertical_flip(), update_from_converter(), blender::where_am_i(), blender::WM_clipboard_image_get(), blender::wm_clipboard_text_get_ex(), blender::WM_jobs_customdata_set(), blender::WM_paint_cursor_remove_by_type(), blender::io::grease_pencil::PDFExporter::write_to_file(), blender::io::grease_pencil::SVGExporter::write_to_file(), and blender::SubdivCCG::~SubdivCCG().
|
static |
Definition at line 361 of file subdiv_displacement_multires.cc.
References blender::data, free_displacement(), and blender::bke::subdiv::Displacement::user_data.
Referenced by displacement_init_functions(), and free_displacement().
|
static |
Definition at line 175 of file subdiv_converter_mesh.cc.
References free_user_data(), blender::bke::subdiv::ConverterStorage::loop_uv_indices, and OpenSubdiv_Converter::user_data.
Referenced by free_user_data(), and init_functions().
| FVarLinearInterpolation blender::bke::subdiv::fvar_interpolation_from_uv_smooth | ( | int | uv_smooth | ) |
Definition at line 49 of file subdiv.cc.
References BLI_assert_msg, fvar_interpolation_from_uv_smooth(), SUBDIV_FVAR_LINEAR_INTERPOLATION_ALL, SUBDIV_FVAR_LINEAR_INTERPOLATION_BOUNDARIES, SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_AND_JUNCTIONS, SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_JUNCTIONS_AND_CONCAVE, SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_ONLY, SUBDIV_FVAR_LINEAR_INTERPOLATION_NONE, blender::SUBSURF_UV_SMOOTH_ALL, blender::SUBSURF_UV_SMOOTH_NONE, blender::SUBSURF_UV_SMOOTH_PRESERVE_BOUNDARIES, blender::SUBSURF_UV_SMOOTH_PRESERVE_CORNERS, blender::SUBSURF_UV_SMOOTH_PRESERVE_CORNERS_AND_JUNCTIONS, and blender::SUBSURF_UV_SMOOTH_PRESERVE_CORNERS_JUNCTIONS_AND_CONCAVE.
Referenced by blender::BKE_multires_subdiv_settings_init(), blender::BKE_subsurf_modifier_settings_init(), and fvar_interpolation_from_uv_smooth().
|
static |
Definition at line 293 of file subdiv_converter_mesh.cc.
References blender::array_utils::copy(), blender::array_utils::gather(), gather_manifold_sharpness(), blender::MutableSpan< T >::index_range(), blender::Span< T >::is_empty(), blender::threading::parallel_for(), blender::MutableSpan< T >::size(), and blender::Span< T >::take_front().
Referenced by gather_manifold_sharpness(), initialize_edge_sharpness(), and initialize_vert_sharpness().
|
static |
Definition at line 166 of file subdiv_converter_mesh.cc.
References get_face_corner_uv_index(), blender::IndexRange::start(), storage, and OpenSubdiv_Converter::user_data.
Referenced by get_face_corner_uv_index(), and init_functions().
|
static |
Definition at line 116 of file subdiv_converter_mesh.cc.
References get_num_uv_layers(), storage, and OpenSubdiv_Converter::user_data.
Referenced by get_num_uv_layers(), and init_functions().
|
static |
Definition at line 160 of file subdiv_converter_mesh.cc.
References get_num_uvs(), storage, and OpenSubdiv_Converter::user_data.
Referenced by get_num_uvs(), and init_functions().
|
static |
Definition at line 81 of file subdiv_converter_mesh.cc.
References get_scheme_type(), blender::bke::subdiv::Settings::is_simple, OSD_SCHEME_BILINEAR, and OSD_SCHEME_CATMARK.
Referenced by converter_init_for_mesh(), and get_scheme_type().
| BLI_INLINE int blender::bke::subdiv::grid_size_from_level | ( | int | level | ) |
For a given subdivision level (which is NOT refinement level) get size of CCG grid (number of grid points on a side).
Definition at line 43 of file subdiv_inline.hh.
References BLI_INLINE, and grid_size_from_level().
Referenced by blender::BKE_subdiv_ccg_key(), blender::BKE_subdiv_to_ccg(), displacement_init_data(), blender::ensure_displacement_grids(), blender::ensure_mask_grids(), blender::foreach_grid_coordinate(), grid_size_from_level(), blender::multires_ensure_external_read(), blender::multires_reshape_context_create_from_base_mesh(), blender::multires_reshape_context_create_from_ccg(), blender::multires_reshape_context_create_from_object(), blender::multires_reshape_context_create_from_subdiv(), blender::multires_reshape_orig_grid_element_for_grid_coord(), and blender::read_mask_grid().
| BLI_INLINE void blender::bke::subdiv::grid_uv_to_ptex_face_uv | ( | float | grid_u, |
| float | grid_v, | ||
| float * | r_ptex_u, | ||
| float * | r_ptex_v ) |
Inverse of above.
Definition at line 34 of file subdiv_inline.hh.
References BLI_INLINE, and grid_uv_to_ptex_face_uv().
Referenced by average_convert_grid_coord_to_ptex(), grid_uv_to_ptex_face_uv(), and blender::multires_reshape_grid_coord_to_ptex().
| void blender::bke::subdiv::init | ( | ) |
Definition at line 35 of file subdiv.cc.
References init(), and openSubdiv_init().
Referenced by blender::nodes::node_geo_transfer_attributes_cc::add_attribute_with_array(), blender::gpu::MTLBottomLevelAS::add_geometry(), blender::nodes::node_geo_instance_on_points_cc::add_instances_from_component(), blender::bke::attribute_init_to_data(), blender::gpu::MTLFrameBuffer::bake_render_pass_descriptor(), blender::BKE_mesh_legacy_convert_uvs_to_generic(), blender::BKE_mesh_to_pointcloud(), blender::BKE_pointcloud_to_mesh(), blender::BMO_op_init(), blender::array_utils::booleans_mix_calc(), blender::bounds_min_max_with_transform(), blender::bke::build_mesh_positions(), blender::ed::vse::ScopeHistogram::calc_from_ibuf(), blender::bke::calculate_type_counts(), blender::bke::compute_local_mesh_groups(), blender::array_utils::contains(), blender::nodes::node_geo_instances_to_points_cc::convert_instances_to_points(), blender::geometry::copy_and_mix_attributes(), blender::nodes::node_geo_duplicate_elements_cc::copy_attributes_from_other_domains(), blender::array_utils::count_booleans(), blender::geometry::create_curve_from_vert_indices(), blender::bke::curve_types_are_valid(), blender::gpu::MTLContext::debug_capture_begin(), blender::deform_verts(), blender::ed::pointcloud::duplicate_points(), blender::ed_curves_select_pick(), blender::ed_grease_pencil_select_pick(), blender::gpu::MTLContext::ensure_depth_stencil_state(), blender::ed::curves::find_closest_curve(), blender::ed::curves::find_closest_curve_to_screen_co(), blender::ed::curves::find_closest_point_to_screen_co(), blender::ed::pointcloud::find_closest_point_to_screen_co(), blender::ed::sculpt_paint::find_curves_brush_position(), blender::bke::pbvh::Tree::from_grids(), blender::bke::pbvh::Tree::from_mesh(), blender::bke::gather_attributes(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), blender::nodes::node_geo_points_to_vertices_cc::geometry_set_points_to_vertices(), blender::gpu::MTLContextComputeUtils::get_buffer_clear_pso(), blender::gpu::get_compile_options(), blender::heapsimple_down(), init(), blender::init(), blender::gpu::MTLTexture::init_internal(), blender::bke::bake::load_attributes(), blender::ed::sculpt_paint::load_tex(), blender::ed::sculpt_paint::load_tex_cursor(), blender::geometry::merge_points(), blender::mesh_customdata_custom_splitnormals_add_exec(), blender::bke::mesh_remesh_reproject_attributes(), blender::bounds::min_max(), blender::bounds::min_max(), blender::bounds::min_max(), blender::bounds::min_max_with_radii(), blender::gpu::MTLFrameBuffer::MTLFrameBuffer(), blender::pointcloud_select_pick(), blender::nodes::node_geo_distribute_points_on_faces_cc::propagate_attributes(), blender::pygpu_buffer__tp_new(), blender::register_node_type_tex_bricks(), blender::register_node_type_tex_image(), blender::register_node_type_tex_output(), blender::gpu::MTLBackend::render_begin(), blender::gpu::MTLBackend::render_step(), blender::geometry::reorder_and_flip_attributes_group_to_group(), blender::ed::sculpt_paint::replace_attribute(), blender::ed::curves::resize_curves(), blender::ed::transform::restoreBones(), blender::geometry::retrieve_attribute_spans(), blender::gpu::MTLContext::sampler_state_cache_init(), blender::ed::transform::snap_object_data_editmesh_get(), blender::seq::tonemap_calc_input_luminance(), blender::bke::try_add_shared_field_attribute(), blender::bke::try_capture_fields_on_geometry(), blender::ed::greasepencil::weight_sample_invoke(), blender::WM_init(), blender::WM_tooltip_immediate_init(), blender::WM_tooltip_timer_init(), and blender::WM_tooltip_timer_init_ex().
|
static |
Definition at line 182 of file subdiv_converter_mesh.cc.
References finish_uv_layer(), OpenSubdiv_Converter::finishUVLayer, free_user_data(), OpenSubdiv_Converter::freeUserData, get_face_corner_uv_index(), get_num_uv_layers(), get_num_uvs(), OpenSubdiv_Converter::getEdgeFaces, OpenSubdiv_Converter::getFaceCornerUVIndex, OpenSubdiv_Converter::getFaceEdges, OpenSubdiv_Converter::getNumEdgeFaces, OpenSubdiv_Converter::getNumUVCoordinates, OpenSubdiv_Converter::getNumUVLayers, OpenSubdiv_Converter::getNumVertexEdges, OpenSubdiv_Converter::getNumVertexFaces, OpenSubdiv_Converter::getVertexEdges, OpenSubdiv_Converter::getVertexFaces, init_functions(), precalc_uv_layer(), OpenSubdiv_Converter::precalcUVLayer, specifies_full_topology(), and OpenSubdiv_Converter::specifiesFullTopology.
Referenced by converter_init_for_mesh(), and init_functions().
|
static |
Definition at line 384 of file subdiv_converter_mesh.cc.
References blender::bke::subdiv::ConverterStorage::cd_edge_crease, blender::bke::subdiv::ConverterStorage::cd_vertex_crease, blender::bke::Edge, blender::bke::subdiv::ConverterStorage::faces, init_user_data(), initialize_edge_sharpness(), initialize_manifold_indices(), initialize_vert_sharpness(), blender::bke::AttributeAccessor::lookup(), blender::bke::subdiv::ConverterStorage::loop_uv_indices, blender::bke::subdiv::ConverterStorage::mesh, blender::bke::Point, blender::bke::subdiv::ConverterStorage::settings, blender::bke::subdiv::Settings::use_creases, OpenSubdiv_Converter::user_data, and blender::bke::subdiv::ConverterStorage::uv_map_names.
Referenced by converter_init_for_mesh(), and init_user_data().
|
static |
Definition at line 321 of file subdiv_displacement_multires.cc.
References blender::data, initialize(), blender::multiresModifier_ensure_external_read(), and blender::bke::subdiv::Displacement::user_data.
Referenced by displacement_init_functions(), and initialize().
|
static |
Definition at line 312 of file subdiv_converter_mesh.cc.
References gather_manifold_sharpness(), initialize_edge_sharpness(), OPENSUBDIV_SHARPNESS_INFINITE, and storage.
Referenced by init_user_data(), and initialize_edge_sharpness().
|
static |
Definition at line 243 of file subdiv_converter_mesh.cc.
References blender::MutableSpan< T >::index_range(), initialize_manifold_edges(), blender::threading::parallel_for(), storage, and blender::Span< T >::take_front().
Referenced by initialize_manifold_edges(), and initialize_manifold_indices().
|
static |
Definition at line 219 of file subdiv_converter_mesh.cc.
References blender::index_mask::build_reverse_map< int >(), blender::index_mask::IndexMask::complement(), blender::IndexRange::IndexRange(), initialize_manifold_index_map(), blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::index_mask::IndexMask::size(), blender::index_mask::IndexMask::to_indices(), and unused_is_trailing_range().
Referenced by initialize_manifold_index_map(), and initialize_manifold_indices().
|
static |
Definition at line 265 of file subdiv_converter_mesh.cc.
References blender::array_utils::gather(), initialize_manifold_edges(), initialize_manifold_index_map(), initialize_manifold_indices(), blender::Span< T >::size(), and storage.
Referenced by init_user_data(), and initialize_manifold_indices().
|
static |
Definition at line 334 of file subdiv_converter_mesh.cc.
References blender::MutableSpan< T >::fill(), blender::index_mask::IndexMask::foreach_index(), gather_manifold_sharpness(), blender::MutableSpan< T >::index_range(), initialize_vert_sharpness(), blender::index_mask::IndexMask::is_empty(), OPENSUBDIV_SHARPNESS_INFINITE, blender::threading::parallel_for(), and storage.
Referenced by init_user_data(), and initialize_vert_sharpness().
| std::array< T, 4 > blender::bke::subdiv::interpolate_corner_data_for_subdivided_irregular_face | ( | IndexRange | face, |
| int | corner, | ||
| Span< T > | src ) |
Definition at line 402 of file BKE_subdiv.hh.
References blender::bke::mesh::face_corner_next(), blender::bke::mesh::face_corner_prev(), blender::IndexRange::first(), interpolate_corner_data_for_subdivided_irregular_face(), blender::bke::attribute_math::mix2(), blender::bke::attribute_math::mix_indices(), and blender::IndexRange::size().
Referenced by interpolate_corner_data_for_subdivided_irregular_face().
| std::array< T, 4 > blender::bke::subdiv::interpolate_vert_data_for_subdivided_irregular_face | ( | Span< int > | corner_verts, |
| IndexRange | face, | ||
| int | corner, | ||
| Span< T > | src ) |
Calculate the subdivided quad PTEX face interpolated attribute data.
Definition at line 380 of file BKE_subdiv.hh.
References blender::bke::mesh::face_corner_next(), blender::bke::mesh::face_corner_prev(), interpolate_vert_data_for_subdivided_irregular_face(), blender::bke::attribute_math::mix2(), blender::bke::attribute_math::mix_indices(), and blender::Span< T >::slice().
Referenced by interpolate_vert_data_for_subdivided_irregular_face().
|
static |
Definition at line 616 of file subdiv_mesh.cc.
References blender::bke::subdiv::LoopsForInterpolation::CD_NORMAL_storage, blender::bke::subdiv::LoopsForInterpolation::CD_ORIGSPACE_MLOOP_storage, blender::bke::subdiv::SubdivMeshContext::coarse_CD_NORMAL, blender::bke::subdiv::SubdivMeshContext::coarse_CD_ORIGSPACE_MLOOP, blender::bke::subdiv::SubdivMeshContext::coarse_corner_attr_spans, copy_attrs(), blender::bke::subdiv::LoopsOfPtex::first_loop, blender::bke::subdiv::LoopsOfPtex::last_loop, loop_interpolation_from_corner(), loops_of_ptex_get(), blender::bke::attribute_math::mix2(), mix_attrs(), mix_normals(), blender::IndexRange::size(), blender::IndexRange::start(), and blender::bke::subdiv::LoopsForInterpolation::storage_spans.
Referenced by loop_interpolation_from_corner(), and subdiv_mesh_ensure_loop_interpolation().
|
static |
Definition at line 570 of file subdiv_mesh.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::bke::subdiv::LoopsForInterpolation::CD_NORMAL_data, blender::bke::subdiv::LoopsForInterpolation::CD_NORMAL_storage, blender::bke::subdiv::LoopsForInterpolation::CD_ORIGSPACE_MLOOP_data, blender::bke::subdiv::LoopsForInterpolation::CD_ORIGSPACE_MLOOP_storage, blender::bke::subdiv::SubdivMeshContext::coarse_CD_NORMAL, blender::bke::subdiv::SubdivMeshContext::coarse_CD_ORIGSPACE_MLOOP, blender::bke::subdiv::SubdivMeshContext::coarse_corner_attr_spans, blender::bke::subdiv::LoopsForInterpolation::corner_data, float, blender::bke::subdiv::LoopsForInterpolation::loop_indices, loop_interpolation_from_face(), mix_attrs(), blender::bke::attribute_math::mix_indices(), mix_normals(), blender::IndexRange::size(), blender::IndexRange::start(), and blender::bke::subdiv::LoopsForInterpolation::storage_spans.
Referenced by loop_interpolation_from_face(), and subdiv_mesh_ensure_loop_interpolation().
|
static |
Definition at line 247 of file subdiv_mesh.cc.
References blender::bke::subdiv::LoopsOfPtex::first_loop, blender::bke::subdiv::LoopsOfPtex::last_loop, loops_of_ptex_get(), blender::bke::subdiv::LoopsOfPtex::second_loop, blender::IndexRange::size(), blender::IndexRange::start(), and blender::bke::subdiv::LoopsOfPtex::third_loop.
Referenced by loop_interpolation_from_corner(), loops_of_ptex_get(), and vert_interpolation_from_corner().
|
static |
Definition at line 111 of file subdiv_converter_mesh.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), and manifold_to_original().
Referenced by manifold_to_original().
| float3 blender::bke::subdiv::mesh_interpolate_position_on_edge | ( | Span< float3 > | coarse_positions, |
| Span< int2 > | coarse_edges, | ||
| GroupedSpan< int > | vert_to_edge_map, | ||
| int | coarse_edge_index, | ||
| bool | is_simple, | ||
| float | u ) |
Interpolate a position along the coarse_edge at the relative u coordinate. If is_simple is false, this will perform a B-Spline interpolation using the edge neighbors, otherwise a linear interpolation will be done base on the edge vertices.
Definition at line 1354 of file subdiv_mesh.cc.
References find_edge_neighbors(), find_loose_edge_interpolation_positions(), blender::math::interpolate(), blender::KEY_BSPLINE, blender::key_curve_position_weights(), mesh_interpolate_position_on_edge(), and blender::bke::attribute_math::mix4().
Referenced by blender::draw::DRW_subdivide_loose_geom(), mesh_interpolate_position_on_edge(), and subdiv_mesh_vert_of_loose_edge().
|
static |
Definition at line 357 of file subdiv_mesh.cc.
References blender::Span< T >::index_range(), mix_attrs(), blender::bke::attribute_math::mix_indices(), T, and blender::bke::attribute_math::to_static_type().
|
static |
Definition at line 306 of file subdiv_mesh.cc.
References blender::Span< T >::index_range(), blender::bke::attribute_math::mix2(), mix_attrs(), blender::bke::attribute_math::mix_indices(), T, and blender::bke::attribute_math::to_static_type().
Referenced by loop_interpolation_from_corner(), loop_interpolation_from_face(), mix_attrs(), mix_attrs(), mix_attrs(), subdiv_interpolate_corner_data(), subdiv_mesh_vert_of_loose_edge_interpolate(), subdiv_vert_data_interpolate(), vert_interpolation_from_corner(), and vert_interpolation_from_face().
|
static |
Definition at line 330 of file subdiv_mesh.cc.
References blender::Span< T >::index_range(), blender::bke::attribute_math::mix4(), mix_attrs(), blender::bke::attribute_math::mix_indices(), blender::Span< T >::Span(), T, and blender::bke::attribute_math::to_static_type().
|
static |
Definition at line 277 of file subdiv_mesh.cc.
References blender::Span< T >::index_range(), mix_normals(), blender::math::normalize(), and blender::result.
Referenced by loop_interpolation_from_corner(), loop_interpolation_from_face(), mix_normals(), mix_normals(), mix_normals(), and subdiv_interpolate_corner_data().
|
static |
Definition at line 299 of file subdiv_mesh.cc.
References blender::math::interpolate(), mix_normals(), and blender::math::normalize().
|
static |
Definition at line 288 of file subdiv_mesh.cc.
References blender::IndexRange::IndexRange(), mix_normals(), blender::math::normalize(), and blender::result.
| Subdiv * blender::bke::subdiv::new_from_converter | ( | const Settings * | settings, |
| OpenSubdiv_Converter * | converter ) |
Construct new subdivision surface descriptor, from scratch, using given settings and topology.
Definition at line 100 of file subdiv.cc.
References blender::opensubdiv::TopologyRefinerImpl::createFromConverter(), blender::bke::subdiv::Settings::is_adaptive, OpenSubdiv_TopologyRefinerSettings::is_adaptive, blender::bke::subdiv::Settings::level, OpenSubdiv_TopologyRefinerSettings::level, new_from_converter(), stats_begin(), stats_end(), stats_init(), SUBDIV_STATS_TOPOLOGY_REFINER_CREATION_TIME, UNUSED_VARS, and OpenSubdiv_Converter::verts_num.
Referenced by new_from_converter(), new_from_mesh(), and update_from_converter().
Definition at line 133 of file subdiv.cc.
References converter_free(), converter_init_for_mesh(), new_from_converter(), and new_from_mesh().
Referenced by blender::multires_reshape_create_subdiv(), new_from_mesh(), blender::bke::tests::GridsBVHTest::SetUp(), and blender::subdivide_edit_mesh().
| BLI_INLINE int blender::bke::subdiv::num_edges_per_ptex_face_get | ( | const int | resolution | ) |
Definition at line 34 of file subdiv_foreach.cc.
References BLI_INLINE, and num_edges_per_ptex_face_get().
Referenced by num_edges_per_ptex_face_get(), subdiv_foreach_ctx_count(), subdiv_foreach_ctx_init_offsets(), and subdiv_foreach_loops_regular().
| BLI_INLINE int blender::bke::subdiv::num_faces_per_ptex_get | ( | const int | resolution | ) |
Definition at line 48 of file subdiv_foreach.cc.
References BLI_INLINE, and num_faces_per_ptex_get().
Referenced by num_faces_per_ptex_get(), subdiv_foreach_ctx_count(), and subdiv_foreach_ctx_init_offsets().
| BLI_INLINE int blender::bke::subdiv::num_inner_edges_per_ptex_face_get | ( | const int | resolution | ) |
Definition at line 39 of file subdiv_foreach.cc.
References BLI_INLINE, and num_inner_edges_per_ptex_face_get().
Referenced by num_inner_edges_per_ptex_face_get(), subdiv_foreach_ctx_count(), subdiv_foreach_ctx_init_offsets(), and subdiv_foreach_loops_special().
| BLI_INLINE int blender::bke::subdiv::num_ptex_faces_per_face_get | ( | const IndexRange | face | ) |
Definition at line 29 of file subdiv_foreach.cc.
References BLI_INLINE, num_ptex_faces_per_face_get(), and blender::IndexRange::size().
Referenced by num_ptex_faces_per_face_get(), subdiv_foreach_ctx_count(), and subdiv_foreach_ctx_init_offsets().
|
static |
Definition at line 106 of file subdiv_converter_mesh.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), and original_to_manifold().
Referenced by original_to_manifold().
|
static |
Definition at line 122 of file subdiv_converter_mesh.cc.
References blender::BKE_mesh_uv_vert_map_create(), blender::BKE_mesh_uv_vert_map_free(), blender::BKE_mesh_uv_vert_map_get_vert(), blender::bke::Corner, blender::UvMapVert::face_index, blender::bke::AttributeAccessor::lookup(), blender::UvMapVert::loop_of_face_index, blender::MEM_new_array_uninitialized(), blender::UvMapVert::next, precalc_uv_layer(), blender::UvMapVert::separate, blender::IndexRange::start(), STD_UV_CONNECT_LIMIT, storage, and OpenSubdiv_Converter::user_data.
Referenced by init_functions(), and precalc_uv_layer().
| BLI_INLINE int blender::bke::subdiv::ptex_face_resolution_get | ( | const IndexRange | face, |
| int | resolution ) |
Definition at line 54 of file subdiv_foreach.cc.
References BLI_INLINE, ptex_face_resolution_get(), and blender::IndexRange::size().
Referenced by ptex_face_resolution_get(), subdiv_foreach_edges_all_patches_special(), subdiv_foreach_inner_vertices_special(), subdiv_foreach_loops_regular(), and subdiv_foreach_loops_special().
| BLI_INLINE float2 blender::bke::subdiv::ptex_face_uv_to_grid_uv | ( | const float2 & | ptex_uv | ) |
Definition at line 29 of file subdiv_inline.hh.
References BLI_INLINE, and ptex_face_uv_to_grid_uv().
| BLI_INLINE void blender::bke::subdiv::ptex_face_uv_to_grid_uv | ( | float | ptex_u, |
| float | ptex_v, | ||
| float * | r_grid_u, | ||
| float * | r_grid_v ) |
For a given (ptex_u, ptex_v) within a ptex face get corresponding (grid_u, grid_v) within a grid.
Definition at line 20 of file subdiv_inline.hh.
References BLI_INLINE, and ptex_face_uv_to_grid_uv().
Referenced by displacement_get_grid_and_coord(), blender::mask_get_grid_and_coord(), blender::multires_reshape_grid_coord_to_ptex(), blender::multires_reshape_ptex_coord_to_grid(), ptex_face_uv_to_grid_uv(), and ptex_face_uv_to_grid_uv().
| BLI_INLINE float4 blender::bke::subdiv::quad_weights_from_uv | ( | float | u, |
| float | v ) |
Definition at line 126 of file subdiv_inline.hh.
References BLI_INLINE, quad_weights_from_uv(), and blender::v.
Referenced by blender::draw::pbvh::quad_weights_from_grid(), blender::draw::pbvh::quad_weights_from_irregular_corner(), quad_weights_from_uv(), subdiv_interpolate_corner_data(), and subdiv_vert_data_interpolate().
| BLI_INLINE AverageWith blender::bke::subdiv::read_displacement_grid | ( | const MDisps & | displacement_grid, |
| const int | grid_size, | ||
| const float | grid_u, | ||
| const float | grid_v, | ||
| float3 & | r_tangent_D ) |
Definition at line 107 of file subdiv_displacement_multires.cc.
References All, BLI_INLINE, blender::MDisps::disps, Next, None, Prev, read_displacement_grid(), roundf, blender::x, and y.
Referenced by average_read_displacement_tangent(), eval_displacement(), and read_displacement_grid().
| BLI_INLINE void blender::bke::subdiv::rotate_grid_to_quad | ( | int | corner, |
| float | grid_u, | ||
| float | grid_v, | ||
| float * | r_quad_u, | ||
| float * | r_quad_v ) |
Converts (u, v) coordinate from within a grid to a quad coordinate in normalized ptex coordinates.
Definition at line 94 of file subdiv_inline.hh.
References blender::BLI_assert(), BLI_INLINE, and rotate_grid_to_quad().
Referenced by average_convert_grid_coord_to_ptex(), blender::draw::pbvh::calc_quad_uv(), blender::multires_reshape_grid_coord_to_ptex(), blender::draw::pbvh::quad_weights_from_grid(), rotate_grid_to_quad(), and blender::subdiv_ccg_coord_to_ptex_coord().
|
static |
Definition at line 974 of file subdiv_foreach.cc.
References b, rot, and rotate_indices().
Referenced by rotate_indices(), and subdiv_foreach_loops_of_face().
| BLI_INLINE int blender::bke::subdiv::rotate_quad_to_corner | ( | float | quad_u, |
| float | quad_v, | ||
| float * | r_corner_u, | ||
| float * | r_corner_v ) |
Find per-corner coordinate with given per-face UV coord. Only handles quad and works in normalized coordinates.
Definition at line 48 of file subdiv_inline.hh.
References blender::BLI_assert(), BLI_INLINE, and rotate_quad_to_corner().
Referenced by displacement_get_face_corner(), displacement_get_grid_and_coord(), blender::mask_get_grid_and_coord(), blender::multires_reshape_ptex_coord_to_grid(), rotate_quad_to_corner(), and rotate_quad_to_corner().
| BLI_INLINE float2 blender::bke::subdiv::rotate_quad_to_corner | ( | int | corner, |
| const float2 & | quad ) |
Definition at line 78 of file subdiv_inline.hh.
References blender::BLI_assert(), BLI_INLINE, and rotate_quad_to_corner().
| bool blender::bke::subdiv::settings_equal | ( | const Settings * | settings_a, |
| const Settings * | settings_b ) |
Definition at line 85 of file subdiv.cc.
References blender::bke::subdiv::Settings::fvar_linear_interpolation, blender::bke::subdiv::Settings::is_adaptive, blender::bke::subdiv::Settings::is_simple, blender::bke::subdiv::Settings::level, settings_equal(), and blender::bke::subdiv::Settings::vtx_boundary_interpolation.
Referenced by settings_equal(), and update_from_converter().
|
static |
Definition at line 163 of file subdiv_deform.cc.
References blender::bke::subdiv::SubdivDeformContext::have_displacement, setup_foreach_callbacks(), subdiv_mesh_topology_info(), subdiv_mesh_vert_corner(), subdiv_mesh_vert_every_corner(), blender::bke::subdiv::ForeachContext::topology_info, blender::bke::subdiv::ForeachContext::vert_corner, and blender::bke::subdiv::ForeachContext::vert_every_corner.
Referenced by deform_coarse_vertices(), setup_foreach_callbacks(), setup_foreach_callbacks(), and subdiv_to_mesh().
|
static |
Definition at line 1430 of file subdiv_mesh.cc.
References blender::bke::subdiv::ForeachContext::edge, blender::bke::subdiv::ForeachContext::faces, blender::bke::subdiv::SubdivMeshContext::have_displacement, blender::bke::subdiv::ForeachContext::loop, setup_foreach_callbacks(), subdiv_mesh_edge(), subdiv_mesh_face(), subdiv_mesh_loop(), subdiv_mesh_tls_free(), subdiv_mesh_topology_info(), subdiv_mesh_vert_corner(), subdiv_mesh_vert_displacement_every_corner(), subdiv_mesh_vert_displacement_every_edge(), subdiv_mesh_vert_edge(), subdiv_mesh_vert_inner(), subdiv_mesh_vert_loose(), subdiv_mesh_vert_of_loose_edge(), blender::bke::subdiv::ForeachContext::topology_info, blender::bke::subdiv::ForeachContext::user_data_tls_free, blender::bke::subdiv::ForeachContext::vert_corner, blender::bke::subdiv::ForeachContext::vert_edge, blender::bke::subdiv::ForeachContext::vert_every_corner, blender::bke::subdiv::ForeachContext::vert_every_edge, blender::bke::subdiv::ForeachContext::vert_inner, blender::bke::subdiv::ForeachContext::vert_loose, and blender::bke::subdiv::ForeachContext::vert_of_loose_edge.
| BLI_INLINE float blender::bke::subdiv::sharpness_to_crease | ( | float | sharpness | ) |
Definition at line 121 of file subdiv_inline.hh.
References BLI_INLINE, sharpness_to_crease(), and blender::sqrt().
Referenced by blender::io::alembic::read_edge_creases(), blender::io::alembic::read_vertex_creases(), and sharpness_to_crease().
|
static |
Definition at line 96 of file subdiv_converter_mesh.cc.
References specifies_full_topology().
Referenced by init_functions(), and specifies_full_topology().
| void blender::bke::subdiv::stats_begin | ( | SubdivStats * | stats, |
| StatsValue | value ) |
Definition at line 29 of file subdiv_stats.cc.
References blender::bke::subdiv::SubdivStats::begin_timestamp_, blender::BLI_time_now_seconds(), and stats_begin().
Referenced by blender::BKE_subdiv_to_ccg(), blender::BKE_subdiv_to_ccg_mesh(), deform_coarse_vertices(), eval_begin(), eval_refine_from_mesh(), new_from_converter(), stats_begin(), subdiv_to_mesh(), and update_from_converter().
| void blender::bke::subdiv::stats_end | ( | SubdivStats * | stats, |
| StatsValue | value ) |
Definition at line 34 of file subdiv_stats.cc.
References blender::bke::subdiv::SubdivStats::begin_timestamp_, blender::BLI_time_now_seconds(), and stats_end().
Referenced by blender::BKE_subdiv_to_ccg(), blender::BKE_subdiv_to_ccg_mesh(), deform_coarse_vertices(), eval_begin(), eval_refine_from_mesh(), new_from_converter(), stats_end(), subdiv_to_mesh(), and update_from_converter().
| void blender::bke::subdiv::stats_init | ( | SubdivStats * | stats | ) |
Definition at line 17 of file subdiv_stats.cc.
References stats_init().
Referenced by new_from_converter(), and stats_init().
| void blender::bke::subdiv::stats_print | ( | const SubdivStats * | stats | ) |
Definition at line 44 of file subdiv_stats.cc.
References blender::gpu::shader::metadata::printf, stats_print(), and STATS_PRINT_TIME.
Referenced by stats_print().
| void blender::bke::subdiv::stats_reset | ( | SubdivStats * | stats, |
| StatsValue | value ) |
Definition at line 39 of file subdiv_stats.cc.
References stats_reset().
Referenced by eval_begin(), and stats_reset().
|
static |
Definition at line 68 of file subdiv_deform.cc.
References blender::bke::subdiv::SubdivDeformContext::accumulated_counters, blender::add_v3_v3(), blender::copy_v3_v3(), blender::D(), eval_displacement(), eval_limit_point_and_derivatives(), blender::bke::subdiv::SubdivDeformContext::have_displacement, blender::bke::subdiv::SubdivDeformContext::subdiv, subdiv_accumulate_vert_displacement(), blender::v, and blender::bke::subdiv::SubdivDeformContext::vert_positions.
Referenced by subdiv_accumulate_vert_displacement(), subdiv_accumulate_vert_displacement(), subdiv_mesh_vert_displacement_every_corner_or_edge(), and subdiv_mesh_vert_every_corner().
|
static |
Definition at line 743 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshContext::accumulated_counters, blender::D(), eval_displacement(), eval_limit_point_and_derivatives(), blender::bke::subdiv::SubdivMeshContext::subdiv, subdiv_accumulate_vert_displacement(), blender::bke::subdiv::SubdivMeshContext::subdiv_positions, and blender::v.
|
static |
Definition at line 1140 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshContext::coarse_edge_attr_spans, blender::bke::subdiv::SubdivMeshContext::coarse_edge_attrs, blender::bke::subdiv::SubdivMeshContext::coarse_edge_origindex, copy_attrs(), blender::CPPType::copy_construct(), blender::CPPType::default_value(), ORIGINDEX_NONE, blender::bke::subdiv::SubdivMeshContext::settings, subdiv_copy_edge_data(), blender::bke::subdiv::SubdivMeshContext::subdiv_display_edges, blender::bke::subdiv::SubdivMeshContext::subdiv_edge_attr_spans, blender::bke::subdiv::SubdivMeshContext::subdiv_edge_origindex, and blender::bke::subdiv::ToMeshSettings::use_optimal_display.
Referenced by subdiv_copy_edge_data(), and subdiv_mesh_edge().
|
static |
Definition at line 1213 of file subdiv_mesh.cc.
References eval_face_varying(), blender::bke::subdiv::SubdivMeshContext::subdiv, subdiv_eval_uv_layer(), blender::bke::subdiv::SubdivMeshContext::uv_maps, and blender::v.
Referenced by subdiv_eval_uv_layer(), and subdiv_mesh_loop().
|
static |
Definition at line 941 of file subdiv_foreach.cc.
References BLI_BITMAP_TEST_BOOL, blender::bke::subdiv::ForeachTaskContext::coarse_edges, blender::bke::subdiv::ForeachTaskContext::coarse_edges_used_map, blender::bke::subdiv::ForeachContext::edge, blender::bke::subdiv::ForeachTaskContext::edge_boundary_offset, blender::bke::subdiv::ForeachTaskContext::foreach_context, blender::bke::subdiv::ToMeshSettings::resolution, blender::bke::subdiv::ForeachTaskContext::settings, subdiv_foreach_boundary_edges(), blender::v2, blender::bke::subdiv::ForeachTaskContext::vertices_corner_offset, and blender::bke::subdiv::ForeachTaskContext::vertices_edge_offset.
Referenced by subdiv_foreach_boundary_edges(), and subdiv_foreach_boundary_edges_task().
|
static |
Definition at line 1734 of file subdiv_foreach.cc.
References subdiv_foreach_boundary_edges(), and subdiv_foreach_boundary_edges_task().
Referenced by foreach_subdiv_geometry(), and subdiv_foreach_boundary_edges_task().
|
static |
Definition at line 351 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::coarse_faces, subdiv_foreach_corner_vertices(), subdiv_foreach_corner_vertices_regular(), and subdiv_foreach_corner_vertices_special().
Referenced by subdiv_foreach_corner_vertices(), and subdiv_foreach_single_geometry_vertices().
|
static |
Definition at line 307 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::foreach_context, subdiv_foreach_corner_vertices_regular(), subdiv_foreach_corner_vertices_regular_do(), and blender::bke::subdiv::ForeachContext::vert_corner.
Referenced by subdiv_foreach_corner_vertices(), and subdiv_foreach_corner_vertices_regular().
|
static |
Definition at line 276 of file subdiv_foreach.cc.
References BLI_BITMAP_TEST_AND_SET_ATOMIC, blender::bke::subdiv::ForeachTaskContext::coarse_corner_verts, blender::bke::subdiv::ForeachTaskContext::coarse_faces, blender::bke::subdiv::ForeachTaskContext::coarse_vertices_used_map, blender::bke::subdiv::ForeachTaskContext::face_ptex_offset, blender::bke::subdiv::ForeachTaskContext::foreach_context, blender::IndexRange::size(), subdiv_foreach_corner_vertices_regular_do(), blender::v, and blender::bke::subdiv::ForeachTaskContext::vertices_corner_offset.
Referenced by subdiv_foreach_corner_vertices_regular(), subdiv_foreach_corner_vertices_regular_do(), and subdiv_foreach_every_corner_vertices_regular().
|
static |
Definition at line 343 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::foreach_context, subdiv_foreach_corner_vertices_special(), subdiv_foreach_corner_vertices_special_do(), and blender::bke::subdiv::ForeachContext::vert_corner.
Referenced by subdiv_foreach_corner_vertices(), and subdiv_foreach_corner_vertices_special().
|
static |
Definition at line 315 of file subdiv_foreach.cc.
References BLI_BITMAP_TEST_AND_SET_ATOMIC, blender::bke::subdiv::ForeachTaskContext::coarse_corner_verts, blender::bke::subdiv::ForeachTaskContext::coarse_faces, blender::bke::subdiv::ForeachTaskContext::coarse_vertices_used_map, blender::bke::subdiv::ForeachTaskContext::face_ptex_offset, blender::bke::subdiv::ForeachTaskContext::foreach_context, blender::IndexRange::size(), subdiv_foreach_corner_vertices_special_do(), and blender::bke::subdiv::ForeachTaskContext::vertices_corner_offset.
Referenced by subdiv_foreach_corner_vertices_special(), subdiv_foreach_corner_vertices_special_do(), and subdiv_foreach_every_corner_vertices_special().
|
static |
Definition at line 147 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::coarse_faces, blender::bke::subdiv::ForeachTaskContext::coarse_mesh, blender::Mesh::edges_num, blender::Mesh::faces_num, num_edges_per_ptex_face_get(), num_faces_per_ptex_get(), num_inner_edges_per_ptex_face_get(), num_ptex_faces_per_face_get(), blender::bke::subdiv::ForeachTaskContext::num_subdiv_edges, blender::bke::subdiv::ForeachTaskContext::num_subdiv_faces, blender::bke::subdiv::ForeachTaskContext::num_subdiv_loops, blender::bke::subdiv::ForeachTaskContext::num_subdiv_vertices, blender::bke::subdiv::ToMeshSettings::resolution, blender::bke::subdiv::ForeachTaskContext::settings, blender::IndexRange::size(), subdiv_foreach_ctx_count(), and blender::Mesh::verts_num.
Referenced by subdiv_foreach_ctx_count(), and subdiv_foreach_ctx_init().
|
static |
Definition at line 262 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::coarse_edges_used_map, blender::bke::subdiv::ForeachTaskContext::coarse_vertices_used_map, and subdiv_foreach_ctx_free().
Referenced by foreach_subdiv_geometry(), and subdiv_foreach_ctx_free().
|
static |
Definition at line 245 of file subdiv_foreach.cc.
References BLI_BITMAP_NEW, blender::bke::subdiv::ForeachTaskContext::coarse_edges_used_map, blender::bke::subdiv::ForeachTaskContext::coarse_mesh, blender::bke::subdiv::ForeachTaskContext::coarse_vertices_used_map, blender::Mesh::edges_num, blender::bke::subdiv::ForeachTaskContext::face_ptex_offset, face_ptex_offset_get(), blender::Mesh::faces_num, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::bke::subdiv::ForeachTaskContext::subdiv_edge_offset, blender::bke::subdiv::ForeachTaskContext::subdiv_face_offset, subdiv_foreach_ctx_count(), subdiv_foreach_ctx_init(), subdiv_foreach_ctx_init_offsets(), blender::bke::subdiv::ForeachTaskContext::subdiv_vert_offset, and blender::Mesh::verts_num.
Referenced by foreach_subdiv_geometry(), and subdiv_foreach_ctx_init().
|
static |
Definition at line 196 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::coarse_faces, blender::bke::subdiv::ForeachTaskContext::coarse_mesh, blender::bke::subdiv::ForeachTaskContext::edge_boundary_offset, blender::bke::subdiv::ForeachTaskContext::edge_inner_offset, blender::Mesh::edges_num, blender::Mesh::faces_num, blender::Array< T, InlineBufferCapacity, Allocator >::last(), num_edges_per_ptex_face_get(), num_faces_per_ptex_get(), num_inner_edges_per_ptex_face_get(), num_ptex_faces_per_face_get(), blender::bke::subdiv::ToMeshSettings::resolution, blender::bke::subdiv::ForeachTaskContext::settings, blender::IndexRange::size(), blender::bke::subdiv::ForeachTaskContext::subdiv_edge_offset, blender::bke::subdiv::ForeachTaskContext::subdiv_face_offset, subdiv_foreach_ctx_init_offsets(), blender::bke::subdiv::ForeachTaskContext::subdiv_vert_offset, blender::bke::subdiv::ForeachTaskContext::vertices_corner_offset, blender::bke::subdiv::ForeachTaskContext::vertices_edge_offset, blender::bke::subdiv::ForeachTaskContext::vertices_inner_offset, and blender::Mesh::verts_num.
Referenced by subdiv_foreach_ctx_init(), and subdiv_foreach_ctx_init_offsets().
|
static |
Definition at line 532 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::coarse_faces, subdiv_foreach_edge_vertices(), subdiv_foreach_edge_vertices_regular(), and subdiv_foreach_edge_vertices_special().
Referenced by subdiv_foreach_edge_vertices(), and subdiv_foreach_single_geometry_vertices().
|
static |
Definition at line 453 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::foreach_context, subdiv_foreach_edge_vertices_regular(), subdiv_foreach_edge_vertices_regular_do(), and blender::bke::subdiv::ForeachContext::vert_edge.
Referenced by subdiv_foreach_edge_vertices(), and subdiv_foreach_edge_vertices_regular().
|
static |
Definition at line 397 of file subdiv_foreach.cc.
References BLI_BITMAP_TEST_AND_SET_ATOMIC, blender::bke::subdiv::ForeachTaskContext::coarse_corner_edges, blender::bke::subdiv::ForeachTaskContext::coarse_corner_verts, blender::bke::subdiv::ForeachTaskContext::coarse_edges, blender::bke::subdiv::ForeachTaskContext::coarse_edges_used_map, blender::bke::subdiv::ForeachTaskContext::coarse_faces, blender::bke::subdiv::ForeachTaskContext::face_ptex_offset, float, blender::bke::subdiv::ForeachTaskContext::foreach_context, blender::bke::subdiv::ToMeshSettings::resolution, blender::bke::subdiv::ForeachTaskContext::settings, blender::IndexRange::size(), subdiv_foreach_edge_vertices_regular_do(), blender::v, and blender::bke::subdiv::ForeachTaskContext::vertices_edge_offset.
Referenced by subdiv_foreach_edge_vertices_regular(), subdiv_foreach_edge_vertices_regular_do(), and subdiv_foreach_every_edge_vertices_regular().
|
static |
Definition at line 524 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::foreach_context, subdiv_foreach_edge_vertices_special(), subdiv_foreach_edge_vertices_special_do(), and blender::bke::subdiv::ForeachContext::vert_edge.
Referenced by subdiv_foreach_edge_vertices(), and subdiv_foreach_edge_vertices_special().
|
static |
Definition at line 461 of file subdiv_foreach.cc.
References BLI_BITMAP_TEST_AND_SET_ATOMIC, blender::bke::subdiv::ForeachTaskContext::coarse_corner_edges, blender::bke::subdiv::ForeachTaskContext::coarse_corner_verts, blender::bke::subdiv::ForeachTaskContext::coarse_edges, blender::bke::subdiv::ForeachTaskContext::coarse_edges_used_map, blender::bke::subdiv::ForeachTaskContext::coarse_faces, blender::bke::subdiv::ForeachTaskContext::face_ptex_offset, float, blender::bke::subdiv::ForeachTaskContext::foreach_context, blender::bke::subdiv::ToMeshSettings::resolution, blender::bke::subdiv::ForeachTaskContext::settings, blender::IndexRange::size(), subdiv_foreach_edge_vertices_special_do(), blender::v, and blender::bke::subdiv::ForeachTaskContext::vertices_edge_offset.
Referenced by subdiv_foreach_edge_vertices_special(), subdiv_foreach_edge_vertices_special_do(), and subdiv_foreach_every_edge_vertices_special().
|
static |
Definition at line 936 of file subdiv_foreach.cc.
References subdiv_foreach_edges(), and subdiv_foreach_edges_all_patches().
Referenced by subdiv_foreach_edges(), and subdiv_foreach_task().
|
static |
Definition at line 924 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::coarse_faces, subdiv_foreach_edges_all_patches(), subdiv_foreach_edges_all_patches_regular(), and subdiv_foreach_edges_all_patches_special().
Referenced by subdiv_foreach_edges(), and subdiv_foreach_edges_all_patches().
|
static |
Definition at line 733 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::coarse_corner_edges, blender::bke::subdiv::ForeachTaskContext::coarse_corner_verts, blender::bke::subdiv::ForeachTaskContext::coarse_edges, blender::bke::subdiv::ForeachTaskContext::coarse_faces, blender::bke::subdiv::ForeachContext::edge, blender::bke::subdiv::ForeachTaskContext::edge_inner_offset, blender::bke::subdiv::ForeachTaskContext::foreach_context, ORIGINDEX_NONE, blender::bke::subdiv::ToMeshSettings::resolution, blender::bke::subdiv::ForeachTaskContext::settings, blender::IndexRange::size(), blender::bke::subdiv::ForeachTaskContext::subdiv_edge_offset, subdiv_foreach_edges_all_patches_regular(), subdiv_foreach_edges_column(), subdiv_foreach_edges_row(), blender::bke::subdiv::ForeachTaskContext::subdiv_vert_offset, blender::v2, blender::bke::subdiv::ForeachTaskContext::vertices_edge_offset, and blender::bke::subdiv::ForeachTaskContext::vertices_inner_offset.
Referenced by subdiv_foreach_edges_all_patches(), and subdiv_foreach_edges_all_patches_regular().
|
static |
Definition at line 811 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::coarse_corner_edges, blender::bke::subdiv::ForeachTaskContext::coarse_corner_verts, blender::bke::subdiv::ForeachTaskContext::coarse_edges, blender::bke::subdiv::ForeachTaskContext::coarse_faces, blender::bke::subdiv::ForeachContext::edge, blender::bke::subdiv::ForeachTaskContext::edge_inner_offset, blender::bke::subdiv::ForeachTaskContext::foreach_context, ORIGINDEX_NONE, ptex_face_resolution_get(), blender::bke::subdiv::ToMeshSettings::resolution, blender::bke::subdiv::ForeachTaskContext::settings, blender::IndexRange::size(), blender::bke::subdiv::ForeachTaskContext::subdiv_edge_offset, subdiv_foreach_edges_all_patches_special(), subdiv_foreach_edges_column(), subdiv_foreach_edges_row(), blender::bke::subdiv::ForeachTaskContext::subdiv_vert_offset, blender::v2, blender::bke::subdiv::ForeachTaskContext::vertices_edge_offset, and blender::bke::subdiv::ForeachTaskContext::vertices_inner_offset.
Referenced by subdiv_foreach_edges_all_patches(), and subdiv_foreach_edges_all_patches_special().
|
static |
Definition at line 688 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachContext::edge, blender::bke::subdiv::ForeachTaskContext::foreach_context, ORIGINDEX_NONE, subdiv_foreach_edges_column(), and blender::v2.
Referenced by subdiv_foreach_edges_all_patches_regular(), subdiv_foreach_edges_all_patches_special(), and subdiv_foreach_edges_column().
|
static |
Definition at line 668 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachContext::edge, blender::bke::subdiv::ForeachTaskContext::foreach_context, subdiv_foreach_edges_row(), and blender::v2.
Referenced by subdiv_foreach_edges_all_patches_regular(), subdiv_foreach_edges_all_patches_special(), and subdiv_foreach_edges_row().
|
static |
Definition at line 379 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::coarse_faces, blender::bke::subdiv::ForeachTaskContext::coarse_mesh, blender::Mesh::faces_num, blender::bke::subdiv::ForeachTaskContext::foreach_context, subdiv_foreach_every_corner_vertices(), subdiv_foreach_every_corner_vertices_regular(), subdiv_foreach_every_corner_vertices_special(), and blender::bke::subdiv::ForeachContext::vert_every_corner.
Referenced by subdiv_foreach_every_corner_vertices(), and subdiv_foreach_single_thread_tasks().
|
static |
Definition at line 363 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::foreach_context, subdiv_foreach_corner_vertices_regular_do(), subdiv_foreach_every_corner_vertices_regular(), and blender::bke::subdiv::ForeachContext::vert_every_corner.
Referenced by subdiv_foreach_every_corner_vertices(), and subdiv_foreach_every_corner_vertices_regular().
|
static |
Definition at line 371 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::foreach_context, subdiv_foreach_corner_vertices_special_do(), subdiv_foreach_every_corner_vertices_special(), and blender::bke::subdiv::ForeachContext::vert_every_corner.
Referenced by subdiv_foreach_every_corner_vertices(), and subdiv_foreach_every_corner_vertices_special().
|
static |
Definition at line 560 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::coarse_faces, blender::bke::subdiv::ForeachTaskContext::coarse_mesh, blender::Mesh::faces_num, blender::bke::subdiv::ForeachTaskContext::foreach_context, subdiv_foreach_every_edge_vertices(), subdiv_foreach_every_edge_vertices_regular(), subdiv_foreach_every_edge_vertices_special(), and blender::bke::subdiv::ForeachContext::vert_every_edge.
Referenced by subdiv_foreach_every_edge_vertices(), and subdiv_foreach_single_thread_tasks().
|
static |
Definition at line 544 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::foreach_context, subdiv_foreach_edge_vertices_regular_do(), subdiv_foreach_every_edge_vertices_regular(), and blender::bke::subdiv::ForeachContext::vert_every_edge.
Referenced by subdiv_foreach_every_edge_vertices(), and subdiv_foreach_every_edge_vertices_regular().
|
static |
Definition at line 552 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::foreach_context, subdiv_foreach_edge_vertices_special_do(), subdiv_foreach_every_edge_vertices_special(), and blender::bke::subdiv::ForeachContext::vert_every_edge.
Referenced by subdiv_foreach_every_edge_vertices(), and subdiv_foreach_every_edge_vertices_special().
|
static |
Definition at line 1742 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::foreach_context, subdiv_foreach_free(), and blender::bke::subdiv::ForeachContext::user_data_tls_free.
Referenced by foreach_subdiv_geometry(), and subdiv_foreach_free().
|
static |
Definition at line 641 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::coarse_faces, subdiv_foreach_inner_vertices(), subdiv_foreach_inner_vertices_regular(), and subdiv_foreach_inner_vertices_special().
Referenced by subdiv_foreach_inner_vertices(), and subdiv_foreach_vertices().
|
static |
Definition at line 578 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::face_ptex_offset, float, blender::bke::subdiv::ForeachTaskContext::foreach_context, blender::bke::subdiv::ToMeshSettings::resolution, blender::bke::subdiv::ForeachTaskContext::settings, subdiv_foreach_inner_vertices_regular(), blender::bke::subdiv::ForeachTaskContext::subdiv_vert_offset, blender::v, blender::bke::subdiv::ForeachContext::vert_inner, blender::bke::subdiv::ForeachTaskContext::vertices_inner_offset, blender::x, and y.
Referenced by subdiv_foreach_inner_vertices(), and subdiv_foreach_inner_vertices_regular().
|
static |
Definition at line 603 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::coarse_faces, blender::bke::subdiv::ForeachTaskContext::face_ptex_offset, float, blender::bke::subdiv::ForeachTaskContext::foreach_context, ptex_face_resolution_get(), blender::bke::subdiv::ToMeshSettings::resolution, blender::bke::subdiv::ForeachTaskContext::settings, blender::IndexRange::size(), subdiv_foreach_inner_vertices_special(), blender::bke::subdiv::ForeachTaskContext::subdiv_vert_offset, blender::v, blender::bke::subdiv::ForeachContext::vert_inner, blender::bke::subdiv::ForeachTaskContext::vertices_inner_offset, blender::x, and y.
Referenced by subdiv_foreach_inner_vertices(), and subdiv_foreach_inner_vertices_special().
|
static |
Definition at line 1598 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::coarse_faces, subdiv_foreach_loops(), subdiv_foreach_loops_regular(), and subdiv_foreach_loops_special().
Referenced by subdiv_foreach_loops(), and subdiv_foreach_task().
|
static |
Definition at line 1051 of file subdiv_foreach.cc.
References subdiv_foreach_loops_corner_index(), and blender::v.
Referenced by subdiv_foreach_loops_corner_index(), and subdiv_foreach_loops_regular().
|
static |
Definition at line 983 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::foreach_context, blender::bke::subdiv::ForeachContext::loop, ORIGINDEX_NONE, rotate_indices(), subdiv_foreach_loops_of_face(), blender::v, and blender::v2.
Referenced by subdiv_foreach_loops_of_face(), subdiv_foreach_loops_regular(), and subdiv_foreach_loops_special().
|
static |
Definition at line 1068 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::coarse_corner_edges, blender::bke::subdiv::ForeachTaskContext::coarse_corner_verts, blender::bke::subdiv::ForeachTaskContext::coarse_edges, blender::bke::subdiv::ForeachTaskContext::coarse_faces, blender::bke::subdiv::ForeachTaskContext::edge_boundary_offset, blender::bke::subdiv::ForeachTaskContext::edge_inner_offset, blender::bke::subdiv::ForeachTaskContext::face_ptex_offset, float, num_edges_per_ptex_face_get(), ptex_face_resolution_get(), blender::bke::subdiv::ToMeshSettings::resolution, blender::bke::subdiv::ForeachTaskContext::settings, blender::IndexRange::size(), blender::bke::subdiv::ForeachTaskContext::subdiv_edge_offset, blender::bke::subdiv::ForeachTaskContext::subdiv_face_offset, subdiv_foreach_loops_corner_index(), subdiv_foreach_loops_of_face(), subdiv_foreach_loops_regular(), blender::bke::subdiv::ForeachTaskContext::subdiv_vert_offset, blender::v, blender::v2, blender::bke::subdiv::ForeachTaskContext::vertices_corner_offset, blender::bke::subdiv::ForeachTaskContext::vertices_edge_offset, blender::bke::subdiv::ForeachTaskContext::vertices_inner_offset, blender::x, and y.
Referenced by subdiv_foreach_loops(), and subdiv_foreach_loops_regular().
|
static |
Definition at line 1262 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::coarse_corner_edges, blender::bke::subdiv::ForeachTaskContext::coarse_corner_verts, blender::bke::subdiv::ForeachTaskContext::coarse_edges, blender::bke::subdiv::ForeachTaskContext::coarse_faces, blender::bke::subdiv::ForeachTaskContext::edge_boundary_offset, blender::bke::subdiv::ForeachTaskContext::edge_inner_offset, blender::bke::subdiv::ForeachTaskContext::face_ptex_offset, float, num_inner_edges_per_ptex_face_get(), ptex_face_resolution_get(), blender::bke::subdiv::ToMeshSettings::resolution, blender::bke::subdiv::ForeachTaskContext::settings, blender::IndexRange::size(), blender::bke::subdiv::ForeachTaskContext::subdiv_edge_offset, blender::bke::subdiv::ForeachTaskContext::subdiv_face_offset, subdiv_foreach_loops_of_face(), subdiv_foreach_loops_special(), blender::bke::subdiv::ForeachTaskContext::subdiv_vert_offset, blender::v, blender::v2, blender::bke::subdiv::ForeachTaskContext::vertices_corner_offset, blender::bke::subdiv::ForeachTaskContext::vertices_edge_offset, blender::bke::subdiv::ForeachTaskContext::vertices_inner_offset, blender::x, and y.
Referenced by subdiv_foreach_loops(), and subdiv_foreach_loops_special().
|
static |
Definition at line 1614 of file subdiv_foreach.cc.
References BLI_BITMAP_TEST_BOOL, blender::bke::subdiv::ForeachTaskContext::coarse_vertices_used_map, blender::bke::subdiv::ForeachTaskContext::foreach_context, subdiv_foreach_loose_vertices_task(), blender::bke::subdiv::ForeachContext::vert_loose, and blender::bke::subdiv::ForeachTaskContext::vertices_corner_offset.
Referenced by foreach_subdiv_geometry(), and subdiv_foreach_loose_vertices_task().
|
static |
Definition at line 1684 of file subdiv_foreach.cc.
References BLI_BITMAP_ENABLE, blender::bke::subdiv::ForeachTaskContext::coarse_corner_edges, blender::bke::subdiv::ForeachTaskContext::coarse_corner_verts, blender::bke::subdiv::ForeachTaskContext::coarse_edges_used_map, blender::bke::subdiv::ForeachTaskContext::coarse_faces, blender::bke::subdiv::ForeachTaskContext::coarse_vertices_used_map, and subdiv_foreach_mark_non_loose_geometry().
Referenced by subdiv_foreach_mark_non_loose_geometry(), and subdiv_foreach_single_thread_tasks().
|
static |
Definition at line 1672 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::coarse_mesh, blender::Mesh::faces_num, blender::bke::subdiv::ForeachTaskContext::foreach_context, subdiv_foreach_corner_vertices(), subdiv_foreach_edge_vertices(), subdiv_foreach_single_geometry_vertices(), and blender::bke::subdiv::ForeachContext::vert_corner.
Referenced by subdiv_foreach_single_geometry_vertices(), and subdiv_foreach_single_thread_tasks().
|
static |
Definition at line 1694 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::foreach_context, subdiv_foreach_every_corner_vertices(), subdiv_foreach_every_edge_vertices(), subdiv_foreach_mark_non_loose_geometry(), subdiv_foreach_single_geometry_vertices(), subdiv_foreach_single_thread_tasks(), subdiv_foreach_tls_alloc(), subdiv_foreach_tls_free(), blender::bke::subdiv::ForeachContext::vert_every_corner, blender::bke::subdiv::ForeachContext::vert_every_edge, blender::bke::subdiv::ForeachContext::vert_loose, and blender::bke::subdiv::ForeachContext::vert_of_loose_edge.
Referenced by foreach_subdiv_geometry(), and subdiv_foreach_single_thread_tasks().
|
static |
Definition at line 1718 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachContext::edge, blender::bke::subdiv::ForeachTaskContext::foreach_context, blender::bke::subdiv::ForeachContext::loop, subdiv_foreach_edges(), subdiv_foreach_loops(), subdiv_foreach_task(), and subdiv_foreach_vertices().
Referenced by foreach_subdiv_geometry(), and subdiv_foreach_task().
|
static |
Definition at line 118 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::foreach_context, blender::MEM_new_uninitialized(), subdiv_foreach_tls_alloc(), blender::bke::subdiv::ForeachContext::user_data_tls, and blender::bke::subdiv::ForeachContext::user_data_tls_size.
Referenced by subdiv_foreach_single_thread_tasks(), and subdiv_foreach_tls_alloc().
|
static |
Definition at line 129 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::foreach_context, blender::MEM_delete_void(), subdiv_foreach_tls_free(), and blender::bke::subdiv::ForeachContext::user_data_tls_free.
Referenced by subdiv_foreach_single_thread_tasks(), and subdiv_foreach_tls_free().
|
static |
Definition at line 654 of file subdiv_foreach.cc.
References blender::bke::subdiv::ForeachTaskContext::foreach_context, subdiv_foreach_inner_vertices(), subdiv_foreach_vertices(), and blender::bke::subdiv::ForeachContext::vert_inner.
Referenced by subdiv_foreach_task(), and subdiv_foreach_vertices().
|
static |
Definition at line 1628 of file subdiv_foreach.cc.
References BLI_BITMAP_TEST_BOOL, blender::bke::subdiv::ForeachTaskContext::coarse_edges, blender::bke::subdiv::ForeachTaskContext::coarse_edges_used_map, float, blender::bke::subdiv::ForeachTaskContext::foreach_context, blender::bke::subdiv::ToMeshSettings::resolution, blender::bke::subdiv::ForeachTaskContext::settings, subdiv_foreach_vertices_of_loose_edges_task(), blender::bke::subdiv::ForeachContext::vert_of_loose_edge, blender::bke::subdiv::ForeachTaskContext::vertices_corner_offset, and blender::bke::subdiv::ForeachTaskContext::vertices_edge_offset.
Referenced by foreach_subdiv_geometry(), and subdiv_foreach_vertices_of_loose_edges_task().
|
static |
Definition at line 1187 of file subdiv_mesh.cc.
References blender::bke::subdiv::LoopsForInterpolation::CD_NORMAL_data, blender::bke::subdiv::LoopsForInterpolation::CD_ORIGSPACE_MLOOP_data, blender::bke::subdiv::SubdivMeshContext::coarse_CD_NORMAL, blender::bke::subdiv::SubdivMeshContext::coarse_CD_ORIGSPACE_MLOOP, blender::bke::subdiv::LoopsForInterpolation::corner_data, blender::bke::subdiv::LoopsForInterpolation::loop_indices, blender::bke::attribute_math::mix4(), mix_attrs(), mix_normals(), quad_weights_from_uv(), blender::bke::subdiv::SubdivMeshContext::subdiv_CD_NORMAL, blender::bke::subdiv::SubdivMeshContext::subdiv_CD_ORIGSPACE_MLOOP, blender::bke::subdiv::SubdivMeshContext::subdiv_corner_attr_spans, subdiv_interpolate_corner_data(), and blender::v.
Referenced by subdiv_interpolate_corner_data(), and subdiv_mesh_loop().
|
static |
Definition at line 57 of file subdiv_deform.cc.
References blender::bke::subdiv::SubdivDeformContext::accumulated_counters, and subdiv_mesh_context_free().
Referenced by deform_coarse_vertices(), subdiv_mesh_context_free(), subdiv_mesh_context_free(), and subdiv_to_mesh().
|
static |
Definition at line 226 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshContext::accumulated_counters, and subdiv_mesh_context_free().
|
static |
Definition at line 142 of file subdiv_mesh.cc.
References blender::CD_CLOTH_ORCO, blender::CD_CONSTRUCT, blender::CD_NORMAL, blender::CD_ORCO, blender::CD_ORIGINDEX, blender::CD_ORIGSPACE_MLOOP, blender::bke::subdiv::SubdivMeshContext::cloth_orco, blender::bke::subdiv::SubdivMeshContext::coarse_CD_NORMAL, blender::bke::subdiv::SubdivMeshContext::coarse_CD_ORIGSPACE_MLOOP, blender::bke::subdiv::SubdivMeshContext::coarse_dverts, blender::bke::subdiv::SubdivMeshContext::coarse_edge_origindex, blender::bke::subdiv::SubdivMeshContext::coarse_face_origindex, blender::bke::subdiv::SubdivMeshContext::coarse_mesh, blender::bke::subdiv::SubdivMeshContext::coarse_vert_origindex, blender::Mesh::corner_data, blender::Mesh::corners_num, blender::CustomData_add_layer(), blender::CustomData_get_layer(), blender::CustomData_has_layer(), blender::Mesh::edge_data, blender::Mesh::edges_num, blender::Mesh::face_data, blender::Mesh::faces_num, blender::bke::subdiv::SubdivMeshContext::orco, blender::bke::subdiv::SubdivMeshContext::subdiv_CD_NORMAL, blender::bke::subdiv::SubdivMeshContext::subdiv_CD_ORIGSPACE_MLOOP, blender::bke::subdiv::SubdivMeshContext::subdiv_corner_edges, blender::bke::subdiv::SubdivMeshContext::subdiv_corner_verts, blender::bke::subdiv::SubdivMeshContext::subdiv_dverts, blender::bke::subdiv::SubdivMeshContext::subdiv_edge_origindex, blender::bke::subdiv::SubdivMeshContext::subdiv_edges, blender::bke::subdiv::SubdivMeshContext::subdiv_face_origindex, blender::bke::subdiv::SubdivMeshContext::subdiv_mesh, subdiv_mesh_ctx_cache_custom_data_layers(), subdiv_mesh_ctx_cache_uv_layers(), blender::bke::subdiv::SubdivMeshContext::subdiv_positions, blender::bke::subdiv::SubdivMeshContext::subdiv_vert_origindex, blender::Mesh::vert_data, and blender::Mesh::verts_num.
Referenced by subdiv_mesh_ctx_cache_custom_data_layers(), and subdiv_mesh_topology_info().
|
static |
Definition at line 126 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshContext::coarse_mesh, blender::bke::Corner, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::subdiv::SubdivMeshContext::subdiv_mesh, subdiv_mesh_ctx_cache_uv_layers(), and blender::bke::subdiv::SubdivMeshContext::uv_maps.
Referenced by subdiv_mesh_ctx_cache_custom_data_layers(), and subdiv_mesh_ctx_cache_uv_layers().
|
static |
Definition at line 1167 of file subdiv_mesh.cc.
References subdiv_copy_edge_data(), blender::bke::subdiv::SubdivMeshContext::subdiv_edges, subdiv_mesh_edge(), and blender::bke::subdiv::ForeachContext::user_data.
Referenced by setup_foreach_callbacks(), and subdiv_mesh_edge().
|
static |
Definition at line 1225 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshContext::coarse_faces, blender::bke::subdiv::SubdivMeshTLS::loop_interpolation, blender::bke::subdiv::SubdivMeshTLS::loop_interpolation_coarse_corner, blender::bke::subdiv::SubdivMeshTLS::loop_interpolation_coarse_face_index, loop_interpolation_from_corner(), loop_interpolation_from_face(), and subdiv_mesh_ensure_loop_interpolation().
Referenced by subdiv_mesh_ensure_loop_interpolation(), and subdiv_mesh_loop().
|
static |
Definition at line 1051 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshContext::coarse_faces, subdiv_mesh_ensure_vert_interpolation(), blender::bke::subdiv::SubdivMeshTLS::vert_interpolation, blender::bke::subdiv::SubdivMeshTLS::vert_interpolation_coarse_corner, blender::bke::subdiv::SubdivMeshTLS::vert_interpolation_coarse_face_index, vert_interpolation_from_corner(), and vert_interpolation_from_face().
Referenced by subdiv_mesh_ensure_vert_interpolation(), subdiv_mesh_vert_edge(), and subdiv_mesh_vert_inner().
|
static |
Definition at line 1272 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshContext::coarse_face_origindex, blender::Mesh::faces_num, blender::if(), blender::threading::memory_bandwidth_bound_task(), blender::bke::subdiv::SubdivMeshContext::subdiv_mesh, subdiv_mesh_face(), and blender::bke::subdiv::ForeachContext::user_data.
Referenced by setup_foreach_callbacks(), and subdiv_mesh_face().
|
static |
Definition at line 1088 of file subdiv_mesh.cc.
References blender::IndexRange::size(), subdiv_mesh_is_center_vert(), and blender::v.
Referenced by subdiv_mesh_is_center_vert(), and subdiv_mesh_tag_center_vert().
|
static |
Definition at line 1245 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshTLS::loop_interpolation, blender::bke::subdiv::SubdivMeshContext::subdiv_corner_edges, blender::bke::subdiv::SubdivMeshContext::subdiv_corner_verts, subdiv_eval_uv_layer(), subdiv_interpolate_corner_data(), subdiv_mesh_ensure_loop_interpolation(), subdiv_mesh_loop(), blender::bke::subdiv::ForeachContext::user_data, and blender::v.
Referenced by setup_foreach_callbacks(), and subdiv_mesh_loop().
|
static |
Definition at line 49 of file subdiv_deform.cc.
References blender::bke::subdiv::SubdivDeformContext::accumulated_counters, blender::bke::subdiv::SubdivDeformContext::have_displacement, blender::MEM_new_array_zeroed(), and subdiv_mesh_prepare_accumulator().
Referenced by subdiv_mesh_prepare_accumulator(), subdiv_mesh_prepare_accumulator(), subdiv_mesh_topology_info(), and subdiv_mesh_topology_info().
|
static |
Definition at line 215 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshContext::accumulated_counters, blender::bke::subdiv::SubdivMeshContext::have_displacement, blender::MEM_new_array_zeroed(), subdiv_mesh_prepare_accumulator(), and blender::bke::subdiv::SubdivMeshContext::subdiv_positions.
|
static |
Definition at line 1103 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshContext::subdiv_face_dot_tags, subdiv_mesh_is_center_vert(), subdiv_mesh_tag_center_vert(), and blender::v.
Referenced by subdiv_mesh_tag_center_vert(), and subdiv_mesh_vert_inner().
|
static |
Definition at line 700 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshTLS::loop_interpolation, subdiv_mesh_tls_free(), and blender::bke::subdiv::SubdivMeshTLS::vert_interpolation.
Referenced by setup_foreach_callbacks(), and subdiv_mesh_tls_free().
|
static |
Definition at line 814 of file subdiv_mesh.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::BKE_mesh_copy_parameters_for_eval(), blender::BKE_mesh_new_nomain(), blender::CD_MASK_EVERYTHING, CD_MASK_MULTIRES_GRIDS, blender::bke::subdiv::SubdivMeshContext::coarse_corner_attr_spans, blender::bke::subdiv::SubdivMeshContext::coarse_corner_attrs, blender::bke::subdiv::SubdivMeshContext::coarse_edge_attr_spans, blender::bke::subdiv::SubdivMeshContext::coarse_edge_attrs, blender::bke::subdiv::SubdivMeshContext::coarse_face_attr_spans, blender::bke::subdiv::SubdivMeshContext::coarse_face_attrs, blender::bke::subdiv::SubdivMeshContext::coarse_mesh, blender::bke::subdiv::SubdivMeshContext::coarse_vert_attr_spans, blender::bke::subdiv::SubdivMeshContext::coarse_vert_attrs, blender::bke::Corner, create_attrs_and_retrieve_interp_spans(), blender::bke::Edge, blender::bke::Face, blender::offset_indices::fill_constant_group_size(), blender::bDeformGroup::name, blender::bke::Point, blender::bke::subdiv::SubdivMeshContext::settings, blender::bke::subdiv::SubdivMeshContext::subdiv_corner_attr_spans, blender::bke::subdiv::SubdivMeshContext::subdiv_corner_attrs, blender::bke::subdiv::SubdivMeshContext::subdiv_display_edges, blender::bke::subdiv::SubdivMeshContext::subdiv_edge_attr_spans, blender::bke::subdiv::SubdivMeshContext::subdiv_edge_attrs, blender::bke::subdiv::SubdivMeshContext::subdiv_face_attr_spans, blender::bke::subdiv::SubdivMeshContext::subdiv_face_attrs, blender::bke::subdiv::SubdivMeshContext::subdiv_face_dot_tags, blender::bke::subdiv::SubdivMeshContext::subdiv_mesh, subdiv_mesh_ctx_cache_custom_data_layers(), subdiv_mesh_prepare_accumulator(), subdiv_mesh_topology_info(), blender::bke::subdiv::SubdivMeshContext::subdiv_vert_attr_spans, blender::bke::subdiv::SubdivMeshContext::subdiv_vert_attrs, blender::bke::subdiv::ToMeshSettings::use_optimal_display, blender::bke::subdiv::ForeachContext::user_data, and blender::Mesh::vertex_group_names.
|
static |
Definition at line 101 of file subdiv_deform.cc.
References blender::bke::subdiv::SubdivDeformContext::coarse_mesh, subdiv_mesh_prepare_accumulator(), subdiv_mesh_topology_info(), blender::bke::subdiv::ForeachContext::user_data, and blender::Mesh::verts_num.
Referenced by setup_foreach_callbacks(), setup_foreach_callbacks(), subdiv_mesh_topology_info(), and subdiv_mesh_topology_info().
|
static |
Definition at line 1035 of file subdiv_mesh.cc.
References blender::BLI_assert(), evaluate_vert_and_apply_displacement_copy(), ORIGINDEX_NONE, subdiv_mesh_vert_corner(), blender::bke::subdiv::ForeachContext::user_data, and blender::v.
|
static |
Definition at line 128 of file subdiv_deform.cc.
References blender::bke::subdiv::SubdivDeformContext::accumulated_counters, blender::add_v3_v3(), blender::copy_v3_v3(), blender::D(), eval_limit_point(), blender::bke::subdiv::SubdivDeformContext::have_displacement, blender::mul_v3_fl(), blender::bke::subdiv::SubdivDeformContext::subdiv, subdiv_mesh_vert_corner(), blender::bke::subdiv::ForeachContext::user_data, blender::v, and blender::bke::subdiv::SubdivDeformContext::vert_positions.
Referenced by setup_foreach_callbacks(), setup_foreach_callbacks(), subdiv_mesh_vert_corner(), and subdiv_mesh_vert_corner().
|
static |
Definition at line 1007 of file subdiv_mesh.cc.
References subdiv_mesh_vert_displacement_every_corner(), subdiv_mesh_vert_displacement_every_corner_or_edge(), and blender::v.
Referenced by setup_foreach_callbacks(), and subdiv_mesh_vert_displacement_every_corner().
|
static |
Definition at line 995 of file subdiv_mesh.cc.
References subdiv_accumulate_vert_displacement(), subdiv_mesh_vert_displacement_every_corner_or_edge(), blender::bke::subdiv::ForeachContext::user_data, and blender::v.
Referenced by subdiv_mesh_vert_displacement_every_corner(), subdiv_mesh_vert_displacement_every_corner_or_edge(), and subdiv_mesh_vert_displacement_every_edge().
|
static |
Definition at line 1021 of file subdiv_mesh.cc.
References subdiv_mesh_vert_displacement_every_corner_or_edge(), subdiv_mesh_vert_displacement_every_edge(), and blender::v.
Referenced by setup_foreach_callbacks(), and subdiv_mesh_vert_displacement_every_edge().
|
static |
Definition at line 1071 of file subdiv_mesh.cc.
References evaluate_vert_and_apply_displacement_interpolate(), subdiv_mesh_ensure_vert_interpolation(), subdiv_mesh_vert_edge(), blender::bke::subdiv::ForeachContext::user_data, blender::v, and blender::bke::subdiv::SubdivMeshTLS::vert_interpolation.
Referenced by setup_foreach_callbacks(), and subdiv_mesh_vert_edge().
|
static |
Definition at line 114 of file subdiv_deform.cc.
References subdiv_accumulate_vert_displacement(), subdiv_mesh_vert_every_corner(), blender::bke::subdiv::ForeachContext::user_data, and blender::v.
Referenced by setup_foreach_callbacks(), and subdiv_mesh_vert_every_corner().
|
static |
Definition at line 1114 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshContext::coarse_faces, eval_final_point(), blender::bke::subdiv::SubdivMeshContext::subdiv, subdiv_mesh_ensure_vert_interpolation(), subdiv_mesh_tag_center_vert(), subdiv_mesh_vert_inner(), blender::bke::subdiv::SubdivMeshContext::subdiv_positions, subdiv_vert_data_interpolate(), subdiv_vert_orco_evaluate(), blender::bke::subdiv::ForeachContext::user_data, blender::v, and blender::bke::subdiv::SubdivMeshTLS::vert_interpolation.
Referenced by setup_foreach_callbacks(), and subdiv_mesh_vert_inner().
|
static |
Definition at line 1298 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshContext::coarse_positions, subdiv_mesh_vert_loose(), blender::bke::subdiv::SubdivMeshContext::subdiv_positions, subdiv_vert_data_copy(), and blender::bke::subdiv::ForeachContext::user_data.
Referenced by setup_foreach_callbacks(), and subdiv_mesh_vert_loose().
|
static |
Definition at line 1399 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshContext::coarse_edges, blender::bke::subdiv::SubdivMeshContext::coarse_positions, ELEM, blender::bke::subdiv::Settings::is_simple, mesh_interpolate_position_on_edge(), blender::bke::subdiv::Subdiv::settings, blender::bke::subdiv::SubdivMeshContext::subdiv, subdiv_mesh_vert_of_loose_edge(), subdiv_mesh_vert_of_loose_edge_interpolate(), blender::bke::subdiv::SubdivMeshContext::subdiv_positions, blender::bke::subdiv::ForeachContext::user_data, and blender::bke::subdiv::SubdivMeshContext::vert_to_edge_map.
Referenced by setup_foreach_callbacks(), and subdiv_mesh_vert_of_loose_edge().
|
static |
Definition at line 1375 of file subdiv_mesh.cc.
References blender::BLI_assert(), blender::bke::subdiv::SubdivMeshContext::coarse_dverts, blender::bke::subdiv::SubdivMeshContext::coarse_vert_attr_spans, blender::bke::subdiv::SubdivMeshContext::coarse_vert_origindex, mix_attrs(), blender::bke::mix_deform_verts(), ORIGINDEX_NONE, blender::bke::subdiv::SubdivMeshContext::subdiv_dverts, subdiv_mesh_vert_of_loose_edge_interpolate(), blender::bke::subdiv::SubdivMeshContext::subdiv_vert_attr_spans, and blender::bke::subdiv::SubdivMeshContext::subdiv_vert_origindex.
Referenced by subdiv_mesh_vert_of_loose_edge(), and subdiv_mesh_vert_of_loose_edge_interpolate().
| Mesh * blender::bke::subdiv::subdiv_to_mesh | ( | Subdiv * | subdiv, |
| const ToMeshSettings * | settings, | ||
| const Mesh * | coarse_mesh ) |
Create real hi-res mesh from subdivision, all geometry is "real".
Definition at line 1458 of file subdiv_mesh.cc.
References blender::bke::MeshRuntime::bounds_cache, blender::bke::mesh::build_vert_to_edge_map(), blender::bke::subdiv::SubdivMeshContext::coarse_corner_verts, blender::bke::subdiv::SubdivMeshContext::coarse_edges, blender::bke::subdiv::SubdivMeshContext::coarse_faces, blender::bke::subdiv::SubdivMeshContext::coarse_mesh, blender::bke::subdiv::SubdivMeshContext::coarse_positions, blender::bke::SpanAttributeWriter< T >::domain, eval_begin_from_mesh(), blender::Mesh::faces_num, blender::bke::SpanAttributeWriter< T >::finish(), foreach_subdiv_geometry(), blender::bke::subdiv::SubdivMeshContext::have_displacement, blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::Point, blender::result, blender::Mesh::runtime, blender::bke::subdiv::SubdivMeshContext::settings, setup_foreach_callbacks(), blender::bke::SpanAttributeWriter< T >::span, stats_begin(), stats_end(), blender::bke::subdiv::SubdivMeshContext::subdiv, blender::bke::subdiv::SubdivMeshContext::subdiv_corner_attrs, blender::bke::subdiv::SubdivMeshContext::subdiv_display_edges, blender::bke::subdiv::SubdivMeshContext::subdiv_edge_attrs, SUBDIV_EVALUATOR_TYPE_CPU, blender::bke::subdiv::SubdivMeshContext::subdiv_face_attrs, blender::bke::subdiv::SubdivMeshContext::subdiv_face_dot_tags, blender::bke::subdiv::SubdivMeshContext::subdiv_mesh, subdiv_mesh_context_free(), SUBDIV_STATS_SUBDIV_TO_MESH, SUBDIV_STATS_SUBDIV_TO_MESH_GEOMETRY, subdiv_to_mesh(), blender::bke::subdiv::SubdivMeshContext::subdiv_vert_attrs, blender::bke::subdiv::ForeachContext::user_data, blender::bke::subdiv::ForeachContext::user_data_tls, blender::bke::subdiv::ForeachContext::user_data_tls_size, blender::bke::subdiv::SubdivMeshContext::uv_maps, blender::bke::subdiv::SubdivMeshContext::vert_to_edge_indices, blender::bke::subdiv::SubdivMeshContext::vert_to_edge_map, blender::bke::subdiv::SubdivMeshContext::vert_to_edge_offsets, and blender::Mesh::verts_num.
Referenced by blender::mesh_wrapper_ensure_subdivision(), blender::multires_as_mesh(), blender::subdiv_as_mesh(), subdiv_to_mesh(), and blender::subdivide_edit_mesh().
|
static |
Definition at line 904 of file subdiv_mesh.cc.
References blender::BKE_defvert_array_copy(), blender::bke::subdiv::SubdivMeshContext::coarse_dverts, blender::bke::subdiv::SubdivMeshContext::coarse_vert_attr_spans, blender::bke::subdiv::SubdivMeshContext::coarse_vert_origindex, copy_attrs(), blender::bke::subdiv::SubdivMeshContext::subdiv_dverts, blender::bke::subdiv::SubdivMeshContext::subdiv_vert_attr_spans, subdiv_vert_data_copy(), and blender::bke::subdiv::SubdivMeshContext::subdiv_vert_origindex.
Referenced by evaluate_vert_and_apply_displacement_copy(), subdiv_mesh_vert_loose(), and subdiv_vert_data_copy().
|
static |
Definition at line 921 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshContext::coarse_dverts, blender::bke::subdiv::SubdivMeshContext::coarse_vert_origindex, blender::bke::subdiv::VerticesForInterpolation::dvert_mix_buffer, blender::bke::subdiv::VerticesForInterpolation::dverts_data, mix_attrs(), blender::bke::mix_deform_verts(), ORIGINDEX_NONE, quad_weights_from_uv(), blender::bke::subdiv::SubdivMeshContext::subdiv_dverts, blender::bke::subdiv::SubdivMeshContext::subdiv_vert_attr_spans, subdiv_vert_data_interpolate(), blender::bke::subdiv::SubdivMeshContext::subdiv_vert_origindex, blender::v, blender::bke::subdiv::VerticesForInterpolation::vert_data, and blender::bke::subdiv::VerticesForInterpolation::vert_indices.
Referenced by evaluate_vert_and_apply_displacement_interpolate(), subdiv_mesh_vert_inner(), and subdiv_vert_data_interpolate().
|
static |
Definition at line 715 of file subdiv_mesh.cc.
References blender::bke::subdiv::SubdivMeshContext::cloth_orco, blender::copy_v3_v3(), eval_vert_data(), blender::bke::subdiv::SubdivMeshContext::orco, blender::bke::subdiv::SubdivMeshContext::subdiv, subdiv_vert_orco_evaluate(), and blender::v.
Referenced by evaluate_vert_and_apply_displacement_copy(), evaluate_vert_and_apply_displacement_interpolate(), subdiv_mesh_vert_inner(), and subdiv_vert_orco_evaluate().
| int blender::bke::subdiv::topology_num_fvar_layers_get | ( | const Subdiv * | subdiv | ) |
Definition at line 21 of file subdiv_topology.cc.
References blender::opensubdiv::TopologyRefinerImpl::base_level(), topology_num_fvar_layers_get(), and UNUSED_VARS.
Referenced by topology_num_fvar_layers_get().
|
static |
Definition at line 208 of file subdiv_converter_mesh.cc.
References blender::index_mask::IndexMask::is_empty(), blender::index_mask::IndexMask::to_range(), and unused_is_trailing_range().
Referenced by initialize_manifold_index_map(), and unused_is_trailing_range().
| Subdiv * blender::bke::subdiv::update_from_converter | ( | Subdiv * | subdiv, |
| const Settings * | settings, | ||
| OpenSubdiv_Converter * | converter ) |
Similar to above, but will not re-create descriptor if it was created for the same settings and topology. If settings or topology did change, the existing descriptor is freed and a new one is created from scratch.
Definition at line 147 of file subdiv.cc.
References free(), new_from_converter(), settings_equal(), stats_begin(), stats_end(), SUBDIV_STATS_TOPOLOGY_COMPARE, UNUSED_VARS, and update_from_converter().
Referenced by update_from_converter(), and update_from_mesh().
| Subdiv * blender::bke::subdiv::update_from_mesh | ( | Subdiv * | subdiv, |
| const Settings * | settings, | ||
| const Mesh * | mesh ) |
Definition at line 181 of file subdiv.cc.
References converter_free(), converter_init_for_mesh(), update_from_converter(), and update_from_mesh().
Referenced by blender::BKE_subsurf_modifier_subdiv_descriptor_ensure(), calculate_limit_positions(), blender::shrinkwrap_calc_subdivided_positions(), blender::subdiv_descriptor_ensure(), and update_from_mesh().
|
static |
Definition at line 468 of file subdiv_mesh.cc.
References blender::BKE_defvert_array_copy(), blender::BKE_defvert_array_free_elems(), blender::bke::subdiv::SubdivMeshContext::coarse_corner_verts, blender::bke::subdiv::SubdivMeshContext::coarse_dverts, blender::bke::subdiv::SubdivMeshContext::coarse_vert_attr_spans, copy_attrs(), blender::bke::subdiv::VerticesForInterpolation::dvert_mix_buffer, blender::bke::subdiv::VerticesForInterpolation::dverts_storage, blender::bke::subdiv::LoopsOfPtex::first_loop, blender::bke::subdiv::LoopsOfPtex::last_loop, loops_of_ptex_get(), mix_attrs(), blender::bke::mix_deform_verts(), blender::IndexRange::size(), blender::IndexRange::start(), blender::bke::subdiv::VerticesForInterpolation::storage_spans, and vert_interpolation_from_corner().
Referenced by subdiv_mesh_ensure_vert_interpolation(), and vert_interpolation_from_corner().
|
static |
Definition at line 428 of file subdiv_mesh.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::BKE_defvert_array_free_elems(), blender::bke::subdiv::SubdivMeshContext::coarse_corner_verts, blender::bke::subdiv::SubdivMeshContext::coarse_dverts, blender::bke::subdiv::SubdivMeshContext::coarse_vert_attr_spans, blender::bke::subdiv::VerticesForInterpolation::dvert_mix_buffer, blender::bke::subdiv::VerticesForInterpolation::dverts_data, blender::bke::subdiv::VerticesForInterpolation::dverts_storage, float, mix_attrs(), blender::bke::mix_deform_verts(), blender::IndexRange::size(), blender::IndexRange::start(), blender::bke::subdiv::VerticesForInterpolation::storage_spans, blender::bke::subdiv::VerticesForInterpolation::vert_data, blender::bke::subdiv::VerticesForInterpolation::vert_indices, and vert_interpolation_from_face().
Referenced by subdiv_mesh_ensure_vert_interpolation(), and vert_interpolation_from_face().
| VtxBoundaryInterpolation blender::bke::subdiv::vtx_boundary_interpolation_from_subsurf | ( | int | boundary_smooth | ) |
Definition at line 69 of file subdiv.cc.
References BLI_assert_msg, SUBDIV_VTX_BOUNDARY_EDGE_AND_CORNER, SUBDIV_VTX_BOUNDARY_EDGE_ONLY, blender::SUBSURF_BOUNDARY_SMOOTH_ALL, blender::SUBSURF_BOUNDARY_SMOOTH_PRESERVE_CORNERS, and vtx_boundary_interpolation_from_subsurf().
Referenced by blender::BKE_multires_subdiv_settings_init(), blender::BKE_subsurf_modifier_settings_init(), and vtx_boundary_interpolation_from_subsurf().