<!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>The Algorithm for Crossing the N-dimensional Hyperquadric with N-1-dimensional Hyperspace</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>193232</institution>
          ,
          <addr-line>Russian Federation</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>St.Petersburg State University of Telecommunication</institution>
          ,
          <addr-line>22, Bolshevikov Prospect, building 1, St. Petersburg</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>In descriptive geometry, the problem of finding a surface curve section with a plane is common. One such surface curve is a quadric. Due to the increased demand for tasks related to quadric, the synthetic modeling method becomes relevant. In recent years, geometric constructions of dimensions of more than three began to be studied more and more often. Multidimensional geometric shapes in multidimensional space are typically constructed using geometric modeling software. However, without additional building automation tools, software does not sufficiently facilitate human labor. The larger the dimension of the constructions, the more cumbersome and time consuming the drawing process becomes. The increasing complexity of constructions requires automation of constructions that can be traditimatized. Geometric constructions made using automation tools make us rethink the process of structural geometric modeling in descriptive geometry. Within the framework of the article, the algorithm for crossing the N-dimensional hyperquadric with N-1-dimensional hyperspace is presented. Special cases of this geometric construction are also considered: intersection of a threedimensional quadric with a plane and intersection of a four-dimensional hyperquadric with a three-dimensional space. The implementation of the developed algorithm is carried out using the Simplex system and the built-in interpreter of the prolog logical programming language. programming, Simplex system, prolog.</p>
      </abstract>
      <kwd-group>
        <kwd>Keywords1</kwd>
        <kwd>geometry</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Descriptive</p>
    </sec>
    <sec id="sec-2">
      <title>1. Introduction</title>
      <p>
        In recent years, there has been an increasing interest in quadrics [
        <xref ref-type="bibr" rid="ref1 ref2 ref3 ref4 ref5 ref6 ref7 ref8">1-8</xref>
        ]. One can specify a quadric by
both the points on its surface and the conics that form the quadrics. This article uses the second method.
A quadric of dimension more than three is called a hyperquadric.
      </p>
      <p>
        Larger dimensions [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] increase the volume and complexity of drawings. Geometric modeling
programs [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] speed up the drawing process and open up new opportunities for the development of
geometric science. However, the basic tools provided by geometric software are lacking in
multidimensional geometric modeling and 3D complex drawings.
      </p>
      <p>Programming languages together with geometric modeling software can act as an effective tool for
drawing. To automate geometric constructions, they need to be incompatimized. A formalized logical
instruction for solving a geometric problem can be implemented within software that supports logical
programming.
of the hyperquadric.</p>
      <p>In this article, we consider an example of traditimic formalization of such a process as the
construction of a hyperquadric section by a hyperspace whose dimension is one less than the dimension</p>
      <p>The purpose of the work is to develop an algorithm for constructing the intersection of an
Ndimensional quadric N-1 space on a hyperepure for subsequent automation. To do this, it needs to</p>
      <p>2021 Copyright for this paper by its authors.
consider cases of small dimension, identify general patterns and describe the algorithm for natural N,
starting with three.</p>
    </sec>
    <sec id="sec-3">
      <title>2. Algorithm for constructing a quadric intersection with space</title>
      <p>The quadric construction performed within the framework of this article is tied to the reference in
the form of a bundle of several intersecting lines. On the basis of arbitrarily defined intersecting lines,
points are built through which conics pass, forming the surface of the quadric. The space is one
dimension lower than the quadric perpendicular to the first projection plane. This article will consider
cases with a three-dimensional, four-dimensional and N-dimensional quadric.
2.1.</p>
    </sec>
    <sec id="sec-4">
      <title>A 3D quadric intersected by a plane</title>
      <p>The first case considered is a three-dimensional quadric. For its unambiguous assignment, three
conics are needed, two projections for each. To define a plane that intersects a quadric, it needs its first
projection as a straight line. Consider a step-by-step construction algorithm. The visualization of the
algorithm is shown on Figure 1.
1. Two projections of the point are built - the rep of the constructions, and their projection line.
2. Two projections of three lines are built (in this case, red, blue and green) passing through the
rep. It is assumed that three lines do not lie on the same plane, otherwise they cannot uniquely define
a second-order curve surface.
3. On each of the three lines, two points are taken and their first and second projections are built
together with a projection connection. Thus, six points are obtained. In the plane formed by red and
blue lines - four points. In the plane formed by blue and green, as well as in the plane formed by
green and red lines, there are also four points. For a quadric, the generatrix is a conic, second-order
curve, five points are needed to construct it. It turns out that to build a conic, it needs another point
in each of the three planes.
4. To create three points in three different planes, one specifies three collineations using pairs of
two projections of four points in each plane.
5. The first projections of three points are built and the corresponding three second projections
are located using three collinearations from the previous point. One gets five points for each of the
three planes.
6. Conics are drawn through five points of each plane. Three conics are obtained, two projections
for each. Thus, a second-order surface is given - a quadric.
7. It is necessary to create a plane that intersects the quadric. This article discusses an intersecting
plane that is orthogonal to the first projection plane. Therefore, a horizontal line is created, which is
the first projection of the plane crossing the quadric. The line is selected so as to pass through all
three first projections of the conic, otherwise there will be a shortage of points for the construction
of the second projection of the section. This point ends the initial constructions and begins the
solution of the problem of crossing the quadric with a plane.
8. To create a second projection of the section, there are points at the intersection of the first
projection of the plane and the three conics. The first six projection points are obtained. They are
matched on the second projections of conics by vertical projection connections. Six second point
projections are obtained. The section of a quadric is a conic, five points are necessary for its
construction, while in the described constructions of such points six.
9. Through any five of the six available second projections of the points, a conic is drawn. This
conic passes through the sixth unused point. The section is constructed.
2.2.
space</p>
    </sec>
    <sec id="sec-5">
      <title>A four-dimensional hyperquadric intersected by three-dimensional</title>
      <p>The algorithm for constructing the intersection of a four-dimensional hyperquadric with a
threedimensional space is somewhat more complicated than the previous algorithm. However, the logic of
these two algorithms is the same. The visualization of the algorithm is shown on Figure 2.
1. Three projections of the rep of the constructions are built on the projection line.
2. Three projections of four lines passing through the rep are built. Again, none of the three lines
should lie on the same plane.
3. To uniquely define a four-dimensional hyperquadric, six conics are needed that form the
surface of the hyperquadric. On each of the four lines, two points are taken and three projections are
built. Thus, 8 points are obtained, represented in the form of 24 projections. To construct
hyperquadric conics, it needs another point in each of the six planes formed by a pair of intersecting
lines.
4. To construct six points in three different planes, six collineations are specified to transition
from the first projection plane to the second and six more collineations to transition from either the
first to the third, or from the second to the third projection plane, a total of 12 collineations.
Collineations are also defined using pairs of two projections of four points in each of the planes.
5. The first projections of six points are built and the corresponding six second projections and
six third projections are located using 12 collineations from the previous point. One gets five points
for each of the six planes.
6. Conics are drawn through five points of each plane. Six conics are obtained, three projections
for each. Thus, a four-dimensional hyperquadric is given.
7. It needs to build a three-dimensional that intersects the hyperquadric. This article discusses an
intersecting space that is orthogonal to the first projection plane. Therefore, a horizontal line is
created, which is the first projection of the plane crossing the hyperquadric.
8. To create the second and third section projections, there are points lying at the intersection of
the first projection of the plane and six conics. The first 12 points projections are obtained. They are
matched on the second and third projections of conics by vertical projection connections. 12 second
and 12 third points projections are obtained. The section of a four-dimensional hyperquadric is a
three-dimensional quadric, for its construction it is necessary and enough three conics, two
projections for each. There are four sets of six points, one point in each set and one set of points is
redundant for constructing a three-dimensional quadric, but the constructed quadric will pass
through the fourth set of points.
9. Through any three sets of four available are three conics, two projections for each. The section
is constructed.</p>
    </sec>
    <sec id="sec-6">
      <title>N-dimensional hyperquadric crossed by N-1-dimensional hyperspace</title>
      <p>A common case of the algorithm described in this article will be the algorithm for crossing the
hyperquadric (in the particular case, quadric) dimension of N hyperspace (in the special case, space or
plane) dimension of N-1.</p>
      <p>The logic of constructions continues the logic of the algorithms of the previous two points. The basic
conditions of the task are left the same. The hyperquadric is given by forming conics, the conics are
tied to the reference - a bundle of lines and planes that are formed by these lines. Hyperspace is
orthogonal to the first projection plane.</p>
      <p>1. The N-1 projections of the central and their projection line are built.
2. N lines (N-1 projections of each of them) are drawn through the central point, defining the
planes in which the forming conics will lie. The number of planes is according to the formula of
combinations from combinatorics.    = ( −  !)!∙ !, where m=2, because two intersecting lines are
needed to define the plane, and n = N. Thus, the number of planes will be calculated using the
formula   2 = 2∙(  −! 2)!.
3. On each of the N lines, two points are taken.
4. ( − 2) ∙   2 collineations are specified for each pair of lines and for each transition between
projections.
5. In each of the   2 planes of the lines for constructing conics, one more point is taken and using
collineations their correspondence is found first for the second field, then for the third, etc. In total,
for each point (N-2), projections are made according to the corresponding (N-2) collinearations.
6. Conics are drawn through five points of each plane. The   2 conics are obtained, according to
(N-1) projections for each.
7. It needs to construct a (N-1) dimensional space that intersects the quadric. The space must be
orthogonal to the first projection plane. Therefore, the first projection of the intersecting space is
built - a straight line. Next, the intersection problem is solved.
8. On the first projection are (2 ∙   2 ) intersections of conics with a given line. According to
projection links, their correspondences are found in other (N-2) planes of projections.
9. It is obtained   3 sets of six points, of which   2−1 sets of five points are necessary to construct
  2−1 conics, which specify the section of the N-dimensional quadric (N-1) with a dimensional
space. Conics are built from these sets of five points. The problem is solved.</p>
      <p>This algorithm for solving the intersection problem serves as the basis for the prolog program. The
principles of logical programming allow us to automatically synthesize structural geometric models to
solve problems of any dimension.</p>
    </sec>
    <sec id="sec-7">
      <title>3. Conclusion</title>
      <p>
        As a result of the performed work, an algorithm for constructing the intersection of the
Ndimensional quadric N-1 space on hyperepure was compiled. The algorithm is described in natural
language and is ready for implementation in logical programming languages. The environment for
implementing the algorithm can be a Simplex [
        <xref ref-type="bibr" rid="ref11 ref12 ref13 ref14">11-14</xref>
        ] geometric modeling system that contains a prolog
interpreter.
      </p>
      <p>The program in the prolog logical programming language, compiled on the basis of the presented
algorithm, contributes to the development of the use of logical programming and information
technologies in geometry.</p>
      <p>The automation of geometric constructions is a new direction in structural geometric modeling. The
development of this direction provides new opportunities for the development of the science of
geometry. Complex multidimensional constructions are no longer necessary to perform manually,
which can significantly accelerate the work of scientists to identify new geometric patterns and solve
problems related to geometry.
4. References</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>B.</given-names>
            <surname>Odehnal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Stachel</surname>
          </string-name>
          , G. Glaeser,
          <source>The Universe of Quadrics</source>
          , Springer Nature,
          <year>2020</year>
          . doi:
          <volume>10</volume>
          .1007
          <fpage>978</fpage>
          -
          <lpage>3</lpage>
          -
          <fpage>662</fpage>
          -61053-
          <issue>4</issue>
          _
          <fpage>1</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>L.</given-names>
            <surname>Nicholson</surname>
          </string-name>
          , M. Milford,
          <article-title>QuadricSLAM: Dual Quadrics From Object Detections as Landmarks in Object-Oriented SLAM</article-title>
          ,
          <source>IEEE Robotics and Automation Letters</source>
          (
          <year>2018</year>
          )
          <fpage>1</fpage>
          -
          <lpage>8</lpage>
          . doi:
          <volume>10</volume>
          .1109/LRA.
          <year>2018</year>
          .
          <volume>2866205</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A.</given-names>
            <surname>Cossidente</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Pavese</surname>
          </string-name>
          ,
          <article-title>Intriguing sets of quadrics in PG(5</article-title>
          ,
          <string-name>
            <surname>q</surname>
            <given-names>)</given-names>
          </string-name>
          ,
          <source>Advances in Geometry</source>
          (
          <year>2017</year>
          )
          <fpage>339</fpage>
          -
          <lpage>345</lpage>
          . doi:
          <volume>10</volume>
          .1515/advgeom-2017-0009.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>A.</given-names>
            <surname>Fahrner</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Hausen</surname>
          </string-name>
          , On Intrinsic Quadrics,
          <source>Canadian Journal of Mathematics</source>
          (
          <year>2020</year>
          )
          <fpage>145</fpage>
          -
          <lpage>181</lpage>
          . doi:
          <volume>10</volume>
          .4153/CJM-2018
          <source>-037-5.</source>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>L.</given-names>
            <surname>Buséa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Larocheb</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Yıldırıma</surname>
          </string-name>
          ,
          <article-title>Implicitizing rational curves by the method of moving quadrics</article-title>
          , Computer-Aided
          <string-name>
            <surname>Design</surname>
          </string-name>
          (
          <year>2019</year>
          )
          <fpage>101</fpage>
          -
          <lpage>111</lpage>
          . doi:
          <volume>10</volume>
          .1016/j.cad.
          <year>2019</year>
          .
          <volume>05</volume>
          .019
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>V.</given-names>
            <surname>Soltan</surname>
          </string-name>
          ,
          <article-title>Characteristic properties of ellipsoids and convex quadrics, Aequationes mathematicae (</article-title>
          <year>2019</year>
          )
          <fpage>371</fpage>
          -
          <lpage>413</lpage>
          . doi:
          <volume>10</volume>
          .1007/s00010-018-0620-1
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Y. J.</given-names>
            <surname>Suh</surname>
          </string-name>
          ,
          <article-title>Real hypersurfaces in the complex hyperbolic quadrics with isometric Reeb flow</article-title>
          ,
          <source>Communications in Contemporary Mathematics</source>
          (
          <year>2018</year>
          ). doi:
          <volume>10</volume>
          .1142/S0219199717500316
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>A. I.</given-names>
            <surname>Bobenko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W. K.</given-names>
            <surname>Schief</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y. B.</given-names>
            <surname>Suris</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Techter</surname>
          </string-name>
          ,
          <article-title>On a Discretization of Confocal Quadrics</article-title>
          . A Geometric Approach to General Parametrizations,
          <source>International Mathematics Research Notices</source>
          , (
          <year>2020</year>
          )
          <fpage>10180</fpage>
          -
          <lpage>10230</lpage>
          . doi:
          <volume>10</volume>
          .1093/imrn/rny279
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>E.</given-names>
            <surname>Hitzer</surname>
          </string-name>
          ,
          <article-title>Three-Dimensional Quadrics in Conformal Geometric Algebras and Their Versor Transformations</article-title>
          ,
          <source>Advances in Applied Clifford Algebras</source>
          <volume>46</volume>
          (
          <year>2019</year>
          ).
          <source>doi:10.1007/s00006-019- 0964-1</source>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>A.</given-names>
            <surname>Trocado</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Gonzalez-Vega</surname>
          </string-name>
          ,
          <string-name>
            <surname>J. M.</surname>
          </string-name>
          <article-title>Dos Santos, Intersecting Two Quadrics with GeoGebra, in: Algebraic Informatics</article-title>
          .
          <source>CAI 2019. Lecture Notes in Computer Science</source>
          , Springer, Cham,
          <year>2019</year>
          , рр.
          <fpage>237</fpage>
          -
          <lpage>248</lpage>
          . doi:
          <volume>10</volume>
          .1007/978-3-
          <fpage>030</fpage>
          -21363-3_
          <fpage>20</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>D. V.</given-names>
            <surname>Voloshinov</surname>
          </string-name>
          ,
          <article-title>Konstruktivnoe geometricheskoe modelirovanie</article-title>
          . Teorija, praktika, avtomatizacija, Saarbrücken: Lambert Academic Publ.,
          <year>2010</year>
          . (In Russian)
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>D. V.</given-names>
            <surname>Voloshinov</surname>
          </string-name>
          ,
          <article-title>Unified constructive algorithm for constructing foci of curves of the second order, Geometriya i grafika (</article-title>
          <year>2018</year>
          )
          <fpage>47</fpage>
          -
          <lpage>54</lpage>
          . doi:
          <volume>10</volume>
          .12737/article_5b559dc3551f95.
          <fpage>26045830</fpage>
          . (In Russian)
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>D. V.</given-names>
            <surname>Voloshinov</surname>
          </string-name>
          ,
          <article-title>Constructive geometric model of four-dimensional space as a basis for solving problems of zoning and positioning in the design of mobile networks</article-title>
          .
          <source>Trudy uchebnyh zavedenij svyazi</source>
          (
          <year>2018</year>
          )
          <fpage>44</fpage>
          -
          <lpage>60</lpage>
          . (In Russian)
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>D. V.</given-names>
            <surname>Voloshinov</surname>
          </string-name>
          ,
          <article-title>On the refinement of some concepts of constructive geometry, in:Trudy Mezhdunarodnoj konferencii po komp'yuternoj grafiki i zreniyu "Grafikon"</article-title>
          ,
          <source>Tomsk</source>
          ,
          <year>2018</year>
          , pp.
          <fpage>350</fpage>
          -
          <lpage>353</lpage>
          . (In Russian)
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>