Application module: Physical unit 2D design view | ISO/TS 10303-1724:2018-11(E) © ISO |
This clause specifies the EXPRESS schema derived from the mapping table. It uses elements from the common resources or from other application modules and defines the EXPRESS constructs that are specific to this part of ISO 10303.
This clause constitutes the Module Interpreted Module (MIM) of the application module.
This clause also specifies the modifications that apply to the constructs imported from the common resources.
The following restrictions apply to the use, in this schema, of constructs defined in common resources or in application modules:
Short names of entities defined in this schema are described in Annex A. Unambiguous identification of this schema is defined in Annex B.
EXPRESS specification:
*)
SCHEMA Physical_unit_2d_design_view_mim;
USE FROM
Part_template_shape_with_parameters_mim;
--
ISO/TS 10303-1720
USE FROM
Physical_unit_2d_shape_mim;
--
ISO/TS 10303-1726
USE FROM
Physical_unit_design_view_mim;
--
ISO/TS 10303-1728
REFERENCE FROM
support_resource_schema
--
ISO 10303-41
(bag_to_set);
(*
NOTE 1 The schemas referenced above are specified in the following part of ISO 10303:
Part_template_shape_with_parameters_mim ISO/TS 10303-1720 Physical_unit_2d_shape_mim ISO/TS 10303-1726 Physical_unit_design_view_mim ISO/TS 10303-1728 support_resource_schema ISO 10303-41
NOTE 2 See Annex D, Figures D.1and D.2 for a graphical representation of this schema.
This subclause specifies the MIM entity for this module. The MIM entity and definition is specified below.
EXPRESS specification:
*)
ENTITY component_2d_location
SUBTYPE OF (context_dependent_shape_representation, shape_representation_relationship, representation_relationship_with_transformation, definitional_representation_relationship);
DERIVE
SELF\context_dependent_shape_representation.representation_relation : component_2d_location := SELF;
WHERE
WR1: SELF\representation_relationship.name = 'component 2d location';
END_ENTITY;
(*
Attribute definitions:
representation_relation: an attribute inherited from the context_dependent_shape_representation shall be redeclared as the component_2d_location for the component_2d_location.
Formal propositions:
WR1: The name shall be 'component 2d location'.
This subclause specifies the MIM function for this module. The MIM function and definition is specified below.
EXPRESS specification:
*)
FUNCTION cto2d_determinant_test (cto2d : cartesian_transformation_operator_2d; expected_value : REAL; delta : REAL) : BOOLEAN;
LOCAL det : REAL := 0.0; DRs : LIST [4:4] OF REAL := []; END_LOCAL; DRs[1] := cto2d.u[1].direction_ratios[1]; DRs[2] := cto2d.u[1].direction_ratios[2]; DRs[3] := cto2d.u[2].direction_ratios[1]; DRs[4] := cto2d.u[2].direction_ratios[2]; det := (DRs[1] * DRs[4]) - (DRs[2] * DRs[3]); IF (Abs(expected_value - det) < Abs(delta) ) THEN RETURN (TRUE); ELSE RETURN (FALSE); END_IF;
END_FUNCTION;
(*
Argument definitions:
cto2d: the specified cartesian_transformation_operator_2d.
expected_value: the specified real value.
delta: the specified real value.
*)
END_SCHEMA; -- Physical_unit_2d_design_view_mim
(*
© ISO 2018 — All rights reserved