Commit 11e2ae72 authored by Iulian Grindeanu's avatar Iulian Grindeanu
Browse files

fix test for iGeom MOAB


git-svn-id: https://svn.mcs.anl.gov/repos/ITAPS/MOAB/trunk@4125 6162379e-bd28-0410-9a7d-b7f4dcfcad3c
parent 5afd9cb2
ISO-10303-21;
HEADER;
FILE_DESCRIPTION( ( 'STEP AP203' ), '1' );
FILE_NAME( 'brick.stp', ' ', ( ' ' ), ( ' ' ), 'XStep 1.0', ' ', ' ' );
FILE_SCHEMA( ( 'CONFIG_CONTROL_DESIGN' ) );
ENDSEC;
DATA;
#1 = DESIGN_CONTEXT( '', #27, 'design' );
#2 = APPLICATION_PROTOCOL_DEFINITION( 'INTERNATIONAL STANDARD', 'config_control_design', 1994, #27 );
#3 = PRODUCT_CATEGORY_RELATIONSHIP( 'NONE', 'NONE', #28, #29 );
#4 = DATE_AND_TIME( #30, #31 );
#5 = DATE_TIME_ROLE( 'creation_date' );
#6 = DATE_TIME_ROLE( 'classification_date' );
#7 = PERSON_AND_ORGANIZATION_ROLE( 'creator' );
#8 = PERSON_AND_ORGANIZATION_ROLE( 'design_supplier' );
#9 = PERSON_AND_ORGANIZATION_ROLE( 'classification_officer' );
#10 = PERSON_AND_ORGANIZATION_ROLE( 'design_owner' );
#11 = APPROVAL_PERSON_ORGANIZATION( #32, #33, #34 );
#12 = APPROVAL_DATE_TIME( #4, #33 );
#13 = CC_DESIGN_APPROVAL( #33, ( #35, #36, #37 ) );
#14 = CC_DESIGN_DATE_AND_TIME_ASSIGNMENT( #4, #5, ( #37 ) );
#15 = CC_DESIGN_DATE_AND_TIME_ASSIGNMENT( #4, #6, ( #35 ) );
#16 = CC_DESIGN_PERSON_AND_ORGANIZATION_ASSIGNMENT( #32, #10, ( #38 ) );
#17 = CC_DESIGN_PERSON_AND_ORGANIZATION_ASSIGNMENT( #32, #7, ( #37 ) );
#18 = CC_DESIGN_PERSON_AND_ORGANIZATION_ASSIGNMENT( #32, #7, ( #36 ) );
#19 = CC_DESIGN_PERSON_AND_ORGANIZATION_ASSIGNMENT( #32, #8, ( #36 ) );
#20 = CC_DESIGN_SECURITY_CLASSIFICATION( #35, ( #36 ) );
#21 = CC_DESIGN_PERSON_AND_ORGANIZATION_ASSIGNMENT( #32, #9, ( #35 ) );
#22 = SHAPE_DEFINITION_REPRESENTATION( #39, #40 );
#23 = ( GEOMETRIC_REPRESENTATION_CONTEXT( 3 )GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT( ( #43 ) )GLOBAL_UNIT_ASSIGNED_CONTEXT( ( #45, #46, #47 ) )REPRESENTATION_CONTEXT( 'NONE', 'WORKSPACE' ) );
#27 = APPLICATION_CONTEXT( 'CONFIGURATION CONTROLLED 3D DESIGNS OF MECHANICAL PARTS AND ASSEMBLIES' );
#28 = PRODUCT_CATEGORY( 'part', 'NONE' );
#29 = PRODUCT_RELATED_PRODUCT_CATEGORY( 'detail', ' ', ( #38 ) );
#30 = CALENDAR_DATE( 2009, 29, 9 );
#31 = LOCAL_TIME( 15, 30, 51.0000000000000, #49 );
#32 = PERSON_AND_ORGANIZATION( #50, #51 );
#33 = APPROVAL( #52, 'SOLID MODEL' );
#34 = APPROVAL_ROLE( 'APPROVED' );
#35 = SECURITY_CLASSIFICATION( '', '', #53 );
#36 = PRODUCT_DEFINITION_FORMATION_WITH_SPECIFIED_SOURCE( ' ', 'NONE', #38, .NOT_KNOWN. );
#37 = PRODUCT_DEFINITION( 'NONE', 'NONE', #36, #1 );
#38 = PRODUCT( '1', '1', 'PART-1-DESC', ( #54 ) );
#39 = PRODUCT_DEFINITION_SHAPE( 'NONE', 'NONE', #37 );
#40 = ADVANCED_BREP_SHAPE_REPRESENTATION( '1', ( #55, #56 ), #23 );
#43 = UNCERTAINTY_MEASURE_WITH_UNIT( LENGTH_MEASURE( 1.00000000000000E-06 ), #45, '', '' );
#45 = ( CONVERSION_BASED_UNIT( 'MILLIMETRE', #59 )LENGTH_UNIT( )NAMED_UNIT( #62 ) );
#46 = ( NAMED_UNIT( #64 )PLANE_ANGLE_UNIT( )SI_UNIT( $, .RADIAN. ) );
#47 = ( NAMED_UNIT( #64 )SOLID_ANGLE_UNIT( )SI_UNIT( $, .STERADIAN. ) );
#49 = COORDINATED_UNIVERSAL_TIME_OFFSET( 6, 0, .BEHIND. );
#50 = PERSON( '', 'UNSPECIFIED', $, $, $, $ );
#51 = ORGANIZATION( 'UNSPECIFIED', 'UNSPECIFIED', 'UNSPECIFIED' );
#52 = APPROVAL_STATUS( 'approved' );
#53 = SECURITY_CLASSIFICATION_LEVEL( 'unclassified' );
#54 = MECHANICAL_CONTEXT( '', #27, 'mechanical' );
#55 = MANIFOLD_SOLID_BREP( '1', #70 );
#56 = AXIS2_PLACEMENT_3D( '', #71, #72, #73 );
#59 = LENGTH_MEASURE_WITH_UNIT( LENGTH_MEASURE( 1.00000000000000 ), #74 );
#62 = DIMENSIONAL_EXPONENTS( 1.00000000000000, 0.00000000000000, 0.00000000000000, 0.00000000000000, 0.00000000000000, 0.00000000000000, 0.00000000000000 );
#64 = DIMENSIONAL_EXPONENTS( 0.00000000000000, 0.00000000000000, 0.00000000000000, 0.00000000000000, 0.00000000000000, 0.00000000000000, 0.00000000000000 );
#70 = CLOSED_SHELL( '', ( #75, #76, #77, #78, #79, #80 ) );
#71 = CARTESIAN_POINT( '', ( 0.00000000000000, 0.00000000000000, 0.00000000000000 ) );
#72 = DIRECTION( '', ( 0.00000000000000, 0.00000000000000, 1.00000000000000 ) );
#73 = DIRECTION( '', ( 1.00000000000000, 0.00000000000000, 0.00000000000000 ) );
#74 = ( NAMED_UNIT( #62 )LENGTH_UNIT( )SI_UNIT( .MILLI., .METRE. ) );
#75 = ADVANCED_FACE( '', ( #82 ), #83, .T. );
#76 = ADVANCED_FACE( '', ( #84 ), #85, .F. );
#77 = ADVANCED_FACE( '', ( #86 ), #87, .F. );
#78 = ADVANCED_FACE( '', ( #88 ), #89, .F. );
#79 = ADVANCED_FACE( '', ( #90 ), #91, .F. );
#80 = ADVANCED_FACE( '', ( #92 ), #93, .F. );
#82 = FACE_OUTER_BOUND( '', #94, .T. );
#83 = PLANE( '', #95 );
#84 = FACE_OUTER_BOUND( '', #96, .T. );
#85 = PLANE( '', #97 );
#86 = FACE_OUTER_BOUND( '', #98, .T. );
#87 = PLANE( '', #99 );
#88 = FACE_OUTER_BOUND( '', #100, .T. );
#89 = PLANE( '', #101 );
#90 = FACE_OUTER_BOUND( '', #102, .T. );
#91 = PLANE( '', #103 );
#92 = FACE_OUTER_BOUND( '', #104, .T. );
#93 = PLANE( '', #105 );
#94 = EDGE_LOOP( '', ( #106, #107, #108, #109 ) );
#95 = AXIS2_PLACEMENT_3D( '', #110, #111, #112 );
#96 = EDGE_LOOP( '', ( #113, #114, #115, #116 ) );
#97 = AXIS2_PLACEMENT_3D( '', #117, #118, #119 );
#98 = EDGE_LOOP( '', ( #120, #121, #122, #123 ) );
#99 = AXIS2_PLACEMENT_3D( '', #124, #125, #126 );
#100 = EDGE_LOOP( '', ( #127, #128, #129, #130 ) );
#101 = AXIS2_PLACEMENT_3D( '', #131, #132, #133 );
#102 = EDGE_LOOP( '', ( #134, #135, #136, #137 ) );
#103 = AXIS2_PLACEMENT_3D( '', #138, #139, #140 );
#104 = EDGE_LOOP( '', ( #141, #142, #143, #144 ) );
#105 = AXIS2_PLACEMENT_3D( '', #145, #146, #147 );
#106 = ORIENTED_EDGE( '', *, *, #148, .T. );
#107 = ORIENTED_EDGE( '', *, *, #149, .T. );
#108 = ORIENTED_EDGE( '', *, *, #150, .T. );
#109 = ORIENTED_EDGE( '', *, *, #151, .T. );
#110 = CARTESIAN_POINT( '', ( 0.00000000000000, 0.00000000000000, 5.00000000000000 ) );
#111 = DIRECTION( '', ( 0.00000000000000, 0.00000000000000, 1.00000000000000 ) );
#112 = DIRECTION( '', ( 1.00000000000000, 0.00000000000000, 0.00000000000000 ) );
#113 = ORIENTED_EDGE( '', *, *, #152, .T. );
#114 = ORIENTED_EDGE( '', *, *, #153, .T. );
#115 = ORIENTED_EDGE( '', *, *, #154, .T. );
#116 = ORIENTED_EDGE( '', *, *, #155, .T. );
#117 = CARTESIAN_POINT( '', ( 0.00000000000000, 0.00000000000000, -5.00000000000000 ) );
#118 = DIRECTION( '', ( 0.00000000000000, 0.00000000000000, 1.00000000000000 ) );
#119 = DIRECTION( '', ( 1.00000000000000, 0.00000000000000, 0.00000000000000 ) );
#120 = ORIENTED_EDGE( '', *, *, #156, .T. );
#121 = ORIENTED_EDGE( '', *, *, #153, .F. );
#122 = ORIENTED_EDGE( '', *, *, #157, .F. );
#123 = ORIENTED_EDGE( '', *, *, #151, .F. );
#124 = CARTESIAN_POINT( '', ( 0.00000000000000, -5.00000000000000, 0.00000000000000 ) );
#125 = DIRECTION( '', ( 0.00000000000000, 1.00000000000000, -0.00000000000000 ) );
#126 = DIRECTION( '', ( -0.00000000000000, 0.00000000000000, 1.00000000000000 ) );
#127 = ORIENTED_EDGE( '', *, *, #158, .T. );
#128 = ORIENTED_EDGE( '', *, *, #154, .F. );
#129 = ORIENTED_EDGE( '', *, *, #156, .F. );
#130 = ORIENTED_EDGE( '', *, *, #150, .F. );
#131 = CARTESIAN_POINT( '', ( -5.00000000000000, 0.00000000000000, 0.00000000000000 ) );
#132 = DIRECTION( '', ( 1.00000000000000, 0.00000000000000, 0.00000000000000 ) );
#133 = DIRECTION( '', ( 0.00000000000000, 0.00000000000000, -1.00000000000000 ) );
#134 = ORIENTED_EDGE( '', *, *, #159, .T. );
#135 = ORIENTED_EDGE( '', *, *, #155, .F. );
#136 = ORIENTED_EDGE( '', *, *, #158, .F. );
#137 = ORIENTED_EDGE( '', *, *, #149, .F. );
#138 = CARTESIAN_POINT( '', ( 0.00000000000000, 5.00000000000000, 0.00000000000000 ) );
#139 = DIRECTION( '', ( 0.00000000000000, -1.00000000000000, 0.00000000000000 ) );
#140 = DIRECTION( '', ( 0.00000000000000, 0.00000000000000, -1.00000000000000 ) );
#141 = ORIENTED_EDGE( '', *, *, #157, .T. );
#142 = ORIENTED_EDGE( '', *, *, #152, .F. );
#143 = ORIENTED_EDGE( '', *, *, #159, .F. );
#144 = ORIENTED_EDGE( '', *, *, #148, .F. );
#145 = CARTESIAN_POINT( '', ( 5.00000000000000, 0.00000000000000, 0.00000000000000 ) );
#146 = DIRECTION( '', ( -1.00000000000000, 0.00000000000000, 0.00000000000000 ) );
#147 = DIRECTION( '', ( 0.00000000000000, -0.00000000000000, 1.00000000000000 ) );
#148 = EDGE_CURVE( '', #160, #161, #162, .T. );
#149 = EDGE_CURVE( '', #161, #163, #164, .T. );
#150 = EDGE_CURVE( '', #163, #165, #166, .T. );
#151 = EDGE_CURVE( '', #165, #160, #167, .T. );
#152 = EDGE_CURVE( '', #168, #169, #170, .T. );
#153 = EDGE_CURVE( '', #169, #171, #172, .T. );
#154 = EDGE_CURVE( '', #171, #173, #174, .T. );
#155 = EDGE_CURVE( '', #173, #168, #175, .T. );
#156 = EDGE_CURVE( '', #165, #171, #176, .T. );
#157 = EDGE_CURVE( '', #160, #169, #177, .T. );
#158 = EDGE_CURVE( '', #163, #173, #178, .T. );
#159 = EDGE_CURVE( '', #161, #168, #179, .T. );
#160 = VERTEX_POINT( '', #180 );
#161 = VERTEX_POINT( '', #181 );
#162 = LINE( '', #182, #183 );
#163 = VERTEX_POINT( '', #184 );
#164 = LINE( '', #185, #186 );
#165 = VERTEX_POINT( '', #187 );
#166 = LINE( '', #188, #189 );
#167 = LINE( '', #190, #191 );
#168 = VERTEX_POINT( '', #192 );
#169 = VERTEX_POINT( '', #193 );
#170 = LINE( '', #194, #195 );
#171 = VERTEX_POINT( '', #196 );
#172 = LINE( '', #197, #198 );
#173 = VERTEX_POINT( '', #199 );
#174 = LINE( '', #200, #201 );
#175 = LINE( '', #202, #203 );
#176 = LINE( '', #204, #205 );
#177 = LINE( '', #206, #207 );
#178 = LINE( '', #208, #209 );
#179 = LINE( '', #210, #211 );
#180 = CARTESIAN_POINT( '', ( 5.00000000000000, -5.00000000000000, 5.00000000000000 ) );
#181 = CARTESIAN_POINT( '', ( 5.00000000000000, 5.00000000000000, 5.00000000000000 ) );
#182 = CARTESIAN_POINT( '', ( 5.00000000000000, 0.00000000000000, 5.00000000000000 ) );
#183 = VECTOR( '', #212, 1.00000000000000 );
#184 = CARTESIAN_POINT( '', ( -5.00000000000000, 5.00000000000000, 5.00000000000000 ) );
#185 = CARTESIAN_POINT( '', ( 0.00000000000000, 5.00000000000000, 5.00000000000000 ) );
#186 = VECTOR( '', #213, 1.00000000000000 );
#187 = CARTESIAN_POINT( '', ( -5.00000000000000, -5.00000000000000, 5.00000000000000 ) );
#188 = CARTESIAN_POINT( '', ( -5.00000000000000, 0.00000000000000, 5.00000000000000 ) );
#189 = VECTOR( '', #214, 1.00000000000000 );
#190 = CARTESIAN_POINT( '', ( 0.00000000000000, -5.00000000000000, 5.00000000000000 ) );
#191 = VECTOR( '', #215, 1.00000000000000 );
#192 = CARTESIAN_POINT( '', ( 5.00000000000000, 5.00000000000000, -5.00000000000000 ) );
#193 = CARTESIAN_POINT( '', ( 5.00000000000000, -5.00000000000000, -5.00000000000000 ) );
#194 = CARTESIAN_POINT( '', ( 5.00000000000000, 0.00000000000000, -5.00000000000000 ) );
#195 = VECTOR( '', #216, 1.00000000000000 );
#196 = CARTESIAN_POINT( '', ( -5.00000000000000, -5.00000000000000, -5.00000000000000 ) );
#197 = CARTESIAN_POINT( '', ( 0.00000000000000, -5.00000000000000, -5.00000000000000 ) );
#198 = VECTOR( '', #217, 1.00000000000000 );
#199 = CARTESIAN_POINT( '', ( -5.00000000000000, 5.00000000000000, -5.00000000000000 ) );
#200 = CARTESIAN_POINT( '', ( -5.00000000000000, 0.00000000000000, -5.00000000000000 ) );
#201 = VECTOR( '', #218, 1.00000000000000 );
#202 = CARTESIAN_POINT( '', ( 0.00000000000000, 5.00000000000000, -5.00000000000000 ) );
#203 = VECTOR( '', #219, 1.00000000000000 );
#204 = CARTESIAN_POINT( '', ( -5.00000000000000, -5.00000000000000, 0.00000000000000 ) );
#205 = VECTOR( '', #220, 1.00000000000000 );
#206 = CARTESIAN_POINT( '', ( 5.00000000000000, -5.00000000000000, 0.00000000000000 ) );
#207 = VECTOR( '', #221, 1.00000000000000 );
#208 = CARTESIAN_POINT( '', ( -5.00000000000000, 5.00000000000000, 0.00000000000000 ) );
#209 = VECTOR( '', #222, 1.00000000000000 );
#210 = CARTESIAN_POINT( '', ( 5.00000000000000, 5.00000000000000, 0.00000000000000 ) );
#211 = VECTOR( '', #223, 1.00000000000000 );
#212 = DIRECTION( '', ( 0.00000000000000, 1.00000000000000, 0.00000000000000 ) );
#213 = DIRECTION( '', ( -1.00000000000000, 0.00000000000000, 0.00000000000000 ) );
#214 = DIRECTION( '', ( 0.00000000000000, -1.00000000000000, 0.00000000000000 ) );
#215 = DIRECTION( '', ( 1.00000000000000, 0.00000000000000, 0.00000000000000 ) );
#216 = DIRECTION( '', ( 0.00000000000000, -1.00000000000000, 0.00000000000000 ) );
#217 = DIRECTION( '', ( -1.00000000000000, 0.00000000000000, 0.00000000000000 ) );
#218 = DIRECTION( '', ( 0.00000000000000, 1.00000000000000, 0.00000000000000 ) );
#219 = DIRECTION( '', ( 1.00000000000000, 0.00000000000000, 0.00000000000000 ) );
#220 = DIRECTION( '', ( 0.00000000000000, 0.00000000000000, -1.00000000000000 ) );
#221 = DIRECTION( '', ( 0.00000000000000, 0.00000000000000, -1.00000000000000 ) );
#222 = DIRECTION( '', ( 0.00000000000000, 0.00000000000000, -1.00000000000000 ) );
#223 = DIRECTION( '', ( 0.00000000000000, 0.00000000000000, -1.00000000000000 ) );
ENDSEC;
END-ISO-10303-21;
......@@ -36,6 +36,8 @@ testgeom_LDADD = libiGeomMOAB.la \
$(top_builddir)/itaps/imesh/libiMesh.la \
$(top_builddir)/src/libMOAB.la \
${MOAB_CXX_LINKFLAGS} ${MOAB_CXX_LIBS}
TESTS = $(check_PROGRAMS)
# Automake doesn't seem to have a directory defined for
# platform-dependent data (or include) files. So put
......
......@@ -127,26 +127,9 @@ void handle_error_code(const bool result,
int main( int argc, char *argv[] )
{
#ifndef MESHDIR
#define MESHDIR .
#endif
// Check command line arg
#ifdef FORCE_OCC
#ifndef HAVE_OCC
#error "Cannot force use of OCC w/out OCC support"
#endif
std::string filename = STRINGIFY(MESHDIR) "LeverArm.brep";
std::string engine_opt = ";engine=OCC";
#elif defined(HAVE_ACIS)
std::string filename = STRINGIFY(MESHDIR) "testgeom.sat";
std::string engine_opt = ";engine=ACIS";
#elif defined(HAVE_OCC)
std::string filename = STRINGIFY(MESHDIR) "LeverArm.brep";
std::string engine_opt = ";engine=OCC";
#else
std::string filename = STRINGIFY(MESHDIR) "brick.stp";
std::string filename = STRINGIFY(MESHDIR) "/brick.stp";
std::string engine_opt;
#endif
if (argc == 1) {
std::cout << "Using default input file: " << filename << std::endl;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment