Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cone.cc
| Show First 20 Lines • Show All 506 Lines • ▼ Show 20 Lines | OutputAttribute_Typed<bool> attribute = mesh_component.attribute_try_get_for_output_only<bool>( | ||||
| attribute_outputs.bottom_id.get(), face ? ATTR_DOMAIN_FACE : ATTR_DOMAIN_POINT); | attribute_outputs.bottom_id.get(), face ? ATTR_DOMAIN_FACE : ATTR_DOMAIN_POINT); | ||||
| MutableSpan<bool> selection = attribute.as_span(); | MutableSpan<bool> selection = attribute.as_span(); | ||||
| if (config.bottom_is_point) { | if (config.bottom_is_point) { | ||||
| selection[config.last_vert] = true; | selection[config.last_vert] = true; | ||||
| } | } | ||||
| else { | else { | ||||
| selection | selection | ||||
| .slice(config.bottom_faces_start, | .slice(face ? config.bottom_faces_start : (config.last_ring_verts_start + 1), | ||||
| face ? config.bottom_faces_len : config.circle_segments) | face ? config.bottom_faces_len : config.circle_segments) | ||||
| .fill(true); | .fill(true); | ||||
| } | } | ||||
| attribute.save(); | attribute.save(); | ||||
| } | } | ||||
| /* Populate "Side" selection output. */ | /* Populate "Side" selection output. */ | ||||
| if (attribute_outputs.side_id) { | if (attribute_outputs.side_id) { | ||||
| ▲ Show 20 Lines • Show All 349 Lines • Show Last 20 Lines | |||||