step-examples/12-3c-faces/Hea008.stp
Sources
- OCCT `ShapeAnalysis_TransferParametersProj::Perform` (`ShapeAnalysis_TransferParametersProj.hxx:52`)
Description
An edge for which 3D-to-2D parameter transfer requires actual projection onto the host surface, not just affine remapping. Used when surface curvature varies along the edge; affine maps would produce wrong sample positions.
Reproducer recipe
An edge on a NURBS surface where the surface's metric varies by 10× along the edge length.
Expected kernel behavior
Heal and accept: per-sample, project the 3D-curve point onto the surface; build the U value from the projection; emit residual error per sample.
Notes
Specialized variant of Hea007 for projection-based transfer. Synonyms: "edge curve on B-spline surface with control points clustered at one end and spread far apart at the other", "metric varies along surface", "uniform pcurve in UV does not correspond to uniform 3D arc-length", "non-uniform parameter spacing", "projection-based parameter transfer needed", "control points clustered close-packed then far apart".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'non_uniform_metric')contains(b'B_SPLINE_SURFACE_WITH_KNOTS(')contains(b'cluster_lo_a')
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/* Hea008: B_SPLINE_SURFACE_WITH_KNOTS named 'non_uniform_metric' with 4x4 control grid: left side (U=0) clustered in x=[0,1] (control points 'cluster_lo_a'...'cluster_lo_d'), right side (U=1) spread to x=[20,20] -- surface metric varies ~10x along U; edge spans full U range with uniform UV pcurve (U=0..1, V=0.5); affine remapping gives wrong 3D samples; projection-based transfer required; wrapped in GEOMETRIC_CURVE_SET; OCC silently accepts; spec-kernel must heal/reject */ 3HEADER; 4FILE_DESCRIPTION(('Hea008'),'2;1'); 5FILE_NAME('Hea008.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('cluster_lo_a',(0.0,0.0,0.0)); 11#2=CARTESIAN_POINT('cluster_lo_b',(0.0,1.0,0.0)); 12#3=CARTESIAN_POINT('cluster_lo_c',(0.0,2.0,0.0)); 13#4=CARTESIAN_POINT('cluster_lo_d',(0.0,3.0,0.0)); 14#5=CARTESIAN_POINT('cluster_mid_a',(1.0,0.0,0.0)); 15#6=CARTESIAN_POINT('cluster_mid_b',(1.0,1.0,0.0)); 16#7=CARTESIAN_POINT('cluster_mid_c',(1.0,2.0,0.0)); 17#8=CARTESIAN_POINT('cluster_mid_d',(1.0,3.0,0.0)); 18#9=CARTESIAN_POINT('spread_mid_a',(10.0,0.0,0.0)); 19#10=CARTESIAN_POINT('spread_mid_b',(10.0,1.0,0.0)); 20#11=CARTESIAN_POINT('spread_mid_c',(10.0,2.0,0.0)); 21#12=CARTESIAN_POINT('spread_mid_d',(10.0,3.0,0.0)); 22#13=CARTESIAN_POINT('spread_hi_a',(20.0,0.0,0.0)); 23#14=CARTESIAN_POINT('spread_hi_b',(20.0,1.0,0.0)); 24#15=CARTESIAN_POINT('spread_hi_c',(20.0,2.0,0.0)); 25#16=CARTESIAN_POINT('spread_hi_d',(20.0,3.0,0.0)); 26#17=B_SPLINE_SURFACE_WITH_KNOTS('non_uniform_metric',3,3,((#1,#2,#3,#4),(#5,#6,#7,#8),(#9,#10,#11,#12),(#13,#14,#15,#16)),.UNSPECIFIED.,.F.,.F.,.F.,(4,4),(4,4),(0.0,1.0),(0.0,1.0),.UNSPECIFIED.); 27#18=CARTESIAN_POINT('e_start',(0.0,1.5,0.0)); 28#19=CARTESIAN_POINT('e_end',(20.0,1.5,0.0)); 29#20=VERTEX_POINT('Vstart',#18); 30#21=VERTEX_POINT('Vend',#19); 31#22=DIRECTION('',(1.0,0.0,0.0)); 32#23=VECTOR('',#22,1.0); 33#24=LINE('e_3d',#18,#23); 34#25=CARTESIAN_POINT('uv_start',(0.0,0.5)); 35#26=DIRECTION('',(1.0,0.0)); 36#27=VECTOR('',#26,1.0); 37#28=LINE('e_pcurve',#25,#27); 38#29=DIRECTION('host_z',(0.0,0.0,1.0)); 39#30=AXIS2_PLACEMENT_3D('host_repr',#1,#29,#22); 40#31=GEOMETRIC_REPRESENTATION_CONTEXT(2); 41#32=DEFINITIONAL_REPRESENTATION('',( #28),#31); 42#33=PCURVE('e_pcurve_uv_lin',#17,#32); 43#34=SURFACE_CURVE('proj_required',#24,(#33),.PCURVE_S1.); 44#35=EDGE_CURVE('e_on_nonuniform_metric_surface',#20,#21,#34,.T.); 45#36=ORIENTED_EDGE('',$,$,#35,.T.); 46#37=EDGE_LOOP('proj_transfer_required_edge',(#36)); 47#38=GEOMETRIC_CURVE_SET('',( #37)); 48#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 49#9051=PRODUCT('Hea008','Hea008','',(#9050)); 50#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 51#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 52#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 53#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 54#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 55#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 56#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 57#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 58#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 59#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#38),#9060); 60#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 61ENDSEC; 62END-ISO-10303-21;