<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Application of Heuristic Modeling in the Development of an Algorithm for Generating a Binary Tree of an Object According to a Technical Drawing*</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Tyurin</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>gunov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Nizhny Novgorod State University of Architecture and Civil Engineering</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Nizhny Novgorod</institution>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This article presents the problem of developing an algorithm for automated reading of a drawing of an object, consisting of three types with the necessary cuts. According to the drawing, a partition of the object into nonderivative figures should be obtained and boolean operations should be identified, with the help of which the final composite figure will be constructed from non-derivative figures. Thus, in the process of solving this problem, a socalled binary tree of the modeled composite figure will be generated. Moreover, it is necessary to take into account the multiplicativity of the solution to this problem and the possibility of choosing optimal solutions. This paper poses a specific problem, in which non-derivative figures can be got using four formbuilding operations available in the arsenal of tools for getting three-dimensional elements in the Compass 3D geometric modeling system, namely, such operations as "extrusion", "rotation", "along the trajectory" and "cross-sections".</p>
      </abstract>
      <kwd-group>
        <kwd>Heuristic Modeling</kwd>
        <kwd>Reading a Drawing</kwd>
        <kwd>Form-Building Operations</kwd>
        <kwd>Binary Tree</kwd>
        <kwd>Non-Derivative Figure</kwd>
        <kwd>Composite Figure</kwd>
        <kwd>Geometric Modeling</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>1.1</p>
    </sec>
    <sec id="sec-2">
      <title>Problem statement and choice of solution method</title>
      <p>of a drawing of an object, consisting of three types with the necessary cuts. According
to the drawing, a partition of the object into non-derivative figures should be obtained
and boolean operations (BO) should be identified, with the help of which the final
composite figure will be constructed from non-derivative figures. Thus, in the process
of solving this problem, a so-called binary tree of the modeled composite figure will
be generated. Moreover, it is necessary to take into account the multiplicativity of the
solution to this problem and the possibility of choosing optimal solutions.</p>
      <p>
        One should note that when setting such a problem, it is necessary to take into
account the method of getting non-derivative figures. It can be either a pre-formed bank
of objects (geometric primitives) available in some geometric modeling system, or a
set of operations for the formation of such primitives. This paper poses a specific
problem, in which non-derivative figures can be got using four form-building
operations (FO) available in the arsenal of tools for getting three-dimensional elements
in the Compass 3D geometric modeling system, namely, such operations as
"extrusion", "rotation", "along the trajectory" and "cross-sections" [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>
        The problem of reading a drawing in its general formulation refers to informal
problems, according to the classification of V.S. Polozov. These are such problems, the
general algorithm for solving which is unknown, but in each specific case they can be
solved by a person on the basis of experience and intuition [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. The problem posed in
this paper has a sufficient number of restrictions and is difficult to formalize. Therefore,
in order to develop an algorithm for solving this problem, the authors decided to apply
the method of heuristic modeling. The general scheme of applying this approach was
described in the papers of V.S. Polozov [
        <xref ref-type="bibr" rid="ref1 ref3">1, 3</xref>
        ]. The refined scheme for the assigned
problem is shown in Fig. 1.
      </p>
      <p>One can distinguish four levels, each of which carries its own semantic load.</p>
      <p>At the first level (A), the developer of the algorithm (the head of the experiment) is
responsible for the initial setting of the problem, works with experts, and makes
decisions on changing and clarifying the problem. At the second level (B), the
developer of the algorithm uses introspection (self-observation), he analyzes his mental
activity when reading the drawing and tries to highlight the basic steps of the algorithm.
Then each step is broken down into stages that are possible for formalization and,
accordingly, further software implementation. At the same level, the project manager
evaluates the work of experts and either makes additions to the developed algorithm
(moves to the third level), or makes changes to the problem statement - clarifies, breaks
down into smaller stages, i.e. returns to the first level. At the third level (C), the
experiment manager forms a problem for the experts, enters the positive results
obtained during the experiment in the problem solution tree, and assesses the readiness
of this tree. The fourth level (D) is an experiment itself, during which experts - people
with different experience in reading drawings: from an entry-level (applicants,
students) to a professional (teachers, designers) - receive detailed explanations on the
problem statement Experts are explained the essence of the experiment, and then each
of them works at the level of introspection, recording in detail all the stages of their
mental activity while reading the drawing, and then presenting the results to the project
manager.</p>
      <p>Application of Heuristic Modeling in the Development of an Algorithm for Generating 3</p>
      <sec id="sec-2-1">
        <title>Conducted heuristic experiment</title>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Initial data</title>
      <p>During the study, the authors of the article conducted several experiments according to
the above scheme. Drawings of three-dimensional objects of varying degrees of
complexity were used as the initial drawings. In this study, the complexity of an object
is understood as the number and degree of its bounding surfaces.</p>
      <p>Here are some examples of recordings from the stage of introspection of the experiment
leader and experts (for obvious reasons, the recordings of reasoning are given with the
maximum reduction).
2.2.</p>
      <p>Example 1 (first expert)
1.
2.
3.
4.
5.</p>
      <p>In the top view, we select a closed contour in the form of a "cross", consisting
of 12 segments, with two axes of symmetry.</p>
      <p>The front view shows a cut. Its design (namely, half of the frontal cut is aligned
with half of the main view, there is no designation of the trail of the secant
plane) indicates the presence of two planes of symmetry of the surface. It is
clear from the shape of the section projection that the "cross", taken as sketch
1, located in the horizontal plane, must be extruded to a height of 40 mm.
We apply the form-building operation "extrusion" to get a non- derivative
figure 1 (extrusion element) (see Figure 4.)
In the front view, we select a visible contour located in the frontal plane of the
level closest to the observer, in the shape of a "trapezoid", consisting of 5
segments, one of which is represented by a dash-dotted line. Taking into
account the axis of symmetry, we get a closed contour consisting of 6
segments, taken as sketch 2.</p>
      <p>From the top and left views, we determine the depth of the contour extrusion
by 40 mm.</p>
      <p>We apply the form-building operation "extrusion" to get a non- derivative
figure 2 (extrusion element).</p>
      <p>After making sure that these figures are overlapping, we combine them to get
a composite figure 1 using the boolean operation "combination": NF1  NF2
= CF1.</p>
      <p>Application of Heuristic Modeling in the Development of an Algorithm for Generating 5
8.</p>
      <p>In the top view, we select a circle. Having established a connection with half
of the frontal cut, by the shape of the section projection and the presence of
the center line, we identify the shape of the hole - through cylindrical, i.e. we
get a non-derivative figure 3, cylinder.</p>
      <p>We apply the operation "cut by extrusion", which implements the boolean
operation "subtraction": CF 1 \ NF 3 = CF 2.</p>
      <p>After analyzing the three projections and line types, we reveal the presence of
symmetry, which allow us to analyze parts of the species.</p>
      <p>After analyzing the front view, we select several closed contours and select
the visible contour located in the frontal plane of the level closest to the
observer. Taking into account the axis of symmetry, we get a closed contour
consisting of 6 segments, we will use it as sketch 1.</p>
      <p>We apply the form-building operation "extrusion" to get a non- derivative
figure 1 (extrusion element) (see Figure 5).</p>
      <p>After analyzing the top view, where there are no invisible lines and cuts, we
select 7 closed visible contours on it (one contour in the form of a "cross" - 12
segments, four identical rectangles, a circle in the middle, outline - a
rectangle).</p>
      <p>Choosing a more complex one, based on the number of segments, that is, a
closed contour in the form of a "cross", we establish a projection link with the
front and left views to test the possibility of "extruding" the contour at a given
distance of 40 and get a non-derivative figure.
6.
7.
8.</p>
      <p>We apply the form-building operation "extrusion" to get a non- derivative
figure 2 (extrusion element).</p>
      <p>We merge non-derivative figure 1 with non-derivative figure 2 using the
boolean operation to obtain a composite figure (CF1).</p>
      <p>After analyzing the top view, we select a circle. We set a projection
correspondence with the half of the frontal cut to refine the shape of the
through cylindrical hole. We get a non-derivative figure (NF3).</p>
      <p>We remove the non-derivative figure 3 from the composite figure 1, applying
the boolean operation "subtraction", we get the final composite figure (CF2
final).</p>
      <p>Analyzing the three views and types of lines, we conclude that there is
symmetry.</p>
      <p>After analyzing the left view, we select four closed visible contours (one
contour of 8 segments, two identical rectangles, outline - rectangle). We
choose a more complex one, based on the number of segments, that is, a closed
contour of 8 segments.</p>
      <p>We establish a projection connection with the front and top views to test the
possibility of "extruding" the contour at a given distance of 60 and get a
nonderivative figure (NF1) (see Fig. 6).</p>
      <p>We apply the form-building operation "extrusion" to get a non- derivative
figure 1 (extrusion element).</p>
      <p>Application of Heuristic Modeling in the Development of an Algorithm for Generating 7
5.
6.
7.
8.
9.
10.</p>
      <p>After analyzing half of the front view, taking into account the presence of
symmetry, we select four closed visible contours (one contour of 6 segments,
two identical right-angled triangles, outline - rectangle). We choose a more
complex one based on the number of segments.</p>
      <p>We establish a projection link with the left and front views to test the
possibility of "extruding" the contour at a given distance of 40 and get a
nonderivative figure (NF 2).</p>
      <p>We apply the form-building operation "extrusion" to get a non- derivative
figure 2 (extrusion element).</p>
      <p>We merge non-derivative figure 1 with non-derivative figure 2 applying the
boolean operation "combination", we get a composite figure (CF1).</p>
      <p>We look at the circle in the top view and make a projection correspondence
with the half of the frontal cut to refine the shape of the hole. Non-derivative
figure 3 is a through cylindrical hole.</p>
      <p>We remove the non-derivative figure 3 from the composite figure 1, applying
the boolean operation "subtraction", we get the final composite figure (CF
final).</p>
    </sec>
    <sec id="sec-4">
      <title>2.5. Example 4 (fourth expert)</title>
      <p>1.
2.
3.</p>
      <p>Analyzing the three views, we conclude that the three sketches in the three
views are projections of a 40x60x40 parallelepiped.</p>
      <p>Having selected a rectangular contour in the front view (outline), we extrude
it by 40 mm - we get NF1 (parallelepiped - "blank").</p>
      <p>Analyzing the front view, we identify the "cut" corner that forms the "triangle"
contour, which can act as a sketch to get a triangular prism NF2.
4.
5.
6.
7.</p>
      <p>Analyzing the top view, we determine the extrusion depth of NF2 - 15 mm.
We subtract the triangular prism NF2 from the “blank” NF1 using Boolean
operation “subtraction”.</p>
      <p>The number of such triangular prisms is four: NF2, NF3, NF4, NF5:
NF1 \ NF2 = CF1,
CF1 \ NF3 = CF2,
CF2 \ NF4 = CF3,
CF3 \ NF5 = CF4.</p>
      <p>In the top view, we see a circle and by the presence of the axis of rotation in
other views and the content of the section projection, we understand that a
cylinder is cut, i.e. NF6.</p>
      <p>We subtract the cylinder NDF6 from the previously obtained composite figure
by applying the boolean operation "subtraction" CF4 \ NF6 = CF5.</p>
      <p>This example shows that experts reason in different ways and one can read the
drawing and create a 3D model in different ways. The minimum number of
nonderivative figures in this case turned out to be three, but the question of rationality
and simplicity of creating a model remains open in this case and requires further
analysis.</p>
      <p>Application of Heuristic Modeling in the Development of an Algorithm for Generating 9
The set of non-derived figures coincided in some cases, and in some differed,
but led to an identical binary tree. The last example showed the possibility of
reasoning leading to a complex binary tree, but simpler non-derivative figures from
the point of view of perception (this often turns out to be a decisive factor). During
the study it was confirmed that the complexity of the structure of a binary tree of
an object, compiled by various experts, therefore, the number of non-derivative
figures required to build a model of an object in a geometric modeling system (and,
therefore, the connections between them), does not reflect the complexity of the
object of modeling, which is determined by the number and degree of its bounding
surfaces. One should note once again that the problem solution tree (the basis of an
algorithm that allows automating the process of reading a drawing) at the level of
introspection and when analyzing the data of all experts is expanded and
supplemented with new stages.</p>
      <p>Some of the "reasoning" of the participants in the experiment, which look like
"free" judgments, is in fact an important step towards the formalization of mental
acts in the analysis of the drawing. They require further breakdown to identify
specific features and attributes, therefore, it is necessary to analyze drawings of
different levels to identify clarifying factors and model various situations when a
real algorithm is working.
3</p>
      <sec id="sec-4-1">
        <title>Conclusion</title>
        <p>During the study it was concluded that it is advisable to continue such heuristic
experiments (their number should be large to obtain a reliable algorithm that works on
real objects. But the experiments already carried out at this stage made it possible to
identify in the participants' reasoning the general key factors in the analysis of the
drawing, which are signs of formative and boolean operations, which are available for
formalization, and, therefore, for software implementation.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Polozov</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Budekov</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rotkov</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Computer-aided design</article-title>
          .
          <source>Mechanical Engineering</source>
          ,
          <volume>280</volume>
          p. (
          <year>1983</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2. KOMPAS-3D. Homepage, https://kompas.ru/source/info_materials/user-manuals
          <source>/rukovodstvo-polzovatelyakompas-3d.pdf, last accessed</source>
          <year>2020</year>
          /07/10.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Kotov</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Polozov</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shirokova</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Computer graphics algorithms</article-title>
          .
          <source>Mechanical Engineering</source>
          ,
          <volume>231</volume>
          p. (
          <year>1977</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Zhilina</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lagunova</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Moshkova</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Romensky</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rotkov</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Smychek</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tyurina</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Synthesis of a parametric structural model of a 3D object</article-title>
          .
          <source>GraphiCon'2017: 27th International conference on computer graphics and vision:</source>
          Perm State National Research University, pp.
          <fpage>350</fpage>
          -
          <lpage>354</lpage>
          .
          <string-name>
            <surname>Perm</surname>
          </string-name>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Zhilina</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lagunova</surname>
            ,
            <given-names>M</given-names>
          </string-name>
          , Moshkova,
          <string-name>
            <given-names>T.</given-names>
            ,
            <surname>Rotkov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Tyurina</surname>
          </string-name>
          ,
          <string-name>
            <surname>V.</surname>
          </string-name>
          :
          <article-title>Algorithm of automated construction of object 3D-models on orthogonal projections using Kompas3D system</article-title>
          .
          <source>Privolzhsky scientific journal 4</source>
          (
          <issue>32</issue>
          ),
          <fpage>42</fpage>
          -
          <lpage>48</lpage>
          (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>