step-examples/12-1c-syntax/In014.stp
Sources
- BRL-CAD `src/conv/step/step-g/Curve.cpp` base stub `std::cerr << "Error: ::LoadONBrep(..) not implemented for " << entityname
- return false
- `
- same pattern in `SeamCurve.cpp`, `CompositeCurve.cpp`, `CompositeCurveOnSurface.cpp`, `CurveBoundedSurface.cpp`, `RectangularCompositeSurface.cpp`, `SurfacePatch.cpp`, `CartesianTransformationOperator.cpp`
- bug-reporter language: "step-g LoadONBrep not implemented", "STEP subtype silently dropped", "BRL-CAD reader cannot diagnose which type was lost".
Sender
deduced from BRL-CAD step-g source survey (umbrella for specific manifestations Gn038, Twi100, Twi101, Gs057, Gs058, U045).
Description
BRL-CAD step-g virtual-dispatches every subtype through `LoadONBrep`; the base implementation prints to stderr and returns false. Any subtype the importer does not specifically override (e.g. `SeamCurve`, `CompositeCurve`, `BoundedPCurve`, `CompositeCurveOnSurface`, `CurveBoundedSurface`, `RectangularCompositeSurface`, `SurfacePatch`, `CartesianTransformationOperator`, `Polyline`) falls through and gets dropped without caller-side knowledge that geometry was lost. The diagnostic prints to stderr only and never propagates as an error code; callers cannot distinguish full success from partial drop. Fixture demonstrates the pattern with `SEAM_CURVE` since cylinders almost always carry one.
Reproducer recipe
a `SEAM_CURVE` referenced from a cylinder host; step-g's `SeamCurve::LoadONBrep` stub returns false and the seam geometry is lost.
Expected kernel behavior
reject; every stubbed dispatch must escalate to a `STEP_LOAD_ERROR` that propagates to the top-level converter; the converter must exit non-zero when any subgraph reachable from a referenced `ADVANCED_BREP_SHAPE_REPRESENTATION` returned false. Distinct from In013 (the kernel-actor "no actor" case): here the actor exists but is a stub.
Notes
**See also**: Gn038, Twi100, Twi101, Gs057, Gs058, U045, In013, Pf037. Synonyms: "step-g LoadONBrep not implemented umbrella", "virtual-dispatch fall-through silently drops geometry", "stderr-only diagnostic for missing subtype", "BRL-CAD step-g cannot escalate stub-misses to error".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'SEAM_CURVE')contains(b'CYLINDRICAL_SURFACE')
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/* In014: LoadONBrep virtual-dispatch fall-through umbrella (BRL-CAD step-g); BRL-CAD src/conv/step/step-g/Curve.cpp base stub: std::cerr << Error: ::LoadONBrep(..) not implemented for << entityname; return false; same pattern in SeamCurve.cpp, CompositeCurve.cpp, CompositeCurveOnSurface.cpp, CurveBoundedSurface.cpp, RectangularCompositeSurface.cpp, SurfacePatch.cpp, CartesianTransformationOperator.cpp; defect: SEAM_CURVE referenced from a CYLINDRICAL_SURFACE cylinder host; step-g SeamCurve::LoadONBrep stub returns false and the seam geometry is lost; the diagnostic prints to stderr only and never propagates as an error code; callers cannot distinguish full success from partial geometry drop; receiver must reject: every stubbed dispatch must escalate to STEP_LOAD_ERROR; converter must exit non-zero when any subgraph reachable from ADVANCED_BREP_SHAPE_REPRESENTATION returned false; distinct from In013: here the actor exists but is a stub, not absent; bug-reporter synonyms: step-g LoadONBrep not implemented umbrella, virtual-dispatch fall-through silently drops geometry, stderr-only diagnostic for missing subtype, BRL-CAD step-g cannot escalate stub-misses to error; GEOMETRIC_CURVE_SET IS NOT used â SEAM_CURVE defect is the carrier */ 3HEADER; 4FILE_DESCRIPTION(('In014'),'2;1'); 5FILE_NAME('In014.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9/* Cylinder geometry */ 10#10=CARTESIAN_POINT('origin',(0.0,0.0,0.0)); 11#11=DIRECTION('z_axis',(0.0,0.0,1.0)); 12#12=DIRECTION('x_axis',(1.0,0.0,0.0)); 13#13=AXIS2_PLACEMENT_3D('cyl_placement',#10,#11,#12); 14#14=CYLINDRICAL_SURFACE('cylinder',#13,5.0); 15/* Seam line: the 3D edge curve along the seam of the cylinder */ 16#20=CARTESIAN_POINT('seam_start',(5.0,0.0,0.0)); 17#21=CARTESIAN_POINT('seam_end',(5.0,0.0,10.0)); 18#22=DIRECTION('seam_dir',(0.0,0.0,1.0)); 19#23=VECTOR('seam_vec',#22,10.0); 20#24=LINE('seam_3d',#20,#23); 21/* Parameter space: 2D line on cylinder surface (u=0 seam line) */ 22#30=CARTESIAN_POINT('seam_2d_start',(0.0,0.0)); 23#31=DIRECTION('seam_2d_dir',(0.0,1.0)); 24#32=VECTOR('seam_2d_vec',#31,10.0); 25#33=LINE('seam_2d',#30,#32); 26/* DEFINITIONAL_REPRESENTATION for pcurve */ 27#40=DEFINITIONAL_REPRESENTATION('',(#33),#50); 28/* GEOMETRIC_REPRESENTATION_CONTEXT (2D) */ 29#50=GEOMETRIC_REPRESENTATION_CONTEXT(2); 30/* PCURVE: associates 3D host surface with 2D parameter curve */ 31#41=PCURVE('',#14,#40); 32/* SEAM_CURVE: the defect entity â triggers BRL-CAD LoadONBrep stub */ 33/* SEAM_CURVE(name, edge_geometry, associated_geometry, master_representation) */ 34#42=SEAM_CURVE('seam',#24,(#41),.PCURVE_S1.); 35/* Topology referencing the seam curve */ 36#51=VERTEX_POINT('v_bot',#20); 37#52=VERTEX_POINT('v_top',#21); 38#53=EDGE_CURVE('seam_edge',#51,#52,#42,.T.); 39ENDSEC; 40END-ISO-10303-21;