Skip to content

Add optional "Join bodies if possible" to Circular and Rectangular Pattern #21625

Done

Description

@Krtzkrt

What are you trying to do

I am constructing a parametric gear from a single extruded tooth sector using Circular Pattern.

Circular and Rectangular Pattern create separate bodies, even when the resulting bodies share faces or overlap.

To obtain a single body, an additional Combine (Join) operation is required.

However, the subsequent Combine operation depends on a fixed selection of bodies. When the number of pattern instances is changed:

  • Increasing the number may leave newly created bodies outside the Combine operation.
  • Decreasing the number may invalidate existing body references and cause the Combine operation to fail.

This makes reliable parametric modeling with a variable number of pattern instances difficult.

How you imagine it working

Add an optional checkbox for body patterns:

Join bodies if possible

  • Unchecked: Existing behavior remains unchanged.
  • Checked: The original bodies and their pattern instances are joined wherever geometrically possible.
  • Disconnected bodies remain separate.
  • Bodies unrelated to the pattern are not affected.
  • Geometric failures during Join should be reported.

The Join operation should be an integral part of the pattern feature and automatically recomputed whenever its parameters change, including the number of instances.

The checkbox should be unchecked by default to preserve backward compatibility.

Scope:

  • Circular Pattern
  • Rectangular Pattern
  • UI and command interface

Unlike the automatic operation selection discussed in #6901 and implemented in #6903, this proposal introduces an explicit, user-controlled option within the pattern operation.

Activity

  1. added
    enhancement
    on Nov 24, 2026
  2. added
    area:kernel
    needs-triage
    on Nov 24, 2026
  3. raykholo commented on Nov 24, 2026

    @raykholo
    Contributor

    Tested on 0.48.1 with the command-line tool, on a disc with one tooth of my own: a circular pattern of the tooth feature (features), not of the bodies, gives one body with 8 instances and, tested separately, one body with 12, so no Combine is needed. In the pattern dialog this is Object Type set to Features, as docs/feature-patterns.md describes. Changing the count of an existing pattern was not tested, and I did not open the window or try the rectangular pattern.

  4. Krtzkrt commented on Nov 24, 2026

    @Krtzkrt
    Author

    Thank you for testing this!

    Our construction differs slightly. We start with a single extruded tooth sector, without a separate base disc.
    I tested both Bodies and Features in the Circular Pattern dialog in SolidCraft 0.48.1. In both cases, the resulting sectors remained separate bodies, even when the angular distribution was changed to create overlapping volumes.
    The proposed checkbox would allow these bodies to be joined directly as part of the pattern operation, independently of how the original body was created.
    Another important aspect is changing the number of instances in an existing parametric pattern without having to maintain a separate Combine operation.
    Your test with a base disc is nevertheless an interesting alternative construction method. Thank you for investigating this.

    The gear is only an example to illustrate the problem. The requested enhancement is intended as a general modeling capability, independent of the geometry or the construction history of the original body.
    Users should be able to create a parametric pattern of bodies and optionally merge connected instances without having to restructure their original construction or maintain a separate Combine operation when the instance count changes.
    This applies to both Circular and Rectangular Pattern.

  5. raykholo commented on Nov 24, 2026

    @raykholo
    Contributor

    Tested on 0.48.1 with the command-line tool, on a single extruded sector of my own with no base disc (a 30 mm by 15 mm triangle, 5 mm thick, as a new body) and a circular pattern of 15 over 360°, so neighbouring sectors overlap: patterned as a feature or as a body, it gives 15 separate bodies. The one body I reported earlier was for a tooth joined onto a base disc, so it does not cover your case. I did not open the window.

  6. added
    in progress
    on Nov 25, 2026
  7. github-actions commented on Nov 25, 2026

    @github-actions
    Contributor

    Claimed by @0rdnungsamt through #21918. The claim lapses after 14 days without pushes.

  8. added a commit that references this issue on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:kernelenhancementin progressneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions