step-examples/12-8-mixed/Os002.stp
Sources
- OCCT BRepOffset_Status.Degenerated (uncovered class evidence)
Sender
deduced — OCCT uncovered-class sweep
Description
A cylindrical face of radius R is offset inward by exactly R. The offset surface collapses to the cylinder axis (a line); no surface remains.
Reproducer recipe
A cylinder of radius 5 mm. Request inward offset of 5 mm.
Expected kernel behavior
Detect the degenerate case; emit a "result is the axis" diagnostic; refuse to produce a face.
Notes
Synonyms: "axis collapse offset", "offset collapses to axis", "offset surface degenerate", "offset distance equals radius", "cylinder offset to centerline". **See also**: Os003.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'OFFSET_SURFACE')contains(b'CYLINDRICAL_SURFACE')contains(b'OFFSET_SURFACE(#14,-5.0')
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Os002: GEOMETRIC_CURVE_SET containing ADVANCED_FACE; face references an OFFSET_SURFACE wrapping CYLINDRICAL_SURFACE radius=5.0; offset distance=-5.0 (inward by radius) collapses surface to axis line; BRepOffset_Status.Degenerated â result degenerates to a line; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; no orphaned entities */ 3HEADER; 4FILE_DESCRIPTION(('Os002'),'2;1'); 5FILE_NAME('Os002.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,0.0)); 11#2=DIRECTION('',(0.0,0.0,1.0)); 12#3=DIRECTION('',(1.0,0.0,0.0)); 13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3); 14#5=CARTESIAN_POINT('',(0.0,0.0,0.0)); 15#6=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#7=CARTESIAN_POINT('',(0.0,0.0,0.0)); 17#8=CARTESIAN_POINT('',(0.0,0.0,0.0)); 18#9=CARTESIAN_POINT('',(0.0,0.0,0.0)); 19#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 20#11=CARTESIAN_POINT('',(0.0,0.0,0.0)); 21#12=CARTESIAN_POINT('',(0.0,0.0,0.0)); 22#13=CARTESIAN_POINT('',(0.0,0.0,0.0)); 23#14=CYLINDRICAL_SURFACE('cyl_r5',#4,5.0); 24#15=OFFSET_SURFACE(#14,-5.0,.F.); 25#16=CARTESIAN_POINT('',(0.0,0.0,0.0)); 26#17=DIRECTION('',(0.0,0.0,1.0)); 27#18=DIRECTION('',(1.0,0.0,0.0)); 28#19=AXIS2_PLACEMENT_3D('',#16,#17,#18); 29#20=CIRCLE('',#19,5.0); 30#21=CARTESIAN_POINT('',(5.0,0.0,0.0)); 31#22=VERTEX_POINT('',#21); 32#23=EDGE_CURVE('bot_seam',#22,#22,#20,.T.); 33#24=ORIENTED_EDGE('',*,*,#23,.T.); 34#25=EDGE_LOOP('',(#24)); 35#26=FACE_OUTER_BOUND('',#25,.T.); 36#27=ADVANCED_FACE('axis_collapse_face',(#26),#15,.T.); 37#28=GEOMETRIC_CURVE_SET('',(#27)); 38#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 39#9051=PRODUCT('Os002','Os002','',(#9050)); 40#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 41#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 42#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 43#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 44#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 45#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 46#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 47#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 48#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 49#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#28),#9060); 50#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 51ENDSEC; 52END-ISO-10303-21;