Repository navigation
feat(modeling): add linked STL contour draft - #3
Merged
Merged
Conversation
Brutich
force-pushed
the
codex/draft-linked-stl-concave-hull-contour
branch
from
August 27, 2026 21:10
48349c3 to
95bb87f
Compare
Brutich
force-pushed
the
codex/draft-linked-stl-concave-hull-contour
branch
from
August 27, 2026 21:14
95bb87f to
6210179
Compare
Brutich
marked this pull request as ready for review
August 27, 2026 21:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
ImportInstanceat a named Revit level plus an offset;catalog.jsonand the README table.The defaults preserve the current prototype:
L3,+1500 mm,25 mmpoint snap,2500 mmmaximum hull edge,50 mmsimplification, and10 m²minimum area.Scope and exclusions
This PR intentionally creates only the largest exterior contour. Courtyards/holes, detached polygons, all-level batch processing, automatic package installation, and a pure-Python hull implementation are out of scope for this draft.
NetTopologySuite paths are explicit
IN[6]values when the assemblies are not already loaded. No machine-specific path or network download is embedded in the script.User impact
The script writes one line subcategory when absent, one horizontal
SketchPlane, and a closed set of model curves in one rollback-safe Revit transaction. It does not modify the selected link or source STL.Validation performed
python tools/validate_catalog.py— passed for 6 scripts.git diff --check— passed.ConcaveHull.MaximumEdgeLength,HolesAllowed,GetHull, andGeometryFactory.CreateMultiPointFromCoords.A one-off source prototype ran successfully in Revit 2024 on the current building STL at
L3 + 1500 mm: 7,264,272 triangles inspected, 12,281 intersected triangles, 8,902 snapped hull points, 46 model lines, approximately 590.55 m², and 25.8 seconds. The generalized repository file in this PR has not yet been executed as-is, sorevit.testedremains empty.Risks and remaining manual checks
IN[6]assembly paths;Documentation impact
Adds the paired script guide and updates both human-readable and machine-readable catalogs.