step-examples/12-8-mixed/Os021.stp
Sources
- OCCT BRepOffsetAPI_NormalProjection (uncovered class evidence)
Sender
deduced — OCCT uncovered-class sweep
Description
A 3D curve is requested to be projected normally onto a target surface, but the curve is far from the surface and no normal foot exists. Bug-reporter language: "projection failed", "no normal projection".
Reproducer recipe
A `LINE` at z=10. Target surface is a small sphere at the origin radius 1. No normal projection from the line to the sphere.
Expected kernel behavior
Reject; or compute orthogonal-projection-with-extension.
Notes
Synonyms: "curve too far from surface", "projection failed", "no normal projection", "normal projection has no foot", "curve has no projection on target".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a
Byte assertions
contains(b'SPHERICAL_SURFACE')contains(b'LINE')
Tier-3 assertions
shape_null == Falsen_edges_total == 1
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Os021: GEOMETRIC_CURVE_SET containing a LINE at z=10 (parallel to X axis) and a SPHERICAL_SURFACE at origin radius=1; line is 10 units above the sphere's north pole â no normal foot exists; BRepOffsetAPI_NormalProjection projection_failed; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; no orphaned entities */ 3HEADER; 4FILE_DESCRIPTION(('Os021'),'2;1'); 5FILE_NAME('Os021.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=CARTESIAN_POINT('',(0.0,0.0,10.0)); 11#2=DIRECTION('',(1.0,0.0,0.0)); 12#3=VECTOR('',#2,20.0); 13#4=LINE('',#1,#3); 14#5=CARTESIAN_POINT('',(0.0,0.0,0.0)); 15#6=DIRECTION('',(0.0,0.0,1.0)); 16#7=DIRECTION('',(1.0,0.0,0.0)); 17#8=AXIS2_PLACEMENT_3D('',#5,#6,#7); 18#9=SPHERICAL_SURFACE('',#8,1.0); 19#10=GEOMETRIC_CURVE_SET('',(#4,#9)); 20#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 21#9051=PRODUCT('Os021','Os021','',(#9050)); 22#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 23#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 24#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 25#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 26#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 27#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 28#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 29#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 30#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 31#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#10),#9060); 32#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 33ENDSEC; 34END-ISO-10303-21;