FUNCTION valid_csg_2d_primitives

(* SCHEMA step_merged_ap_schema; *)
-- IN AP242
FUNCTION valid_csg_2d_primitives
      (input : csg_solid_2d ) : BOOLEAN;
      CASE TRUE 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 (TRUE);
                  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
2024-09-06T14:00:33-04:00