step-examples/12-4-tolerance/N093.stp
Sources
- synthesized — no external source cited
Description
BRepLib.UpdateInnerTolerances on-degenerate-curve
Reproducer recipe
Expected kernel behavior
an edge's 3D curve collapses to a single point. A correct kernel must recognise a zero-length curve as degenerate BEFORE sampling it. Sampling a point curve returns the same position every time, and reading that repetition as "the tolerance varies between samples" invents a measurement from geometry that has no extent.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Tier-3 assertions
n_faces_total == 1
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* N093: OPEN_SHELL face with degenerate_edge (v_degenerate_aâv_degenerate_b, zero length) and normal_edge; UpdateInnerTolerances samples degenerate curve repeatedly, computing spurious tolerance instead of recognizing degeneracy */ 3HEADER; 4FILE_DESCRIPTION(('N093'),'2;1'); 5FILE_NAME('N093.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=PLANE('',#4); 15#6=CARTESIAN_POINT('',(0.5,0.5,0.0)); 16#7=CARTESIAN_POINT('',(0.5,0.5,0.0)); 17#8=VERTEX_POINT('v_degenerate_a',#6); 18#9=VERTEX_POINT('v_degenerate_b',#7); 19#10=DIRECTION('',(1.0,0.0,0.0)); 20#11=VECTOR('',#10,0.0); 21#12=LINE('',#6,#11); 22#13=EDGE_CURVE('degenerate_edge',#8,#9,#12,.T.); 23#14=CARTESIAN_POINT('',(0.0,0.0,0.0)); 24#15=CARTESIAN_POINT('',(1.0,0.0,0.0)); 25#16=VERTEX_POINT('v_normal_a',#14); 26#17=VERTEX_POINT('v_normal_b',#15); 27#18=DIRECTION('',(1.0,0.0,0.0)); 28#19=VECTOR('',#18,1.0); 29#20=LINE('',#14,#19); 30#21=EDGE_CURVE('normal_edge',#16,#17,#20,.T.); 31#22=CARTESIAN_POINT('',(1.0,1.0,0.0)); 32#23=CARTESIAN_POINT('',(0.0,1.0,0.0)); 33#24=VERTEX_POINT('',#22); 34#25=VERTEX_POINT('',#23); 35#26=DIRECTION('',(0.0,1.0,0.0)); 36#27=VECTOR('',#26,1.0); 37#28=LINE('',#15,#27); 38#29=EDGE_CURVE('',#17,#24,#28,.T.); 39#30=DIRECTION('',(-1.0,0.0,0.0)); 40#31=VECTOR('',#30,1.0); 41#32=LINE('',#22,#31); 42#33=EDGE_CURVE('',#24,#25,#32,.T.); 43#34=DIRECTION('',(0.0,-1.0,0.0)); 44#35=VECTOR('',#34,1.0); 45#36=LINE('',#23,#35); 46#37=EDGE_CURVE('',#25,#16,#36,.T.); 47#38=ORIENTED_EDGE('',$,$,#21,.T.); 48#39=ORIENTED_EDGE('',$,$,#29,.T.); 49#40=ORIENTED_EDGE('',$,$,#33,.T.); 50#41=ORIENTED_EDGE('',$,$,#37,.T.); 51#42=EDGE_LOOP('wire_with_degen',(#38,#39,#40,#41)); 52#43=FACE_OUTER_BOUND('',#42,.T.); 53#44=ADVANCED_FACE('face_with_degen',(#43),#5,.T.); 54#45=OPEN_SHELL('shell_with_degen',(#44)); 55#46=SHELL_BASED_SURFACE_MODEL('',(#45)); 56#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 57#9051=PRODUCT('N093','N093','',(#9050)); 58#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 59#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 60#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 61#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 62#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 63#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 64#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 65#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 66#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 67#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#46),#9060); 68#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 69ENDSEC; 70END-ISO-10303-21;