Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/geometry_component_mesh.cc
| Show First 20 Lines • Show All 1,204 Lines • ▼ Show 20 Lines | GVArrayPtr try_get_for_read(const GeometryComponent &component) const final | ||||
| for (const int i : IndexRange(mesh->totpoly)) { | for (const int i : IndexRange(mesh->totpoly)) { | ||||
| const MPoly *poly = &mesh->mpoly[i]; | const MPoly *poly = &mesh->mpoly[i]; | ||||
| BKE_mesh_calc_poly_normal(poly, &mesh->mloop[poly->loopstart], mesh->mvert, normals[i]); | BKE_mesh_calc_poly_normal(poly, &mesh->mloop[poly->loopstart], mesh->mvert, normals[i]); | ||||
| } | } | ||||
| return std::make_unique<fn::GVArray_For_ArrayContainer<Array<float3>>>(std::move(normals)); | return std::make_unique<fn::GVArray_For_ArrayContainer<Array<float3>>>(std::move(normals)); | ||||
| } | } | ||||
| GVMutableArrayPtr try_get_for_write(GeometryComponent &UNUSED(component)) const final | WriteAttributeLookup try_get_for_write(GeometryComponent &UNUSED(component)) const final | ||||
| { | { | ||||
| return {}; | return {}; | ||||
| } | } | ||||
| bool try_delete(GeometryComponent &UNUSED(component)) const final | bool try_delete(GeometryComponent &UNUSED(component)) const final | ||||
| { | { | ||||
| return false; | return false; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 162 Lines • Show Last 20 Lines | |||||