Skip to content

solidcore: the loop closure check refuses a loop whose gap its shared vertex's tolerance covers #16294

Closed

Description

@vshortt73

SmLoopuse::IsClosed3d measures the gap between an edge's curve end and the next edge's curve start against the two edges' tolerances only. It does not look at the vertex the two ends share.

Two curve ends that each lie inside a widened vertex's tolerance can be farther apart than their edges' tolerances allow. With gap reporting on (loop_use_reports_open_gaps, WR-93), SmLoopuse Test #5 then fails a loop whose only fault is a gap its vertex already covers. SmBrep::ValidateAndUpdateTolerances produces such bodies: it widens a vertex over its gaps and leaves the edges as they are. Wider vertex tolerances at STEP import (#15064) make this easier to reach.

CheckLoop had the same omission and was corrected (WR-381).

Reproduction on the port: a square loop on a plane, one corner's curve ends 1e-3 apart, edge zones 1e-4 each, that corner's vertex zone 2e-3. The loop is reported open at 2e-4.

Seen on an imported STEP solid: 22 loops failed Test #5 against the edges' 1e-4 after its vertices were widened.

Activity

  1. added
    needs-triage
    in progress
    on Nov 13, 2026
  2. github-actions commented on Nov 13, 2026

    @github-actions
    Contributor

    Claimed by @vshortt73 through #16296. The claim lapses after 14 days without pushes.

  3. vshortt73 commented on Nov 15, 2026

    @vshortt73
    ContributorAuthor

    Fixed by #16998 (merged): IsClosed3d now always takes a junction's limit from junction_tolerance (WR-381), which covers this case. Re-checked on that branch before it landed: the reproduction here is closed, and the STEP solid reports no SmLoopuse Test #5. Closing.

    Written with Claude Code (AI) on behalf of @vshortt73.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in progressneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions