Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_uv_unwrap.cc
| Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | public: | ||||
| } | } | ||||
| GVArray get_varray_for_context(const Mesh &mesh, | GVArray get_varray_for_context(const Mesh &mesh, | ||||
| const eAttrDomain domain, | const eAttrDomain domain, | ||||
| IndexMask UNUSED(mask)) const final | IndexMask UNUSED(mask)) const final | ||||
| { | { | ||||
| return construct_uv_gvarray(mesh, selection, seam, fill_holes, margin, method, domain); | return construct_uv_gvarray(mesh, selection, seam, fill_holes, margin, method, domain); | ||||
| } | } | ||||
| std::optional<eAttrDomain> preferred_domain(const Mesh & /*mesh*/) const override | |||||
| { | |||||
| return ATTR_DOMAIN_CORNER; | |||||
| } | |||||
| }; | }; | ||||
| static void node_geo_exec(GeoNodeExecParams params) | static void node_geo_exec(GeoNodeExecParams params) | ||||
| { | { | ||||
| const NodeGeometryUVUnwrap &storage = node_storage(params.node()); | const NodeGeometryUVUnwrap &storage = node_storage(params.node()); | ||||
| const GeometryNodeUVUnwrapMethod method = (GeometryNodeUVUnwrapMethod)storage.method; | const GeometryNodeUVUnwrapMethod method = (GeometryNodeUVUnwrapMethod)storage.method; | ||||
| const Field<bool> selection_field = params.extract_input<Field<bool>>("Selection"); | const Field<bool> selection_field = params.extract_input<Field<bool>>("Selection"); | ||||
| const Field<bool> seam_field = params.extract_input<Field<bool>>("Seam"); | const Field<bool> seam_field = params.extract_input<Field<bool>>("Seam"); | ||||
| Show All 24 Lines | |||||