solidcore

Units / sweep

sweep.api_brep partial

Layer
59
Upstream lines
529
Functions
12
Rust module
sweep::api_brep

Source: crates/solidcore/src/sweep/api_brep.rs

Upstream: source/SM_API/src/SmApiBrep.cpp

Notes

partial (PR #110): difftest cases=573 passed=306 deferred=267 (blocked_by primitive.primitive_creation_p2(80), primitive.primitive_creation_p3(187): every entry point validates and copies its inputs as upstream, then stubs the SmPrimitiveCreation sweep it wraps); compared: NULL curves, curves without Copy (SM_ERR), empty inputs, missing path, non-positive pipe radius, cap selector range; FFI fences off UB-111, UB-112, UB-113, UB-114, HANG-13; 12 fns; largest: SmApiCreateDraftSweep, SmApiCreateLinearSweep, SmApiCreateCurveSweep, SmApiCreateCurveSweepFromEdges; entry points: SmApiCreateCurveSweep, SmApiCreateCurveSweepFromEdges, SmApiCreateCurveSweepFromFaces, SmApiCreateDraftSweep, SmApiCreateLinearSweep, SmApiCreateLinearSweepWithRepetitions, SmApiCreatePipeSweep, SmApiCreateRotationalSweep, SmApiCreateRotationalSweepWithRepetitions, SmApiCreateSweepAlongPlanarPath, SmApiCreateTaperExtrude; 15 upstream test entry points reach this unit

Difftest

Cases
573
Passed
306
Deferred
267
Failed
0
Both errored
0
Max rel. error
0.0
Tolerance
1e-09 rel.
Seeds
16

Blocked by

Unported unitDeferred cases
primitive.primitive_creation_p3 todo187
primitive.primitive_creation_p2 todo80

Report JSON (per-case results)

Dependencies

Depends on: primitive.primitive_creation_p2 todo primitive.primitive_creation_p3 todo

Soft dependencies: curve.curve_p2 green geom.context green geom.object partial geom.vector3d green primitive.primitive_creation_p1 claimed topology.brep_p1 claimed topology.brep_p3 claimed topology.brep_p4 claimed

Dependents: audit.recursion todo

Soft dependents: none

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmApiCopyCurvesForConsumingSweepSmApiBrep.cpp:9231copy_curves_for_consuming_sweep (private)
SmApiCreateLinearSweepSmApiBrep.cpp:119650[create_linear_sweep]
SmApiCreateRotationalSweepSmApiBrep.cpp:125448[create_rotational_sweep]
SmApiCreateDraftSweepSmApiBrep.cpp:131059[create_draft_sweep]
SmApiCreatePipeSweepSmApiBrep.cpp:137634[create_pipe_sweep]
SmApiCreateSweepAlongPlanarPathSmApiBrep.cpp:142048[create_sweep_along_planar_path]
SmApiCreateCurveSweepSmApiBrep.cpp:147549[create_curve_sweep], [CurveSweep]
SmApiCreateCurveSweepFromFacesSmApiBrep.cpp:153049[create_curve_sweep_from_faces]
SmApiCreateCurveSweepFromEdgesSmApiBrep.cpp:158549[create_curve_sweep_from_edges]
SmApiCreateTaperExtrudeSmApiBrep.cpp:164039[create_taper_extrude]
SmApiCreateLinearSweepWithRepetitionsSmApiBrep.cpp:168536[create_linear_sweep_with_repetitions]
SmApiCreateRotationalSweepWithRepetitionsSmApiBrep.cpp:172737[create_rotational_sweep_with_repetitions]
Module file-header table (12 rows)
RustUpstream
copy_curves_for_consuming_sweep (private)SmApiCopyCurvesForConsumingSweep (static)
[create_linear_sweep]SmApiCreateLinearSweep
[create_rotational_sweep]SmApiCreateRotationalSweep
[create_draft_sweep]SmApiCreateDraftSweep
[create_pipe_sweep]SmApiCreatePipeSweep
[create_sweep_along_planar_path]SmApiCreateSweepAlongPlanarPath
[create_curve_sweep], [CurveSweep]SmApiCreateCurveSweep
[create_curve_sweep_from_faces]SmApiCreateCurveSweepFromFaces
[create_curve_sweep_from_edges]SmApiCreateCurveSweepFromEdges
[create_taper_extrude]SmApiCreateTaperExtrude
[create_linear_sweep_with_repetitions]SmApiCreateLinearSweepWithRepetitions
[create_rotational_sweep_with_repetitions]SmApiCreateRotationalSweepWithRepetitions

Upstream tests reaching this unit

SM_API_test:TestSmCurveSweep, SM_API_test:TestSmPipeSweep, SM_API_test:TestSmCurveSweepFromFaces, SM_API_test:TestSmCurveSweepFailureCleanup, SM_API_test:TestSmCreateDraftSweep, SM_API_test:TestSmTaperExtrude