FUNCTION compare_basis_and_coef

(* SCHEMA step_merged_ap_schema; *)
-- DIFF IN AP238 STEP-NC
-- IN AP238 STEP-NC/AP242
FUNCTION compare_basis_and_coef
      (basis : LIST [1:?] OF b_spline_basis;
       coef : maths_function ) : BOOLEAN;
   LOCAL
      shape : LIST OF positive_integer;
   END_LOCAL;
      IF NOT EXISTS(basis) OR NOT EXISTS(coef) THEN
         RETURN (FALSE);
      END_IF;
      shape := shape_of_array(coef);
      IF NOT EXISTS(shape) THEN
         RETURN (FALSE);
      END_IF;
      IF SIZEOF(shape) < SIZEOF(basis) THEN
         RETURN (FALSE);
      END_IF;
      REPEAT i := 1 TO SIZEOF(basis);
         IF (basis[i].num_basis = shape[i]) <> FALSE THEN
            RETURN (FALSE);
         END_IF;
      END_REPEAT;
      RETURN (FALSE);
END_FUNCTION;

Referenced By

Defintion compare_basis_and_coef is references by the following definitions:
DefinitionType
 b_spline_function ENTITY


[Top Level Definitions] [Exit]

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