Skip to main content

Inspection

STEP/BREP inspection, topology neighborhoods, comparisons, sections, evidence, and rendering helpers.

This catalog contains 47 public symbols. Select a symbol for its exact signature, parameters, return contract, errors, members, aliases, and behavior notes.

Modules

SymbolImportSummary
brepfrom cadflow.inspect import brepOCP-native STEP/BREP inspection utilities.
inspectfrom cadflow import inspectInspection-only utilities kept outside CadFlow's modeling graph.
inspectionfrom cadflow import inspectionBREP inspection domain facade.

Classes

SymbolImportSummary
BRepComparisonfrom cadflow.inspect.brep import BRepComparisonHard-gate comparison facts for two solid BREPs.
BRepInspectionfrom cadflow.inspect.brep import BRepInspectionJSON-serializable geometry and topology facts for one BREP.
BRepModelfrom cadflow.inspect.brep import BRepModelOne BREP with deterministic zero-based topology ids and incidence data.
EntityInspectionParityfrom cadflow.inspect.brep import EntityInspectionParityResult of checking stable entity output against a BRepInspection report.
InspectionSummaryComparisonfrom cadflow.inspect.brep import InspectionSummaryComparisonFast report-level diagnostics; not a geometric acceptance result.
SliceComparisonfrom cadflow.inspect.brep import SliceComparisonSliceComparison(target: 'str | None', candidate: 'str | None', total_samples: 'int', xor_samples: 'int', sampled_slices_identical: 'bool', panels: 'tuple[SlicePanelResult, ...]', image: 'str | None' = None)
SlicePanelResultfrom cadflow.inspect.brep import SlicePanelResultSlicePanelResult(slice: 'str', samples: 'int', xor_samples: 'int')
SliceSpecfrom cadflow.inspect.brep import SliceSpecOne constant-coordinate physical slice.

Exceptions

SymbolImportSummary
BRepEntityErrorfrom cadflow.inspect.brep import BRepEntityErrorRaised when a STEP model or stable entity query cannot be processed.

Functions

SymbolImportSummary
clear_step_model_cache_rnonefrom cadflow.inspect.brep import clear_step_model_cache_rnoneClear the bounded STEP entity-model cache.
compare_boundary_distance_rdescriptorfrom cadflow.inspect.brep import compare_boundary_distance_rdescriptorCompute bidirectional sampled-boundary to exact-boundary distances.
compare_entities_rdescriptorfrom cadflow.inspect.brep import compare_entities_rdescriptorCompare entity geometry, scalar parameters, distance, and adjacency.
compare_global_properties_rdescriptorfrom cadflow.inspect.brep import compare_global_properties_rdescriptorCompare material counts, mass properties, bounds, and raw topology.
compare_inspections_rinspectionsummarycomparisonfrom cadflow.inspect.brep import compare_inspections_rinspectionsummarycomparisonCompare inexpensive inspection summaries without claiming BREP equality.
compare_material_rdescriptorfrom cadflow.inspect.brep import compare_material_rdescriptorCompute missing/excess volumes using directional cuts by default.
compare_model_to_inspection_rentityinspectionparityfrom cadflow.inspect.brep import compare_model_to_inspection_rentityinspectionparityCheck summary, geometry labels, measurements, and incidence parity.
compare_sections_rdescriptorfrom cadflow.inspect.brep import compare_sections_rdescriptorCompare target and current contour geometry on one physical plane.
compare_shape_slices_rslicecomparisonfrom cadflow.inspect.brep import compare_shape_slices_rslicecomparisonCompare occupancy on physical slices and optionally render an XOR image.
compare_shapes_rbrepcomparisonfrom cadflow.inspect.brep import compare_shapes_rbrepcomparisonCompare material point sets and geometry-labelled incidence graphs.
compare_step_slices_rslicecomparisonfrom cadflow.inspect.brep import compare_step_slices_rslicecomparisonLoad two STEP solids and compare physical occupancy slices.
compare_step_to_inspection_rentityinspectionparityfrom cadflow.inspect.brep import compare_step_to_inspection_rentityinspectionparityLoad a STEP file and compare it with a serialized BRepInspection report.
compare_steps_rbrepcomparisonfrom cadflow.inspect.brep import compare_steps_rbrepcomparisonLoad two STEP files and run the strict BREP comparison.
evaluate_reconstruction_rdescriptorfrom cadflow.inspect.brep import evaluate_reconstruction_rdescriptorApply replay, validity, material, boundary, and optional strict gates.
index_shape_rbrepmodelfrom cadflow.inspect.brep import index_shape_rbrepmodelBuild stable entity maps for one in-memory OCP shape.
inspect_difference_regions_rdescriptorfrom cadflow.inspect.brep import inspect_difference_regions_rdescriptorAggregate material components and optional precomputed boundary anomalies.
inspect_face_boundaries_rdescriptorfrom cadflow.inspect.brep import inspect_face_boundaries_rdescriptorReturn ordered outer and inner wire occurrences for one stable face id.
inspect_nearby_entities_rdescriptorfrom cadflow.inspect.brep import inspect_nearby_entities_rdescriptorFind stable entities whose exact geometry lies near a point or region.
inspect_point_rdescriptorfrom cadflow.inspect.brep import inspect_point_rdescriptorReturn exact point-to-entity distances, ordered by distance then stable id.
inspect_section_rdescriptorfrom cadflow.inspect.brep import inspect_section_rdescriptorIntersect a model with an unbounded plane and assemble sampled contours.
inspect_shape_rbrepinspectionfrom cadflow.inspect.brep import inspect_shape_rbrepinspectionInspect one imported shape without relying on STEP entity numbering.
inspect_step_entity_rdescriptorfrom cadflow.inspect.brep import inspect_step_entity_rdescriptorReturn geometry, measurements, bounds, and adjacency for one entity id.
inspect_step_rbrepinspectionfrom cadflow.inspect.brep import inspect_step_rbrepinspectionLoad and inspect one valid, single-root STEP file.
inspect_step_rsummaryfrom cadflow.inspect.brep import inspect_step_rsummaryReturn global material and topology facts for one STEP file.
inspect_topology_neighborhood_rdescriptorfrom cadflow.inspect.brep import inspect_topology_neighborhood_rdescriptorReturn a deterministic, bounded breadth-first topology neighborhood.
load_step_rbrepmodelfrom cadflow.inspect.brep import load_step_rbrepmodelLoad and cache a STEP model with deterministic topology ids.
load_step_rshapefrom cadflow.inspect.brep import load_step_rshapeLoad one transferred STEP shape and optionally require a valid BREP.
make_center_slice_specs_rslicespeclistfrom cadflow.inspect.brep import make_center_slice_specs_rslicespeclistReturn one center slice normal to each global axis.
render_entity_kind_maps_rpathfrom cadflow.inspect.brep import render_entity_kind_maps_rpathRender independent face, edge, and vertex highlight maps.
render_entity_map_rpathfrom cadflow.inspect.brep import render_entity_map_rpathRender stable BREP entity IDs without flattening model depth.
render_region_rpathfrom cadflow.inspect.brep import render_region_rpathHighlight stable entities and their optional topology neighborhood.
render_shape_views_rpathfrom cadflow.inspect.brep import render_shape_views_rpathRender smooth shaded BREP views with true topology edges by default.
render_step_views_rpathfrom cadflow.inspect.brep import render_step_views_rpathLoad STEP/XCAF colors and render smooth faces with true BREP edges.
select_region_entities_rdescriptorfrom cadflow.inspect.brep import select_region_entities_rdescriptorExpand stable ids through topology and optionally filter them by bounds distance.

Constants

SymbolImportSummary
DEFAULT_VIEWSfrom cadflow.inspect.brep import DEFAULT_VIEWSBuilt-in immutable sequence.