본문 펼치기
Scientific Inquiry and Review (SIR)
Volume 5, Issue 1, March 2021
ISSN (P): 2521-2427, ISSN (E): 2521-2435
[Journal DOI: https://doi.org/10.32350/sir](https://doi.org/10.32350/sir)
Issue DOI: <u>https://doi.org/10.32350/sir/51</u>
Homepage: <u>[https://journals.umt.edu.pk/index.php/SIR/Home](https://journals.umt.edu.pk/index.php/SIR/Home)</u>
Journal QR Code:
Article:
Construction of Polynomial Spiral Segment Using Cubic Ball
Indexing
Basis Functions
Abdul Majeed <sup>1</sup>, Mohsin Kamran <sup>1</sup>, Muhammad Abbas <sup>2</sup>
Author(s):
1Department of Mathematics, Division of Science and Technology
University of Education Lahore, Pakistan
Affiliation:
2Department of Mathematics, University of Sargodha, Sargodha,
Pakistan
Online
March 2021
Published:
Affiliation:
Article DOI: <u>[https://doi.org/10.32350/sir/51.04](https://doi.org/10.32350/sir/51.04)</u>
QR Code:
Citation:
Copyright
Information:
Majeed A, Kamran M, Abbas M. Construction of polynomial spiral
segment using cubic ball basis functions. _Sci Inquiry Rev._
2021;5(1):7 <mark>2–83</mark> .
<u>[Crossref](https://doi.org/10.32350/sir.51.04)</u>
This article is open access and is distributed under the terms of
<u>[Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/2.0/)</u>
A publication of the
School of Science, University of Management
and Technology Lahore, Pakistan
Construction of Polynomial Spiral Segment Using Cubic Ball Basis
Functions
Abdul Majeed <sup>1*</sup>, Mohsin Kamran <sup>1</sup>, and Muhammad Abbas <sup>2</sup>
1Department of Mathematics,
Division of Science and Technology University of Education Lahore, Pakistan
2Department of Mathematics, University of Sargodha, Sargodha, Pakistan
<u>[*abdulmajeed@ue.edu.pk](mailto:*abdulmajeed@ue.edu.pk)</u>
ABSTRACT
_Computer Aided Design (CAD) and Computer Aided Geometric Design_
_(CAGD) applications use Bezier, Ball curves, B-splines, and non-uniform_
_rational B-splines (NURBS) for fairing curves. Unfortunately, in many_
_instances, the fairness of curves is not satisfactory. Hence, spiral curves_
_were used to design an improved form of curves known as fair curves._ _These_
_fair curves are suitable for several sophisticated applications such as_
_designing the routes of high ways and railways as well as mobile robot_
_trajectories. This study attempted to develop a polynomial cubic Ball spiral_
_segment with a degree of freedom. It also observed the outcome of its shape_
_parameters. The findings of the study are presented in a graphical form._
_Keywords:_ cubic ball basis functions, curvature, fair curves, polynomial
spiral segment
INTRODUCTION
Continuous curves with undesirable curvature extrema are attributed to
specific applications such as for designing the trajectories of mobile robot
and high ways or railway routes [1, 2]. Such curves are called fair curves
<u>[3]. These curves are equally important in Computer Aided Design (CAD)</u>
<u>and Computer Aided Geometric Design (CAGD) applications such as [3,</u>
<u>4]. B-spline, Bezier, Ball curves, and non-uniform rational B-splines</u>
<u>(NURBS) are also used in CAD and CAGD applications. However, their</u>
fairness may not be guaranteed. Polynomial spirals were developed to
resolve this problem.
We studied spiral in terms of a curved line segment having variation of
a signed curvature in a monotonic way. Spiral segment may refer to any
segment of a curve that exists between two consecutive curvature extrema,
between the first endpoint and first curvature extremum, between the last
endpoint, or the last curvature extremum. A great deal of work has been
School of Science
73
<u>Construction of Polynomial Spiral…</u>
done on Bezier spiral. In one of such studies, the planar cubic Bezier curve
was developed [5] and was examined [6, 7] to have point of zero curvature
at one end point. It was also noted that cubic Spiral segments without any
point of zero curvature also exists [8] and are used for shape control [9].
In this paper, we have proposed a polynomial spiral segment (cubic Ball
spiral) using cubic Ball basis functions by incorporating two spiral segment
options (zero curvature at one end or non-zero curvature at both ends). The
advantage of Ball basis functions can be broadly divided in two, when
comparing it with Bezier basis functions.
Initially, to evaluate the Ball curve, a robust algorithm, that is suitable
for the interactive design environment, was established [10]. Furthermore,
a generalized Ball basis is much suited to study degree elevation and
reduction since it eases data portability and curve approximation in CAD
systems [11, <u>12].</u>
The first section of this study explained the notation and conventions
used in this work. The second section described cubic Ball curves. The
development of the cubic Ball spiral is accomplished in the third section,
which is followed by a section that deals with graphical presentation and
conclusions.
2. NOTATION AND CONVENTIONS
We took a typical Cartesian coordinate system with x-axis and y-axis,
whose direction of angle measurement is anticlockwise, Its vectors and
points are represented as ??���⃗ . Here, the order pair notation can also be used
to represent points and vectors, e.g, (??, ??). The components of a vector may
be designated as �????, ????�, or for a subscripted vector, e.g, ??���⃗ ??,0 as
�??0,??, ??0,??� or �????,0,??, ????,0,??� for a doubly subscripted vector, ??���⃗ ??,0. The
dot product of two vectors, ??�⃗ and ??⃗ is denoted as ??�⃗⋅??⃗. The vector norm or
length ??�⃗ is denoted as ∥??�⃗∥= ~~√?�~~ ⃗ ? ~~⋅?�~~ ⃗ ?. The derivative of a function (scalar or
vector valued) is denoted with a prime, e.g used to denote the signed z-component of the usual three-dimensional cross-?? <sup>�⃗</sup> <sup>′</sup> (??). The set of points ?? <sup>�⃗</sup> (??) =
(??(??), ??(??)) for real ?? defines a planar parametric curve. The symbol × is
product of two vectors in the xy plane, namely i.e, ??�⃗× ??⃗= ???????? −????????.
For a plane parametric curve, the tangent vector ?? <sup>�⃗</sup> <sup>′</sup> (??) is represented by
Scientific Inquiry and Review
74
<u>Majeed et al.</u>
~~?~~ <sup>~~�~~</sup> <sup>⃗</sup> ? <sup>~~′~~</sup> ~~(?~~ ? ~~) = (?~~ ? <sup>~~′~~</sup> ~~<u>(?</u>~~ ? ~~<u>), ?</u>~~ ? <sup>~~′~~</sup> ~~<u>(?</u>~~ ? ~~<u>))</u>~~ . If ~~?~~ <sup>~~�~~</sup> <sup>⃗</sup> ? <sup>~~′~~</sup> ~~(?~~ ? ~~) ≠0~~ <sup>~~�~~</sup> <sup>⃗</sup> ~~= (0,0)~~, then the signed curvature
of ?? <sup><u>�⃗</u></sup> (??) is defined as [3]
(2.1)
??(??) = <sup><u>?�⃗</u></sup> <sup>?′(??) × ?�⃗</sup> <sup>?′′(</sup> <sup>~~<u>?</u>~~</sup> <sup>?)</sup> ~~.~~
<sup>⃗</sup> <sup>?</sup> <sup>?</sup>
<u>Majeed et al.</u>
<sup>⃗</sup> ? ? ? ? ? ? <sup>⃗</sup> ? ? <sup>⃗</sup>
<sup>⃗</sup> ? ? ? ? ? ? <sup>⃗</sup> ? ? <sup>⃗</sup>
?? <sup><u>�⃗</u></sup> (??) is defined as [3]
??(??) = <sup><u>?�⃗</u></sup> <sup>?′(??) × ?�⃗</sup> <sup>?′′(</sup> <sup>~~<u>?</u>~~</sup> <sup>?)</sup>
Eq. (
~~<u>∥</u>~~ <sup>~~<u>∥?�</u>~~</sup> <sup>⃗</sup> <sup>?</sup> <sup>~~′(?~~</sup> <sup>?</sup> <sup>~~<u>)</u>~~</sup> ~~∥~~ <sup>~~∥3~~</sup>
? ?
<sup>⃗</sup> <sup>?</sup> <sup>?</sup>
<sup>⃗</sup> ? ? ? ? ? ? <sup>⃗</sup> ? ? <sup>⃗</sup>
<sup>⃗</sup> <u>[3]</u>
(2.1)
<sup>⃗</sup> <sup>?</sup> <sup><u>(??) × ?�⃗</u></sup> <sup>?′′(</sup> <sup>~~<u>?</u>~~</sup> <sup>?)</sup> ~~.~~
Eq. ( 2.1 ) yields
~~<u>∥</u>~~ <sup>~~<u>∥?�</u>~~</sup> <sup>⃗</sup> <sup>?</sup> <sup>~~′(?~~</sup> <sup>?</sup> <sup>~~<u>)</u>~~</sup> ~~∥~~ <sup>~~∥3~~</sup>
? ?
<sup>⃗</sup> <sup>?</sup> <sup>?</sup>
<sup>⃗</sup> <sup>?</sup> <sup>?</sup> <sup>⃗</sup> <sup>?</sup> <sup>?</sup>
Differentiation of
<sup>⃗</sup> <sup>?</sup> <sup>?</sup>
<u>??(??)</u>
?? <sup>′</sup> (??) = ~~∥~~ <sup>~~∥?�~~</sup> <sup>⃗</sup> <sup>?</sup> <sup>~~′(?~~</sup> <sup>?</sup> <sup>~~)~~</sup>
<sup>⃗</sup> <sup>?</sup> <sup>?</sup> <sup>⃗</sup> <sup>?</sup> <sup>?</sup>
Differentiation of Eq. ( 2.1 ) yields
<sup>⃗</sup> <sup>?</sup> <sup>?</sup>
? ?
<sup>⃗</sup> <sup>?</sup> <sup>?</sup>
? ?
where,
<sup>⃗</sup> <sup>?</sup> <sup>?</sup>
??(??) = �?? <sup>�⃗</sup> <sup>′</sup> (??) ⋅?? <sup>�⃗</sup> <sup>′</sup> (??)��?? <sup>�⃗</sup> <sup>′</sup> (??) × ?? <sup>�⃗</sup> <sup>′′′</sup> (??)�
−3�?? <sup>�⃗</sup> <sup>′</sup> (??) × ?? <sup>�⃗</sup> <sup>′′</sup> (??)��?? <sup>�⃗</sup> <sup>′</sup>
where,
<sup>⃗</sup> <sup>?</sup> <sup>?</sup> <sup>⃗</sup> <sup>?</sup> <sup>?</sup>
Eq. ( 2.1 ) yields
<sup>⃗</sup> <sup>?</sup> <sup>?</sup>
(2.2)
<u>??(??)</u>
~~∥~~ <sup>~~∥?�~~</sup> <sup>⃗</sup> <sup>?</sup> <sup>~~′(?~~</sup> <sup>?</sup> <sup>~~)~~</sup> ~~∥~~ <sup>~~∥5.~~</sup>
<sup>⃗</sup> <sup>?</sup> <sup>?</sup>
(2.3)
<sup>�⃗</sup> <sup>′</sup> (??)��?? <sup>�⃗</sup> <sup>′</sup> (??) × ?? <sup>�⃗</sup> <sup>′′′</sup> (??)�
3. CUBIC BALL BASIS CURVE
−3�?? <sup>�⃗</sup> <sup>′</sup> (??) × ?? <sup>�⃗</sup> <sup>′′</sup> (??)��?? <sup>�⃗</sup> <sup>′</sup> (??) ⋅?? <sup>�⃗</sup> <sup>′′</sup> (??)�.
3. CUBIC BALL BASIS CURVE
The cubic Ball polynomial basis was first proposed by Ball [12] for CAD
systems application. The Ball basis functions are defined as
systems application. The Ball basis functions are defined as
(3.1)
??0(??) = (1 −??) <sup>2</sup>, ??1(??) = 2??(1 −??) <sup>2</sup>,
??2(??) = 2?? <sup>2</sup> (1 −??), ??3(??) = ?? <sup>2</sup> .
Figure 1. Ball basis functions
Figure 1 illustrates these functions against its parameter ??. The cubic
Ball curve School of Science ??(??) with control points ���⃗???? is defined as
Figure 1. Ball basis functions
School of Science
75
<u>Construction of Polynomial Spiral…</u>
(3.2)
~~?~~ ? ~~(?~~ ? ~~) = ?~~ ?⃗0 ~~(1 −?~~ ? ~~)~~ <sup>~~2~~</sup> ~~+ 2?����~~ <u>1?</u> ⃗ ~~(1 −?~~ ? ~~)~~ <sup>~~2~~</sup> ~~?~~ ? ~~+ 2?����~~ ?2⃗ ~~(1 −?~~ ? ~~)?~~ ? <sup>~~2~~</sup> ~~+ ?����~~ ?3⃗ ~~?~~ ? <sup>~~2~~</sup> ~~, 0 ≤~~
The Ball basis functions and curve obey all the properties of curve like
<u>??</u> <u>≤1</u>
linearly independent, non-negativity, symmetric, monotonicity, partition of
<u>Construction of Polynomial Spiral…</u>
? ? ?⃗ ? ? ⃗ ? ? ?
?
? ? ?⃗ ? ? ⃗ ? ? ? ⃗ ? ? ? ⃗ ?
The Ball basis functions and curve obey all the properties of curve like
?
linearly independent, non-negativity, symmetric, monotonicity, partition of
unity, convex hull property and affine under linear transformation.
4. CUBIC BALL SPIRAL
Without loss of generality, translate, rotate, and if necessary, reflect the
In Eq. ( 3.2 ) assume the control points ??⃗0, ??⃗1, ??⃗2 and ??⃗3 are distinct.
curve such that ??⃗0 is at the origin, ??⃗1 is on the positive x-axis and ??⃗3 is
(4.1)
above the ??-axis, Eq. ( 3.2 ) may now be written as
?? <sup>�⃗</sup> (??) = (??(??), ??(??)
?
4. CUBIC BALL SPIRAL
(4.1)
above the ??-axis, Eq. ( 3.2 ) may now be written as
where,
?? <sup>�⃗</sup> (??) = (??(??), ??(??)
?
where,
??(??) = 2ag ??(1 −??) <sup>2</sup> + 2(??+ ??cos (??) −? ? cos (??))?? <sup>2</sup> (1
−??) + (??+ ??cos (??))?? <sup>2</sup>,
?
where,
?
<sup>2</sup> + 2(??+ ??cos (??) −? ?
−??) + (??+ ??cos (??))?? <sup>2</sup>,
? sin (??))?? <sup>2</sup>
?
(4.2)
−??) + (??+ ??cos (??))?? <sup>2</sup>,
??(??) = 2(??sin (??) −? ? sin (??))?? <sup>2</sup> (1 −??) + (??sin (??))?? <sup>2</sup> .
?
∥ <sup>∥??⃗</sup> 1 <sup>−??⃗</sup> 0∥ <sup>∥> 0,</sup>
∥ <sup>∥??⃗</sup> 2 <sup>−??⃗</sup> 1∥ <sup>∥> 0,</sup>
?
?
∥ <sup>∥??⃗</sup> 1 <sup>−??⃗</sup> 0∥ <sup>∥> 0,</sup>
∥ <sup>∥??⃗</sup> 2 <sup>−??⃗</sup> 1∥ <sup>∥> 0,</sup>
∥ <sup>∥??⃗</sup> 3 <sup>−??⃗</sup> 2∥ <sup>∥> 0</sup>
?
∥ <sup>∥??⃗</sup> 2 <sup>−??⃗</sup> 1∥ <sup>∥> 0,</sup>
∥ <sup>∥??⃗</sup> 3 <sup>−??⃗</sup> 2∥ <sup>∥> 0</sup>
<u>??</u>
<sup>?</sup> <sup>?</sup> <sup>?</sup>
(4.3)
∥ <sup>∥??⃗</sup> 3 <sup>−??⃗</sup> 2∥ <sup>∥> 0</sup>
where ?? is a angle between ??⃗3 −??⃗2 and ??-axis. The curvature at ??= 0 and
??= 1 using Eq. ( 2.1 ) is
??(0) = <sup><u>(3 −2??)?sin (??</u></sup> <sup>?)</sup> ~~<u>,</u>~~
? ?
where ??
??= 1 using Eq. ( 2.1 ) is
??(0) = and <sup><u>(3 −2??)?sin (??</u></sup> <sup>?)</sup>
~~<u>2?</u>~~ ? <sup>~~2~~</sup> ~~<u>?</u>~~ ? <sup>~~2~~</sup>
<sup>?</sup> <sup>?</sup> <sup>?</sup>
? ?
and <sup>?</sup> <sup>?</sup> <sup>?</sup>
? ?
??(1) = <sup><u>(3 −2??)?sin (??</u></sup> <sup>?)</sup>
~~2?~~ ? <sup>~~2~~</sup> ~~?~~ ? <sup>~~2~~</sup>
Theorem 1.
and <sup>?</sup> <sup>?</sup> <sup>?</sup>
<sup>?</sup> <sup>?</sup> <sup>?</sup>
?
Eq. ( 2.1 ) is
<sup>?)?sin (??</sup> <sup>?)</sup> ~~<u>,</u>~~
~~<u>2?</u>~~ ? <sup>~~2~~</sup> ~~<u>?</u>~~ ? <sup>~~2~~</sup>
<sup>?</sup> <sup>?</sup> <sup>?</sup>
? ?
<sup>?</sup> <sup>?</sup> <sup>?</sup>
? ?
<sup>?)?sin (??</sup> <sup>?)</sup> ~~.~~
~~2?~~ ? <sup>~~2~~</sup> ~~?~~ ? <sup>~~2~~</sup>
The curvature of
??(1) = <sup><u>(3 −2??)?sin (??</u></sup> <sup>?)</sup> ~~.~~
~~2?~~ ? <sup>~~2~~</sup> ~~?~~ ? <sup>~~2~~</sup>
Now by using the above theorem, Eq. ( 4.2 ) becomes
Theorem 1. The curvature of ?? <sup>�⃗</sup> (??) is 0 at 0 iff ??= 3/2.
? ?
Now by using the above theorem, Eq. ( 4.2 ) becomes
Scientific Inquiry and Review
76
<u>Majeed et al.</u>
?
??(??) = 2? ? ??(1 −??) <sup>2</sup> + 2(??−1/2??cos (??))?? <sup>2</sup> (1 −??) + (??
+ ??cos (??))?? <sup>2</sup>
(4.4)
? ??(1 −??) <sup>2</sup> + 2(??−1/2??cos (??))?? <sup>2</sup> (1 −??) + (??
+ ??cos (??))?? <sup>2</sup> (4.5)
and curvature becomes
??(0) = 0,
??(1) = <sup>?</sup> <sup>?</sup> <sup>?</sup>
?
(4.5)
??(??) = −??sin (??))?? <sup>2</sup> (1 −??) + ??sin (??))?? <sup>2</sup> .
<sup>?</sup> <sup>?</sup> <sup>?</sup>
<sup>?)?sin (??</sup> Eq. ( 4.4 <sup>?)</sup> .
~~9?~~ ? <sup>~~2~~</sup>
? ? ?
? ? ?
and curvature becomes
<sup>?</sup> <sup>?</sup> <sup>?</sup>
??(0) = 0,
??(1)The derivatives of = <sup><u>2(3 −2??)?sin (??</u></sup> Eq. ( <sup>?)</sup>
~~9?~~ ? <sup>~~2~~</sup>
? ? ?
? ? ?
The derivatives of <sup>?</sup> <sup>?</sup> Eq. ( 4.4 <sup>?</sup> ) are
?
?? <sup>′</sup> (??) = 2? ? (1 −??) <sup>2</sup> −4ag (1 −??)??+ 4(1 −??)??(?? <u>−1/2??cos (??)) …</u>
−2?? <sup>2</sup> (??−1/2??cos (??)) + 2??(??+ ??cos (??))
<u>1</u>
?? <sup>′′</sup> (??) = −8? ? (1 −??) + 4? ? <u>??</u> <u>+ 4(1 −??) �??−</u> ~~2?~~ ? ~~cos(?~~ ? ~~)~~ <sup>~~�~~</sup>
? ?
The derivatives of <sup>?</sup> <sup>?</sup> Eq. ( 4.4 <sup>?</sup> ) are
?
? ? ?
? ? ?
?? <sup>′</sup> (??) = ? ? ?
−2?? <sup>2</sup> (??−1/2??cos (??)) + 2??(??+ ??cos (??))
<u>1</u>
?? <sup>′′</sup> (??) = −8? ? (1 −??) + 4? ? <u>??</u> <u>+ 4(1 −??) �??−</u> ~~2?~~ ? ~~cos(?~~ ? ~~)~~ <sup>~~�~~</sup> <sup>−8??(??−1/2??cos (??)) + 2(??+ ??cos (??))</sup>
<u>1</u>
?? <sup>′′′</sup> (??) = 12? −12 �??− ~~2?~~ ? ~~cos(?~~ ? ~~)~~ <sup>~~�~~</sup> <sup><u>(4.6)</u></sup>
? ? ?
? ? ?
? ? ?
<u>1</u>
?? <sup>′′</sup> (??) = −8? ? (1 −??) + 4? ? <u>??</u> <u>+ 4(1 −??) �??−</u> ~~2?~~ ? ~~cos(?~~ ?
<u>1</u>
?? <sup>′′′</sup> (??) = 12? −12 �??− ~~2?~~ ? ~~cos(?~~ ? ~~)~~ <sup>~~�~~</sup> <sup><u>(4.6)</u></sup>
?? <sup>′</sup> (??) = 2? ? sin (??) −2?? ~~(1 −?~~ ? ~~)?~~ ? ~~s~~ in (??) + ???? <sup>2</sup> sin (??)
?? <sup>′′</sup> (??) = 2??sin(??) −2??(1 −??) sin(??) + 4?
? ? ? ? ?
?? <sup>′′′</sup> (??) = 12? −12 �??− ~~2?~~ ? ~~cos(?~~ ? ~~)~~ <sup>~~�~~</sup> <sup><u>(4.6)</u></sup>
?? <sup>′</sup> (??) = 2? ? sin (??) −2?? ~~(1 −?~~ ? ~~)?~~ ? ~~s~~ in (??) + ???? <sup>2</sup> sin (??)
?? <sup>′′</sup> (??) = 2??sin(??) −2??(1 −??) sin(??) + 4? sin(??) (4.7)
?? <sup>′′′</sup> (??) =Using 6??sin (??) Eq. ( 4.4 ), Eq. ( 4.6 ) and ? Eq. ( 4.7 ? ) we can write
?
Using Eq. ( 4.4 ), Eq. ( 4.6 ) and ? Eq. ( 4.7 ? ) we can write
?
?? <sup>�⃗</sup> <sup>′</sup> (??) ⋅??Using <sup>�⃗</sup> <sup>′</sup> (??) = Eq. ( 4.4 (9??), <sup>2</sup> )?? Eq. <sup>4</sup> + (+36?( 4.6 ) and ? cos (??) −8? Eq. ( 4.7 ? ??cos (??))??) we can write <sup>3</sup> (1 −??) …
+(36?? <sup>2</sup> −32???? <sup>2</sup> + 12? ? ??cos (??))?? <sup>2</sup> (1 −??) <sup>2</sup> + ⋯
(24???? <sup>2</sup> −16?? <sup>2</sup> ?? <sup>2</sup> )??(1 −??) <sup>3</sup> + 4?? <sup>2</sup> ?? <sup>2</sup> (1 −??) <sup>4</sup>
?? <sup>�⃗</sup> <sup>′</sup> (??) ⋅?? <sup>�⃗</sup> <sup>′′</sup> (??) = (−18? ? cos (??) + 18?? <sup>2</sup> + 12? ? ??cos (??))?? <sup>3</sup> + (+46? ?
−4?? <sup>2</sup> + 32???? <sup>2</sup> −40?? <sup>2</sup> −24? ? ??cos (??))?? <sup>2</sup>
?
? ? ?
? ?
+(36?? <sup>2</sup> −32???? <sup>2</sup> + 12? ? ??cos (??))?? <sup>2</sup> (1 −??) <sup>2</sup> + ⋯
(24???? <sup>2</sup> −16?? <sup>2</sup> ?? <sup>2</sup> )??(1 −??) <sup>3</sup> + 4?? <sup>2</sup> ?? <sup>2</sup> (1 −??) <sup>4</sup>
?? <sup>�⃗</sup> <sup>′</sup> (??) ⋅?? <sup>�⃗</sup> <sup>′′</sup> (??) = (−18? ? cos (??) + 18?? <sup>2</sup> + 12? ? ??cos (??))?? <sup>3</sup> + (+46? ? cos (??) …
−4?? <sup>2</sup> + 32???? <sup>2</sup> −40?? <sup>2</sup> −24? ? ??cos (??))?? <sup>2</sup> (1 −??) + (32?? <sup>2</sup> −84???? <sup>2</sup> −8?
cos(??) … −4?? <sup>2</sup> + 40?? <sup>2</sup> ?? <sup>2</sup> + 12? ? ? cos(??))??(1 −??) <sup>2</sup> + (12???? <sup>2</sup> −16?? <sup>2</sup> ?? <sup>2</sup> )(1 −??) <sup>3</sup>
<sup>′</sup> (??) × ?? <sup>�⃗</sup> <sup>′′</sup> (??) = (18? ? sin (??) −8? ? ??sin (??))?? <sup>2</sup> −4? ? ???? <sup>3</sup> Sin (??) …
+8? ? ? ? (1 −??)Sin (??) + 4? ? ??(1 −??) <sup>2</sup> Sin (??) −4? ? ??(1 −??) <sup>3</sup> Sin(??) (4.8)
? ? ?
? ? ?
−4?? <sup>2</sup> + 32???? <sup>2</sup> −40?? <sup>2</sup> −24? ? ??cos (??))?? <sup>2</sup> (1 −??) + (32?? <sup>2</sup> −84???? <sup>2</sup> −8?
cos(??) … −4?? <sup>2</sup> + 40?? <sup>2</sup> ?? <sup>2</sup> + 12? ? ? cos(??))??(1 −??) <sup>2</sup> + (12???? <sup>2</sup> −16?? <sup>2</sup> ?? <sup>2</sup> )(1 −??) <sup>3</sup>
?? <sup>�⃗</sup> <sup>′</sup> (??) × ?? <sup>�⃗</sup> <sup>′′</sup> (??) = (18? ? sin (??) −8? ? ??sin (??))?? <sup>2</sup> −4? ? ???? <sup>3</sup> Sin (??) …
+8? ? ? ? (1 −??)Sin (??) + 4? ? ??(1 −??) <sup>2</sup> Sin (??) −4? ? ??(1 −??) <sup>3</sup> Sin(??) (4.8)
?? <sup>�⃗</sup> <sup>′</sup> (??) × ?? <sup>�⃗</sup> <sup>′′′</sup> (??) = (36? ? sin (??) −24agksin (??))??−12? ? ???? <sup>2</sup> sin (??) + 12? ? ??(1 −??) <sup>2</sup> sin (??)
?
?
?
? ? ?
+8? ? ? ? (1 −??)Sin (??) + 4? ? ??(1 −??) <sup>2</sup> Sin (??) −4? ? ??(1 −??) <sup>3</sup>
?? <sup>�⃗</sup> <sup>′</sup> (??) × ??Substitution of <sup>�⃗</sup> <sup>′′′</sup> (??) = (36? Eq. ? sin (??) −24agksin (??))??−12? ( 4.8 ) into Eq. ( 2.3 ), followed by some algebraic ? ???? <sup>2</sup> sin (??) + 12? ? ??(1 −??) <sup>2</sup> sin (??)
?
? ? ?
? ? ? ?
Substitution of (36? Eq. ? sin (??) −24agksin (??))??−12? ( 4.8 ) into Eq. ( 2.3 ), followed by some algebraic ? ???? <sup>2</sup> sin (??) + 12? ? ??(1 −??) <sup>2</sup> sin (??)
maipulation yields ??(??) = 12? ? ??(??)sin (??) where
6 (4.9)
?
6
?
6
??(??) = �
??=0
?
(4.9)
????(1 −??) <sup>6−??</sup> ?? <sup>??</sup>, 0 ≤??≤1
?
??=0
School of Science
77
<u>Construction of Polynomial Spiral…</u>
with
(4.10)
(4.11)
??0 = 4?? <sup>3</sup> ?? <sup>2</sup>
??1 = 24?? <sup>3</sup> ?? <sup>2</sup>
?
with
(4.10)
(4.11)
??0 = 4?? <sup>3</sup> ?? <sup>2</sup>
??1 = 24?? <sup>3</sup> ?? <sup>2</sup> (4.12)
??2 = −2??((21 + 2??(−94 + 25??))?? <sup>2</sup> −6?? <sup>2</sup> + 12(−1
+ ??)? ? Cos (??))
?
??1 = 24?? <sup>3</sup> ?? <sup>2</sup>
??2 = −2??((21 + 2??(−94 + 25??))?? <sup>2</sup> −6?? <sup>2</sup> + 12(−1
+ ??)? ? Cos (??))
??3 = 2(−2(9 + ??(−87 + 14??))?? <sup>2</sup> + 3(3 + 2??)?? <sup>2</sup>
?
(4.12)
<sup>2</sup> −6?? <sup>2</sup> + 12(−1
+ ??)? ? Cos (??)) (4.13)
<sup>2</sup> + 3(3 + 2??)?? <sup>2</sup> + 2(9
?
??2 = −2??((21 + 2??(−94 + 25??))?? <sup>2</sup> −6?? <sup>2</sup> + 12(−1
+ ??)? ? Cos (??))
??3 = 2(−2(9 + ??(−87 + 14??))?? <sup>2</sup> + 3(3 + 2??)?? <sup>2</sup> + 2(9
+ 10(−3 + ??)??)? ? Cos (??))
??4 = 6(24 + ??(21 + 4??(−14 + 5??))?? <sup>2</sup> + 3(12 −19??)??
? (4.13)
<sup>2</sup> + 3(3 + 2??)?? <sup>2</sup> + 2(9
+ 10(−3 + ??)??)? ? Cos (??))
<sup>2</sup> + 3(12 −19??)?? <sup>2</sup>
?
?
??3 = 2(−2(9 + ??(−87 + 14??))?? <sup>2</sup> + 3(3 + 2??)?? <sup>2</sup> + 2(9
+ 10(−3 + ??)??)? ? Cos (??))
??4 = 6(24 + ??(21 + 4??(−14 + 5??))?? <sup>2</sup> + 3(12 −19??)?? <sup>2</sup>
+ (−63??4
= 6(24 + ??(21 + 4??(−14 + 5??))?? <sup>2</sup> + 3(12
?
?
?
<sup>2</sup> + 3(12 −19??)?? <sup>2</sup>
+ (−63??4
= 6(24 + ??(21 + 4??(−14 + 5??))?? <sup>2</sup> + 3(12
−19??)?? <sup>2</sup> + (−63 + 4(6 −5??)??)? ? Cos (??)
+ 4(6 −5??)??)? ? Cos (??)
<sup>2</sup> + (6 + 5??)?? <sup>2</sup> + (3
?
(4.14)
−19??)?? <sup>2</sup> + (−63 + 4(6 −5??)??)? ?
+ 4(6 −5??)??)? ? Cos (??)
??5 = −6(−2(−3 + 2??)(−5 + 4??)?? <sup>2</sup> + (6 + 5??)?? <sup>2</sup> + (3
+ 2??(−5 + 4??))? ? Cos (??))
?
? (4.15
<sup>2</sup> + (6 + 5??)?? <sup>2</sup> + (3
(4.16)
+ 2??(−5 + 4??))? ? Cos (??))
<sup>2</sup> ??Cos (??))
? (4.15
(4.16)
+ 2??(−5 + 4??))? ? Cos (??))
5. RESULTS AND DISCUSSION
??6 = 9??(3(−2 + ??)??+ (3 −2??) <sup>2</sup> ??Cos (??))
?
5. RESULTS AND DISCUSSION
This section illustrated the different possibilities of cubic Ball spiral curve
using proposed Cubic Ball spiral. As the proposed curve has 5 degrees of
freedoms, namely _a, b, g, k,_ and _θ_ . In Theorem 1 we fixed _b_ = 3 _/_ 2 to get the
zero curvature at 0. We also constructed the different possible Ball spiral
curves. In Figure 2, we fixed the _θ_ = _π/_ 4 _, g_ = 0 _._ 996 and _k_ = 0 _._ 24 randomly
and changed the free parameter _a_ . Figure 3 shows that curvature of Ball
spiral curves was monotone. Similarly, Figure 4 and Figure 5 shows the
different curves with their monotone curvature graphs. Figures 6 and 7
displays the comparison between different Ball spiral curves and curvature,
while keeping the values of _g, θ,_ and _k_ constant and changing the value of
_a_ . Figure 8 presents the different Ball spiral curves with different angles.
Figure 9 ( a ) shows a cubic Ball curve, while Figure 9 ( b ) displays the
curvature of Ball curve. From Figure 9, we can conclude that the simple
cubic Ball curve looks smooth but it is not fair since the curvature graph
was not monotone.
Scientific Inquiry and Review
78
<u>Majeed et al.</u>
(a)
a = 0.54 (b)??= 0.654
(c) ??= 0.754 (d) ??= 0.9
Figure 2. Cubic Ball spiral with g = 0.996, k = 0.24
(a) ??= 0.54 (b) ??= 0.654
(c) a = 0.754 (d) a = 0.9
Figure 3. School of Science Monotone curvature with g = 0.996, k = 0.24
79
<u>Construction of Polynomial Spiral…</u>
(a) ??= 0.459 (b) ??= 0.59
(c) ??= 0.69 (d) ??= 0.312
Figure 4. Cubic Ball spiral with g = 0.996, k = 0.4
(a) ??= 0.45 (b) ??= 0.59
(c) ?? <u>= 0.69</u> (d) a = 0.312
Scientific Inquiry and Review
80Figure 5. Monotone curvature with g = 0.996, k = 0.4
<u>Majeed et al.</u>
Figure 6. Ball spiral curves with different Values of ??
Figure 7. Curvature graph with different values of ??
Figure 8. Ball spiral curves with different angles
School of Science
81
<u>Construction of Polynomial Spiral…</u>
(a) Cubic ball curve (b) Cubic ball curvature
Figure 9. Cubic ball curve with curvature graph
6. CONCLUSION
In this paper, a cubic Ball spiral segment with free parameters was
developed. It was identified that the curvature of the spiral curve is always
monotone. Whereas, the point of zero curvature introduces flat spots at
points where they may not be desirable. Using proposed cubic Ball spiral
curve, such flat spots can be avoided. We also compared the cubic Ball
curve with the cubic Ball spiral curve. Although, the cubic Ball curve may
or may not be fair; however, the cubic Ball spiral is always a fair curve.
Similarly, the cubic Ball curve may or may not be monotone, although the
curvature of cubic Ball spiral curve is always monotone.
Conflict of Interests
The authors declare no conflict of interest.
Acknowledgments
The authors would like to extend their gratitude to the Ministry of Education
of Malaysia and Universiti Sains Malaysia (USM) for supporting this work
under its Fundamental Research Grant Scheme (FRGS), Account No.
203/P- MATHS/6711365.
REFERENCES
[1] Hartman P. The highway spiral for combining curves of different radii.
_Trans_ _Am_ _Soc_ _Civil_ _Eng_ . 1957;122(1):389-399.
<u>[https://doi.org/10.1061/TACEAT.0007451](https://doi.org/10.1061/TACEAT.0007451)</u>
Scientific Inquiry and Review
82
<u>Majeed et al.</u>
[2] Fleury S, Soueres P, Laumond J-P, Chatila R. Primitives for smoothing
mobile robot trajectories. _IEEE Trans Robotic Auto_ . 1995;11(3):441448.
[3] Farin G. _Curves and Surfaces for Computer-Aided Geometric Design:_
_A Practical guide_ . Elsevier; 2014.
[4] Levien R, Séquin CH. Interpolating splines: which is the fairest of them
all? _Computer-Aided_ _Design_ _Appl_ . 2009;6(1):91-102.
<u>[https://doi.org/10.1016/0377-0427(95)00246-4](https://doi.org/10.1016/0377-0427%0x2895%0x2900246-4)</u>
[5] Walton D, Meek D. A planar cubic Bézier spiral. _J Comput Appl Math_ .
[1996;72(1):85-100. https://doi.org/10.1016/0377-0427(95)00246-4](https://doi.org/10.1016/0377-0427%0x2895%0x2900246-4)
[6] Walton D, Meek D, Ali J. Planar G2 transition curves composed of
cubic Bézier spiral segments. _J Comput Appl Math_ . 2003;157(2):453[476. https://doi.org/10.1016/S0377-0427(03)00435-7](https://doi.org/10.1016/S0377-0427%0x2803%0x2900435-7)
[7] Walton DJ, Meek DS. G2 curve design with a pair of Pythagorean
Hodograph quintic spiral segments. _Computer Aided Geometric Design_ .
[2007;24(5):267-285. https://doi.org/10.1016/j.cagd.2007.03.003](https://doi.org/10.1016/j.cagd.2007.03.003)
[8] Higashi M, Kaneko K, Hosaka M. Generation of high-quality curve and
surface with smoothly varying curvature. 1988:79-92.
[9] Mineur Y, Lichah T, Castelain JM, Giaume H. A shape controled fitting
method for Bézier curves. _Comput Aided Geom Des_ . 1998;15(9):879[891. https://doi.org/10.1016/S0167-8396(98)00025-9](https://doi.org/10.1016/S0167-8396%0x2898%0x2900025-9)
[10] Tien H. Rational Ball curves. _Int J Math Edu Sci Tech_ .
[1999;30(2):243-257. https://doi.org/10.1080/002073999288021](https://doi.org/10.1080/002073999288021)
[11] Farin G. _CAGD for Curves and Surfaces_ . 4th ed. Academic Press;
1996.
[12] Interpolant B. Image reconstruction using rational Ball interpolant
and genetic algorithm. _Applied_ _Mathematical_ _Sciences_ .
2014;8(74):3683-3692.
[13] Ball AA. CONSURF. Part one: introduction of the conic lofting tile.
_Computer-Aided_ _Design_ . 1974;6(4):243-249.
<u>[https://doi.org/10.1016/0010-4485(74)90009-8](https://doi.org/10.1016/0010-4485%0x2874%0x2990009-8)</u>
School of Science
83