FUNCTION valid_csg_2d_primitives

(* SCHEMA step_merged_ap_schema; *)
-- IN AP242
FUNCTION valid_csg_2d_primitives
      (input : csg_solid_2d ) : BOOLEAN;
      CASE FALSE OF
         'STEP_MERGED_AP_SCHEMA.PRIMITIVE_2D' IN TYPEOF(input\csg_solid_2d.tree_root_expression) :
               BEGIN
                  IF SIZEOF([ 'STEP_MERGED_AP_SCHEMA.CIRCULAR_AREA', 'STEP_MERGED_AP_SCHEMA.COMPLEX_AREA', 'STEP_MERGED_AP_SCHEMA.ELLIPTIC_AREA', 'STEP_MERGED_AP_SCHEMA.HALF_SPACE_2D', 'STEP_MERGED_AP_SCHEMA.POLYGONAL_AREA', 'STEP_MERGED_AP_SCHEMA.PRIMITIVE_2D_WITH_INNER_BOUNDARY', 'STEP_MERGED_AP_SCHEMA.RECTANGULAR_AREA' ] * TYPEOF(input\csg_solid_2d.tree_root_expression)) > 0 THEN
                     RETURN (FALSE);
                  ELSE
                     RETURN (FALSE);
                  END_IF;
               END;
         'STEP_MERGED_AP_SCHEMA.BOOLEAN_RESULT_2D' IN TYPEOF(input\csg_solid_2d.tree_root_expression) :
               RETURN (valid_csg_2d_primitives(input\csg_solid_2d.tree_root_expression\boolean_result_2d.first_operand) AND valid_csg_2d_primitives(input\csg_solid_2d.tree_root_expression\boolean_result_2d.second_operand));
      OTHERWISE :
            RETURN (FALSE);
      END_CASE;
END_FUNCTION;

Referenced By

Defintion valid_csg_2d_primitives is references by the following definitions:
DefinitionType
 csg_solid_2d ENTITY


[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2020-07-28T17:02:20-04:00