step-examples/12-3b-wires/Twi293.stp
Sources
- OCCT `static CorrectParameter()` Offset/Trimmed-curve knot-snap fallback — `ShapeAnalysis_TransferParametersProj.cxx:234-254` @ `bd2a789f15235755ce4d1a3b07379a2e062fdc2e`
- occt-coverage/tkshhealing/problems.json `tkshh-closed-edge-full-period-unsplit`, subvariant "Parameter correction nested inside Offset/Trimmed curve wrappers falls back to nearest true-basis-curve knot"
Description
Twi019 demonstrates the full-period-edge-needs-splitting defect directly on a bare `CIRCLE` `EDGE_CURVE`. Real STEP exporters sometimes wrap the periodic basis curve in an intermediate `TRIMMED_CURVE` entity instead. This fixture's defect edge references a `TRIMMED_CURVE` (trimmed to the full `[0, 2π]` range) whose `basis_curve` is the full-period `CIRCLE`, rather than referencing the `CIRCLE` directly — start vertex equals end vertex, mirroring Twi019's core pattern but one layer removed.
Reproducer recipe
`ADVANCED_FACE` on a `PLANE`; single-edge `EDGE_LOOP` (Twi019/Twi017's "closed curve is the entire wire" pattern) whose sole `EDGE_CURVE` has `edge_start == edge_end` and whose curve slot is a `TRIMMED_CURVE(basis_curve=#circle, trim_1=PARAMETER_VALUE(0.0), trim_2=PARAMETER_VALUE(2*pi), .T., .PARAMETER.)`.
Expected kernel behavior
fall back to the true basis `CIRCLE`'s own closure/knot structure through the `TRIMMED_CURVE` wrapper to compute the seam split point, or reject as malformed.
Notes
**See also**: Twi019 (the bare-`CIRCLE`, unwrapped sibling of this mechanism). Verified live — a STRONGER finding than the wrapper merely defeating the periodic-knot correction: OCCT 7.8.1 fails to translate the `TRIMMED_CURVE`-wrapped full-period `EDGE_CURVE` at all (tested with both a `PARAMETER_VALUE(0, 2π)` trim and a `CARTESIAN_POINT` same-point-both-ends trim; both fail identically), silently drops the entire `EDGE_LOOP`/`FACE_OUTER_BOUND`, and falls through to STEP's "closed surface with no outer bound" rule (Twi091's pattern): the `ADVANCED_FACE` reads as an UNBOUNDED natural plane (`n_edges_total==0`, `n_vertices_total==0`, `face[0].area≈8e100`, `brepcheck.valid==True` regardless). This is a harsher failure than Twi019's bare-`CIRCLE` case (which loads the single closed edge as-is, unsplit, with `brepcheck.valid==False`) — confirming the wrapper genuinely defeats the closed-curve-split path rather than merely leaving it unsplit; there is no true-basis-curve fallback for this shape at all in this OCCT build. A plain (non-full-period) `TRIMMED_CURVE`-wrapped edge translates fine (independently probed), isolating the failure to the full-period-trim combination specifically. Synonyms: "trimmed curve wraps closed circle", "wrapper defeats closed-edge split", "full-period edge inside TRIMMED_CURVE", "face reads as unbounded natural plane", "wire dropped behind curve wrapper". Provenance tier: bytes-sufficient.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Byte assertions
count_entity_def(b'TRIMMED_CURVE') == 1count_entity_def(b'CIRCLE') == 1contains(b'wrapped_closed_edge')
Tier-3 assertions
face[0].surface_type == "plane"n_edges_total == 0n_vertices_total == 0brepcheck.valid == 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/* Twi293: OPEN_SHELL with one ADVANCED_FACE on a PLANE; FACE_OUTER_BOUND references an EDGE_LOOP whose sole EDGE_CURVE 'wrapped_closed_edge' has start vertex == end vertex (full-period, Twi019's core pattern) but its curve slot references a TRIMMED_CURVE(trim_1=PARAMETER_VALUE(0.0), trim_2=PARAMETER_VALUE(2*pi), .T., .PARAMETER.) wrapping a plain full-period CIRCLE basis_curve â NOT the CIRCLE directly (Twi019's pattern); the closed-curve split/periodic-knot-correction logic must look past the TRIMMED_CURVE wrapper (which carries no independent knot structure of its own) to the true basis CIRCLE underneath to compute the seam split point; defect edge IS wired into EDGE_LOOP, FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi293'),'2;1'); 5FILE_NAME('Twi293.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('',(2.5,0.0,0.0)); 11#2=VERTEX_POINT('',#1); 12#3=CARTESIAN_POINT('',(0.0,0.0,0.0)); 13#4=DIRECTION('',(0.0,0.0,1.0)); 14#5=DIRECTION('',(1.0,0.0,0.0)); 15#6=AXIS2_PLACEMENT_3D('',#3,#4,#5); 16#7=CIRCLE('',#6,2.5000000000); 17#8=TRIMMED_CURVE('',#7,(PARAMETER_VALUE(0.0)),(PARAMETER_VALUE(6.2831853072)),.T.,.PARAMETER.); 18#9=EDGE_CURVE('wrapped_closed_edge',#2,#2,#8,.T.); 19#10=ORIENTED_EDGE('',$,$,#9,.T.); 20#11=EDGE_LOOP('',(#10)); 21#12=FACE_OUTER_BOUND('',#11,.T.); 22#13=CARTESIAN_POINT('',(0.0,0.0,0.0)); 23#14=DIRECTION('',(0.0,0.0,1.0)); 24#15=DIRECTION('',(1.0,0.0,0.0)); 25#16=AXIS2_PLACEMENT_3D('',#13,#14,#15); 26#17=PLANE('',#16); 27#18=ADVANCED_FACE('',(#12),#17,.T.); 28#19=OPEN_SHELL('',(#18)); 29#20=SHELL_BASED_SURFACE_MODEL('',(#19)); 30#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 31#9051=PRODUCT('Twi293','Twi293','',(#9050)); 32#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 33#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 34#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 35#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 36#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 37#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 38#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 39#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 40#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 41#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#20),#9060); 42#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 43ENDSEC; 44END-ISO-10303-21;