Geometry Nodes: Add or improve various socket descriptions

This commit is contained in:
Hans Goudey
2022-01-26 14:22:23 -06:00
parent 7b615ca186
commit cab1f1d9a2
7 changed files with 19 additions and 8 deletions

View File

@@ -44,7 +44,9 @@ static void node_declare(NodeDeclarationBuilder &b)
.subtype(PropertySubType::PROP_DISTANCE)
.default_value(0.25f)
.supports_field();
b.add_input<decl::Bool>(N_("Limit Radius"));
b.add_input<decl::Bool>(N_("Limit Radius"))
.description(
N_("Limit the maximum value of the radius in order to avoid overlapping fillets"));
b.add_output<decl::Geometry>(N_("Curve"));
}

View File

@@ -30,7 +30,12 @@ namespace blender::nodes::node_geo_curve_subdivide_cc {
static void node_declare(NodeDeclarationBuilder &b)
{
b.add_input<decl::Geometry>(N_("Curve")).supported_type(GEO_COMPONENT_TYPE_CURVE);
b.add_input<decl::Int>(N_("Cuts")).default_value(1).min(0).max(1000).supports_field();
b.add_input<decl::Int>(N_("Cuts"))
.default_value(1)
.min(0)
.max(1000)
.supports_field()
.description(N_("The number of control points to create on the segment following each point"));
b.add_output<decl::Geometry>(N_("Curve"));
}

View File

@@ -20,7 +20,9 @@ namespace blender::nodes::node_geo_input_id_cc {
static void node_declare(NodeDeclarationBuilder &b)
{
b.add_output<decl::Int>(N_("ID")).field_source();
b.add_output<decl::Int>(N_("ID")).field_source().description(
N_("The values from the \"id\" attribute on points, or the index if that attribute does not "
"exist"));
}
static void node_geo_exec(GeoNodeExecParams params)

View File

@@ -27,7 +27,7 @@ static void node_declare(NodeDeclarationBuilder &b)
{
b.add_output<decl::Int>(N_("Face Count"))
.field_source()
.description(N_("Number of faces that contain the edge"));
.description(N_("The number of faces that use each edge as one of their sides"));
}
class EdgeNeighborCountFieldInput final : public GeometryFieldInput {

View File

@@ -29,8 +29,8 @@ static void node_declare(NodeDeclarationBuilder &b)
{
b.add_output<decl::Int>(N_("Island Index"))
.field_source()
.description(N_("Island indices are based on the order of the lowest-numbered vertex "
"contained in each island"));
.description(N_("The index of the each vertex's island. Indices are based on the "
"lowest vertex index contained in each island"));
b.add_output<decl::Int>(N_("Island Count"))
.field_source()
.description(N_("The total number of mesh islands"));

View File

@@ -27,7 +27,8 @@ static void node_declare(NodeDeclarationBuilder &b)
{
b.add_output<decl::Int>(N_("Vertex Count"))
.field_source()
.description(N_("Vertex count and edge count are equal"));
.description(N_("The number of vertices connected to this vertex with an edge, "
"equal to the number of connected edges"));
b.add_output<decl::Int>(N_("Face Count"))
.field_source()
.description(N_("Number of faces that contain the vertex"));

View File

@@ -36,7 +36,8 @@ static void node_declare(NodeDeclarationBuilder &b)
.description(N_("Geometry that is instanced on the points"));
b.add_input<decl::Bool>(N_("Pick Instance"))
.supports_field()
.description(N_("Place different instances on different points"));
.description(N_("Choose instances from the \"Instance\" input at each point instead of "
"instancing the entire geometry"));
b.add_input<decl::Int>(N_("Instance Index"))
.implicit_field()
.description(N_(