Add v2 geometry normalization and boundary-layer seed points

This commit is contained in:
2026-02-17 14:37:13 +00:00
parent 7d5bd33bb5
commit 139a355ef3
3 changed files with 204 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ from shapely.geometry import Polygon
from src.atomizer_study import DEFAULT_PARAMS
from src.shared.arc_utils import typed_segments_to_polyline
from .density_field import evaluate_density_grid
from .geometry_schema import normalize_geometry_schema
from .triangulation import generate_triangulation
from .pocket_profiles import generate_pockets
from .profile_assembly import assemble_profile, profile_to_json
@@ -212,7 +213,8 @@ def _plot_final_profile(geometry, pockets, ribbed_plate, out_path: Path, params:
def run_pipeline(geometry_path: Path, params_path: Path | None, output_dir: Path, output_json_name: str = "rib_profile.json") -> Dict[str, Any]:
geometry = _load_json(geometry_path)
raw_geometry = _load_json(geometry_path)
geometry = normalize_geometry_schema(raw_geometry)
params = _merge_params(geometry, params_path)
triangulation = generate_triangulation(geometry, params)