step-examples/12-2c-surfaces/Gs187.stp
Sources
- https://github.com/Open-Cascade-SAS/OCCT/issues/572 (OCCT 7.8.0–7.9.x BRepMesh_IncrementalMesh returns null triangulation on CONICAL_SURFACE faces
- OCCT 7.6.0 tessellates correctly). B4 wave-5 DEF-M (LGPL-clean — pattern only, no bytes copied).
Description
STEP file with a `MANIFOLD_SOLID_BREP` whose `CLOSED_SHELL` has three `ADVANCED_FACE` entities: (a) `CONICAL_SURFACE` lateral face (truncated cone frustum, R_bottom=15 mm, R_top=5 mm, height=20 mm, semi_angle≈0.464 rad), (b) a `PLANE` bottom cap (z=0, radius=15), and (c) a `PLANE` top cap (z=20, radius=5). The BRep geometry is geometrically valid and passes `checkshape`. The defect is that `BRepMesh_IncrementalMesh` in OCCT 7.8.0–7.9.x silently returns null (zero-triangle) triangulation on the `CONICAL_SURFACE` lateral face while OCCT 7.6.0 tessellates it correctly. This is a historical-fix demonstration: on current OCCT the mesher may function correctly; the fixture documents the triggering geometry class for conformance testing against 7.8/7.9 builds.
Reproducer recipe
`CONICAL_SURFACE` with apex at z=30 mm (above frustum), axis pointing down (−Z), semi_angle=atan(10/20)≈0.464 rad, radius=0; bottom circle at z=0 R=15, top circle at z=20 R=5; two `PLANE` cap faces; `CLOSED_SHELL` + `MANIFOLD_SOLID_BREP` + `ADVANCED_BREP_SHAPE_REPRESENTATION`.
Expected kernel behavior
`BRepMesh_IncrementalMesh` must produce non-empty triangulation (non-zero triangle count) on all three faces including the `CONICAL_SURFACE` lateral face; silent null triangulation on any face is a meshability defect.
Notes
Historical-fix demonstration: OCCT 7.8.0–7.9.x BRepMesh regression fixed in later versions. Local OCCT may yield correct tessellation; fixture documents the class for 7.8/7.9 testing. Synonyms: "CONICAL_SURFACE null triangulation OCCT 7.8", "BRepMesh cone face empty tessellation", "OCCT issue 572 conical surface", "cone frustum zero triangles BRepMesh", "IncrementalMesh null output cone".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Byte assertions
contains(b'CONICAL_SURFACE')contains(b'MANIFOLD_SOLID_BREP')
Tier-3 assertions
n_faces_total == 3faces[2].surface_type == "cone"faces[2].quadric.semi_angle == 0.463647609001face[2].surface_type == "cone"edge[0].curve_type == "circle"edge[0].analytic.radius == 15.0edge[1].curve_type == "circle"edge[1].analytic.radius == 5.0edge[2].curve_type == "circle"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Gs187: CONICAL_SURFACE (R_bottom=15, R_top=5, height=20, semi_angleâ0.464 rad) IS ADVANCED_FACE.face_geometry in CLOSED_SHELL; OCCT 7.8.0-7.9.x BRepMesh_IncrementalMesh returns null triangulation on cone lateral face (silent failure, zero triangles); OCCT 7.6 tessellates correctly; historical-fix demonstration (OCCT issue #572); 3 faces: lateral cone + 2 plane caps â MANIFOLD_SOLID_BREP IS model entity */ 3HEADER; 4FILE_DESCRIPTION(('Gs187'),'2;1'); 5FILE_NAME('Gs187.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,30.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=CONICAL_SURFACE('',#4,0.0,0.463647609001); 15#6=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#7=DIRECTION('',(0.0,0.0,-1.0)); 17#8=DIRECTION('',(1.0,0.0,0.0)); 18#9=AXIS2_PLACEMENT_3D('',#6,#7,#8); 19#10=PLANE('',#9); 20#11=CARTESIAN_POINT('',(0.0,0.0,20.0)); 21#12=DIRECTION('',(0.0,0.0,1.0)); 22#13=DIRECTION('',(1.0,0.0,0.0)); 23#14=AXIS2_PLACEMENT_3D('',#11,#12,#13); 24#15=PLANE('',#14); 25#16=CARTESIAN_POINT('',(0.0,0.0,0.0)); 26#17=DIRECTION('',(0.0,0.0,-1.0)); 27#18=DIRECTION('',(1.0,0.0,0.0)); 28#19=AXIS2_PLACEMENT_3D('',#16,#17,#18); 29#20=CIRCLE('gs187_bot_circ',#19,15.0); 30#21=CARTESIAN_POINT('',(15.0,0.0,0.0)); 31#22=VERTEX_POINT('',#21); 32#23=EDGE_CURVE('gs187_bot_circle',#22,#22,#20,.T.); 33#24=CARTESIAN_POINT('',(0.0,0.0,20.0)); 34#25=DIRECTION('',(0.0,0.0,1.0)); 35#26=DIRECTION('',(1.0,0.0,0.0)); 36#27=AXIS2_PLACEMENT_3D('',#24,#25,#26); 37#28=CIRCLE('gs187_top_circ',#27,5.0); 38#29=CARTESIAN_POINT('',(5.0,0.0,20.0)); 39#30=VERTEX_POINT('',#29); 40#31=EDGE_CURVE('gs187_top_circle',#30,#30,#28,.T.); 41#32=ORIENTED_EDGE('',$,$,#23,.T.); 42#33=EDGE_LOOP('',(#32)); 43#34=FACE_OUTER_BOUND('',#33,.T.); 44#35=ADVANCED_FACE('',(#34),#10,.T.); 45#36=ORIENTED_EDGE('',$,$,#31,.T.); 46#37=EDGE_LOOP('',(#36)); 47#38=FACE_OUTER_BOUND('',#37,.T.); 48#39=ADVANCED_FACE('',(#38),#15,.T.); 49#40=ORIENTED_EDGE('',$,$,#23,.F.); 50#41=EDGE_LOOP('',(#40)); 51#42=ORIENTED_EDGE('',$,$,#31,.T.); 52#43=EDGE_LOOP('',(#42)); 53#44=FACE_OUTER_BOUND('',#41,.T.); 54#45=FACE_BOUND('',#43,.T.); 55#46=ADVANCED_FACE('gs187_cone_lateral',(#44,#45),#5,.T.); 56#47=CLOSED_SHELL('gs187_shell',(#35,#39,#46)); 57#48=MANIFOLD_SOLID_BREP('gs187_solid',#47); 58#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 59#9051=PRODUCT('Gs187','Gs187','',(#9050)); 60#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 61#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 62#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 63#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 64#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 65#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 66#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 67#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 68#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 69#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#48),#9060); 70#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 71ENDSEC; 72END-ISO-10303-21;