step-examples/12-3b-wires/Twi299.stp
Sources
- occt-coverage `exchange/problems.json` `stp-makeedge-validity-fallback` (`StepToTopoDS_TranslateEdge::DecodeMakeEdgeError`, `StepToTopoDS_TranslateEdge.cxx:70-131`
- `MakeFromCurve3D` fallback force-build, `:483-489`). Sibling of Twi086/Bo030/Gs029 (already-covered subvariants) and Bo030 specifically (per-vertex tolerance-underflow evidentiary pattern reused here).
Description
Building a proper OCCT edge from the translated 3D curve, its vertices, and their trim parameters (`BRepLib_MakeEdge`) requires projecting each vertex's 3D point onto the curve when no explicit trim parameter is supplied. For a point exactly on a circle's own axis of symmetry (its center), every point on the circle is equidistant — there is no unique nearest point, so the projection is genuinely ambiguous/fails, distinct from Bo030's off-curve-but-well-defined-nearest-point case and Twi086's zero-length-line case. OCCT still force-builds a raw edge directly from curve+vertices+parameters rather than aborting.
Reproducer recipe
`ADVANCED_FACE` on a `PLANE`; `FACE_OUTER_BOUND` is a single whole-circle `EDGE_CURVE` (radius 1, centered at origin) whose shared `VERTEX_POINT` (same entity at both `edge_start`/`edge_end`) sits at `(0,0,0)` — the circle's own center — instead of any point on the circle.
Expected kernel behavior
force-build the edge from the curve/vertex/parameter data anyway, logging the point-projection failure as a diagnostic rather than aborting the edge's translation; widen the affected vertex's tolerance to cover the real gap between the declared point and the curve it nominally bounds.
Notes
**See also**: Twi086, Bo030, Gs029 (the class's other subvariants). Live-verified (this worktree, OCP/OCCT 7.8.1): reads to completion without aborting, `occt=shape(1)/shape(1)`, `brepcheck.valid=True`; edge[0]'s OWN tolerance stays default `1e-07`, but BOTH vertex tolerances are blown out to `1.000001` — essentially the circle's radius — confirming `BRepLib_MakeEdge`'s fallback force-built the edge directly from curve+vertex+params rather than aborting, and the vertex-tolerance-update pass (`BRepLib::UpdateInnerTolerances`, Bo030's own citation) had to widen the VERTEX tolerance to cover the true 1.0-unit gap between the declared off-curve vertex and the curve it nominally bounds — the same "force-built anyway, tolerance absorbs the lie" evidentiary pattern as Bo030, now for the point-projection-fails subvariant specifically. Synonyms: "vertex at circle center", "no unique nearest point on curve", "ambiguous curve projection", "point on axis of symmetry", "MakeEdge point projection failure". Provenance tier: bytes-sufficient.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(3) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Byte assertions
contains(b'off_curve_center_vertex')count_entity_def(b'CIRCLE') == 1count_entity_def(b'VERTEX_POINT') == 1
Tier-3 assertions
face[0].surface_type == "plane"
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/* Twi299: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND references an EDGE_LOOP with one whole-circle EDGE_CURVE (radius 1, centered at origin); off_curve_center_vertex (the SAME VERTEX_POINT at both edge_start and edge_end) sits at (0,0,0) -- the circle's own center, on its axis of symmetry, equidistant (radius 1) from every point of the circle, so there is NO unique nearest point for BRepLib_MakeEdge's vertex-to-curve projection to find; point-projection-onto-3D-curve failure IS the mechanism (DecodeMakeEdgeError / MakeFromCurve3D fallback force-build); EDGE_LOOP IS wired into FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi299'),'2;1'); 5FILE_NAME('Twi299.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.0,0.0,0.0)); 16#7=AXIS2_PLACEMENT_3D('',#6,#2,#3); 17#8=CIRCLE('',#7,1.0); 18#9=CARTESIAN_POINT('',(0.0,0.0,0.0)); 19#10=VERTEX_POINT('off_curve_center_vertex',#9); 20#11=EDGE_CURVE('',#10,#10,#8,.T.); 21#12=ORIENTED_EDGE('',*,*,#11,.T.); 22#13=EDGE_LOOP('',(#12)); 23#14=FACE_OUTER_BOUND('',#13,.T.); 24#15=ADVANCED_FACE('',(#14),#5,.T.); 25#16=OPEN_SHELL('',(#15)); 26#17=SHELL_BASED_SURFACE_MODEL('',(#16)); 27#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 28#9051=PRODUCT('Twi299','Twi299','',(#9050)); 29#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 30#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 31#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 32#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 33#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 34#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 35#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 36#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 37#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 38#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#17),#9060); 39#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 40ENDSEC; 41END-ISO-10303-21;