Twi101 — `POLYLINE` basis curve LoadONBrep stub (BRL-CAD step-g)

§12.3b wires / loops / edges (sub-class: polyline basis unimplemented)

P1 — silent data loss

topology

Sources

Sender

Older translators (legacy Pro/E versions, pre-2010 SolidWorks STEP exporters) that prefer broken-line representations of bevels and chamfers over arc-circle compositions; also tessellated-mesh-to-STEP converters that emit polylines.

Description

`Polyline.cpp` has a working `Load` that fills the in-memory model with the list of CARTESIAN_POINTs, but no `LoadONBrep` override exists; the call falls through to the base stub which prints `"not implemented for Polyline"` and returns false. A topology entity using POLYLINE as its underlying basis loses the geometry: only the start/end vertices remain. The receiver builds a zero-length topology entity or fails to build the wire.

Reproducer recipe

`#20=POLYLINE('chamfer_basis',(#10,#11,#12));` referenced from a topology entity via its underlying-curve slot; step-g loads the polyline points but the LoadONBrep stub drops the basis.

Expected kernel behavior

heal-and-accept; Polyline must override `LoadONBrep` to build a piecewise-linear `ON_PolylineCurve`; if more than 2 vertices, optionally promote to a degree-1 B-spline with knot multiplicity 2 at endpoints.

Notes

**See also**: Twi100, Pmi053. Synonyms: "POLYLINE basis dropped", "step-g Polyline LoadONBrep stub", "broken-line chamfer disappears on STEP import", "polyline silently lost", "Pro/E chamfer polyline drops in BRL-CAD".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Twi100, Pmi053

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Twi101: GEOMETRIC_CURVE_SET containing EDGE_LOOP with one EDGE_CURVE; underlying curve is POLYLINE 'chamfer_basis' with 3 CARTESIAN_POINTs forming a chamfered corner: (0,0,0)->(1,0,0)->(2,1,0); step-g Polyline.cpp has Load but no LoadONBrep override; call falls through to base stub 'not implemented for Polyline'; geometry is lost — only start/end vertices remain; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty; EDGE_CURVE IS wired into EDGE_LOOP; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi101'),'2;1');
5FILE_NAME('Twi101.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=CARTESIAN_POINT('',(1.0,0.0,0.0));
12#3=CARTESIAN_POINT('',(2.0,1.0,0.0));
13#4=POLYLINE('chamfer_basis',(#1,#2,#3));
14#5=CARTESIAN_POINT('',(0.0,0.0,0.0));
15#6=VERTEX_POINT('',#5);
16#7=CARTESIAN_POINT('',(2.0,1.0,0.0));
17#8=VERTEX_POINT('',#7);
18#9=EDGE_CURVE('',#6,#8,#4,.T.);
19#10=ORIENTED_EDGE('',*,*,#9,.T.);
20#11=EDGE_LOOP('',(#10));
21#12=GEOMETRIC_CURVE_SET('',(#11));
22#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
23#9051=PRODUCT('Twi101','Twi101','',(#9050));
24#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
25#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
26#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
27#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
28#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
29#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
30#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
31#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
32#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
33#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#12),#9060);
34#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
35ENDSEC;
36END-ISO-10303-21;