Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Proceedings of the IMProVe 2011

International conference on Innovative Methods in Product Design


June 15th – 17th, 2011, Venice, Italy

Constrained fitting of B-Spline curves


based onthe Force Density Method
(a) (a) (a) (b)
L. Barbieri , F.Bruno , M.Muzzupappa , J.-P.Pernot
(a)
University of Calabria, Rende, Italy
(b)
LSIS, UMR CNRS 6168, Aix-en-Provence, France

Article Information Abstract


Keywords: This paper presents a novelapproach for constrained B-Spline curve approximation based on
B-Spline curve, the Force Density Method (FDM). This approach aims to define a flexible technique tool for
Constrained fitting, curve fitting, which allows approximating a set of points taking into account shape constraints
Force Density Method. that may be related to the production process, to the material or to other technological re-
quirements.
After a brief introduction on the property of the FDM and the definition of the network usedfor
the formulation of the fitting problem, the paper explains in detail the mathematical approach,
the methods and the techniques adopted for the definition of the proposed constrained B-
Corresponding author: Splinecurve approximation.
Loris Barbieri The results suggest that the adoption of a mechanical model of bar networks allows develop-
Tel.: +390984494667 ing a more flexible tool than the traditional least squared methods (LSM) usually adopted for
Fax.: +390984494663 fitting problems. Numerical examples show that the new approach is effective in fitting prob-
e-mail: loris.barbieri@unical.it lems when the satisfaction of shape constraints, such as those related to production orto
Address:Arcavacata di Rende (CS) technological processes, are required.
ponte P.Bucci, cubo 45C.

LSM is the most widespread approach for curve fitting


1 Introduction but, such as for other optimization methods [5-8], in some
technological fields it is not easily applicable.
Engineers often need to fit geometric or experimental Reverse Engineering and Topological Optimization are
data using a model based on mathematical equations. two application fields in which LSMs are often used to ap-
Several mathematical models are commonly used for proximate a set of points or polygons with a mathematical
curve fitting (e.g.: polynomial, Bézier, B-Spline, NURBS) model (fig.1).
and the choice of the right model requires a good know-
ledge of both the data to be fitted and the formulation that
may be adopted. But, once the model has been chosen
and the data are approximated through one or more
curves, engineers can determine important characteristics
of the data, such as the rate of change along the curve
(first derivative), the local minimum and maximum points
of the function (zeros of the first derivative), and the area
under the curve (integral).
The goal of curve fitting is to find the set of parameters
that most closely match the data. The main theory behind
(a)
curve fitting data revolves around minimizing the sum of
the squares of the residuals: the residual of a curve fit for
each data point typically is the vertical deviation from the
observed data point and the predicted value as given by
the function of the curve (the Euclidean distance, rather
than vertical distance, might have been used, but it is
more difficult to handle because it produces non-linear
equations [1]). This approach is known as the least
squares method (LSM). This method assumes that the
measurement errors are independent and normally distri-
buted with constant standard deviation. For linear func-
tions, the solution for a best fit curve is a defined closed (b)
solution that can be directly solved.
Fig.1Physical object, mesh model and section
For non-linear functions, an iterative non-linear least
squares approach is utilized to converge to the best fit extracted from the mesh model(a).
curve (several algorithms have been formulated to aid in Voxel model, polyhedron model and its silhouette(b).
converging the solution to non-linear curve fitting [2-4]).
Starting from a set of points, that could be captured as topological optimization results, the designer has the ne-
part of a reverse engineering process or extracted from cessity to rework these raw data with the introduction of

235
L. Barbieri et al. Constrained fitting of B-Spline curves based on the Force Density Method

shape constraints in order to produce B-Spline curve that the B-Spline fitted curve is calculated again with the intro-
successfully reproduce regularities required by engineer- duction of some shape constraints like position, distance,
ing applications (such as curvature, position and distance straight and curvature.The fitting problem is solved using
constraints). The constraints to be satisfied may be re- the Optimization Toolbox of MatLab[15] that allows to
lated to the production process, to the material or to other program linear/non-linear and equality/inequality con-
technological issues. straints.
Only the specialist that holds the specific knowledge is The results suggest that the adoption of a mechanical
able to interpreter these data and take the right decisions model of bar networks allows developing a more flexible
about the fitting (e.g.: mathematical model and relative tool than the traditional LSMs usually adopted for fitting
parameters, how to split the curve in several segments, problems. Numerical examples show that the new ap-
continuity between each couple of consecutive segments, proach is effective in fitting problems when the satisfaction
etc.). of shape constraints, such as those related to production
So it is possible to assert that curve fitting in some or to technological processes, are required.
cases is a knowledge-based process, whichmight not be
completely automated. 2 State-of-the-art
To better control the link between the semantic of the
processes, to avoid low manipulations of geometric data, Even if the FDM has been applied in different and vari-
and to be more flexible thanthe LSMs, the Force Density ous engineering fields, for what concern curve fitting prob-
Method (FDM) introduced by Scheck [9] has already lems the state-of-the-art proposes only two researches.
proved its capacities. It is based on a mechanical model Eric Saux[16] proposes an application to cartographic
of a network with tensile bars.Thanks to its properties, the generalization of maritime lines. His attempt is to include
FDM has been applied in various domains including the fitting method for geographic data reduction in carto-
lightweight tension and tensile integrity structures [10], graphic maps; in particular the use of B-
optimization of tensile textile structures [11], and deforma- SplineSplinecurves for modeling smooth lines such as
tion of free form surfaces [12,13]. The large spread of this roads, railways or waterways. With his research Saux
method is due to its main advantages: proposes two approaches for the implementation of the
· Any state of equilibrium of a general net structure can working tools in generalization of cartographic maps[17].
be obtained by the solution of one system of linear One is automatic while the other is interactive. A cata-
equations. This system is constructed using the force- logue of cartographic generalization operators has been
length ratios or “force densities” in the branches as proposed, including selection/elimination, aggregation,
network description parameters. In other words, one structuring, compression (or filtering), smoothing, exagge-
single force density is prescribed in order to obtain a ration, caricaturing, enlargement and displacement. The
unique result for the appropriate state of equilibrium. curve deformation is obtained through mechanical para-
· It is possible to extend the linear approach to the non- meter modifications which lead to a shape modification,
linear force density method. The number of non-linear the strategy is that suggested by Léon and Trompette[18]
equations is identical with the number of additional based on the ForceDensity Method. Each equilibrium po-
conditions and is independent of the number of net sition of the barsnetwork (coupledto the control polygon of
nodes [9]. the curve) can be determined solving a linear system of
Therefore this approach may be simpler and less expen- equations. The strategy relies on a mechanical approach
sive than the conventional solutions. permitting fast calculations as well as local and global de-
In this paper, we propose to take advantage of the formations.
FDM to develop a constrained B-Splinefitting tech- Sanchez [19] proposes NURBS fitting techniques to
nique,able to take into account some shape con- represent tensile structures. The first step of the method
straintsthat may be specified in order to satisfy specific consists into an initial grid generation; this structural net
technological needs. has the minimum nodes and elements needed to obtain
The paper describes the overall methodology neces- the double curvature of the membrane. On the initial grid
sary to reach a constrained fitting of B-Spline curves the FDM is applied in order to obtain the equilibrium
based on the FDM in which only a few set of constrains shape of the membrane. Once the equilibrium shape is
have been tested. After a brief introduction on the proper- obtained, NURBS fitting techniques [20, 21] are used to
ty of the FDM and the definition of the network adopted represent a smooth parametric surface that passes
for the formulation of the fitting problem, the paper ex- through the points obtained in the previous form finding
plains in detail the mathematical approach,the methods step. The values of the force density parameters and the
and the techniques usedfor the definition of the proposed applied forces may also be changed, obtaining different
constrained B-SplineSplinecurve approximation. equilibrium shapes in real time. With this method they
The approach is composed by four stages. In the first have tested different algorithms, but these are not de-
stage an initial B-SplineSplinecurve fitting problem is scribed in detail in the paper.
solved using the minimization of an objective function de- The maindrawback of these researches is their being
fined as the sum of the square external forces computed limited to the contexts of cartographic map and tensile
on the free nodes of the network. structures,respectively. Furthermore they don’t consider
The second stage implies the use of a toolbox for the the possibility to enforce shape constraints that may be
curvature analysis and evaluation. In addition to the cur- required by engineering applications and technological
vature ,this toolbox is able to compute and depict the processes.
most important points belonging to the B-SplineSpline by
means of the Leyton Process-Grammar [14]. 3 Proposed method
The third stage is characterized by a splitting toolbox
that, using the information elaborated in the previous The proposed approach for performing a constrained
0 Force Density B-SplineSplinecurve fitting is based on a
stage, introduces G continuities on the initial curve in or-
der to simplify its manipulation. In fact, in the last stage, four stages method depicted infig. 2.

June 15th – 17th, 2011, Venice, Italy 236 Proceedings of the IMProVe 2011
L. Barbieri et al. Constrained fitting of B-Spline curves based on the Force Density Method

control points 皿沈 of the fitted curve must be input also.


The coordinates of the control points of the fitted B-Spline
curve are the solutions of a minimization problem in which
the objective function is computed by means of a me-
chanical model of spring network. The following flow chart
depicts the mathematical approach defined to reach this
goal.

Fig.2Stages for the constrained FD fitting method.

In the first stage we present a B-Splinecurve fitting


procedure in which a fixed number of control points are
the only unknowns, and they are solved by minimizing an
objective function computed using the FDM.TheB-Spline
curve is the model adopted for the FD fitting because it is
suitable for CAD/CAM and machining applications. The B-
Spline curve 刷岫憲岻of degree p and n control
points岫皿待 皿津貸怠 岻is defined by:
"
刷岫憲岻 噺 デ津貸怠沈退待 軽沈 椎 岫憲岻 ゲ 皿沈 """ """憲陳沈津 判 憲 隼 憲陳銚掴 (1)

where軽沈 椎 岫憲岻are the basis functions defined by the Cox-


de Boor recursion formulas on 範憲沈 憲沈袋椎袋怠 飯; specifically:

な 件血"捲沈 判 憲 隼 捲沈袋怠
軽沈 怠 岫憲岻 噺 峽 (2)
ど 剣建月結堅拳件嫌結
通貸通日 通日甜妊甜迭 貸通
軽沈 椎 岫憲岻 噺 軽沈 椎貸怠 髪 軽沈袋怠 椎貸怠 (3)
通日甜妊 貸通日 通日甜妊甜迭 貸通日甜迭

Fig.3 Flow chart and methods for the FD B-Spline fitting


The second stage implies the use of a toolbox for the
curvature analysis and evaluation. This toolbox calculates curve.
the curvature of the approximating curve and depicts this
information on diagrams that allows the user to identify For each step, specific functions have been pro-
and select, in a more objective manner, the characteristic grammed in MatLab, in order to automate the whole
points of the initial fitted curve. In addition to the curvature process.
graphs, the curvature evaluation toolbox is able to high- From the initial 晒賃 points it is possible to derive the
light the most important points belonging to the B-Spline 兼values of the 四 拍 賃 parametric coordinates necessary to
by means of the Leyton Process-Grammar. find the positions of the free nodes usedto define the me-
This information represents the input for the next stage chanical model. The Chord Length Method [21] has been
in which a splitting toolbox, whose implementation is adopted in order to computethe 四 拍 賃 values. This is the
based on the Boehm’s knot insertion algorithm, allows to most widely used method, and it is generally adequate.
increase the flexibility of the B-Spline without changing The 四 拍 賃 parameters, in conjunction with the degree 喧
the shape of the curve by inserting additional knot values and the number 券 of control points, are necessary for the
into the knot vector and thus inserting new control points. computation of the knots vector 山. The B-Spline curves
0 adopted for the initial unconstrained fitting problem are
The result is a more flexible curve on which G continui-
ties have been introduced. open uniform B-Spline curves that impose that the initial
In the last stage, the B-Spline fitted curve is calculated and final 喧 髪 な knot values are, respectively, 0 and 1. In
again with the introduction of some shape constraints like presence of internal knots, which number is equal to
position, distance, straight and curvature. 岫券 伐 な岻 伐 喧, their definition is obtained through the adop-
All the functions have been implemented in MatLab tion of either the Averaging Method or the De Boor Me-
and the solver used for the resolution of the optimization thod, that allows knots vector 山 to reflect the distribution
problem is fmincon of the Optimization Toolbox [22] that of the四拍 賃 parameters[21, 23]. Once the knots vector 山 has
attempts to find a constrained minimum of a scalar func- been defined, the 軽沈 椎 岫憲岻basis functions and the equation
tion of several variablesby starting at an initial estimate.In of the B-Spline刷岫憲岻 curve are computed automatically, in
the followings sections each stage will be discussed in which the unknowns are the 岫捲沈 検沈 岻 coordinates of the
details. control points 皿沈 . In order to select one solution among all
the possible ones, an objective function is added and a
3.1 Initial Fitting criterion has to be chosen.
This section describes in detail the mathematical pro-
cedure defined for the initial unconstrained fitting.The B- 3.1.1 Mechanical model definition
Spline curve is the model adopted for the fitting of 兼 initial The FDM enables geometric manipulations of a bar
晒賃 points, the curve’s degree 喧 and the number of the 券 network through the modification of external forces ap-

June 15th – 17th, 2011, Venice, Italy 237 Proceedings of the IMProVe 2011
L. Barbieri et al. Constrained fitting of B-Spline curves based on the Force Density Method

plied to its nodes. It is possible to distinguish the blocked returns a vector of dimension に券 that are the 岫捲沈 検沈 岻
nodes from the free nodes (unknowns of the fitting prob- coordinates of the 券 control points皿沈 .
lem). The position of the free nodes is automatically up-
dated to compensate the external forces variations and 3.2 Curvature Evaluation
maintain the static equilibrium of the structure.
Each bar can be seen as a spring of length li with a The second stage of the proposed methodology is the
force density (stiffness) qi. To preserve the static equili- curvature evaluation, whose aim is the individuation, in an
brium state of bars, fiexternal forces have to be applied to objective manner, of the principal characteristics of the B-
the endpoints of the bar: 血沈 噺 圏沈 ゲ 健沈 (fig.4). The set of ex- Spline fitted curve computed in the previous stage. The
ternal forces applied to the initial bar network can be then curvature evaluation consists of two main steps: the cur-
obtained through the static equilibrium equations at each vature analysis and the Leyton signature that allows to
free node. index each curve through the adoption of the Ley-
The shape of a network strongly depends on the con- ton’sprocess-grammar.
nectivityrulesspecifyingwhich nodes have to be connected
by springs. For the fitting problem the definition of a me- 3.2.1 Curvature Analysis
chanical model of a spring network has been necessary
The curvature is defined as the vector 倦 whose magni-
for the computation of the objective function. Among the
tude is the reciprocal of the radius of the circle [24, 25].
different solution that could be adopted the next figure
For aB-Spline curve B(u) the curvature function is:
shows the final network that is coupled between the point
to be fitted and the B-Spline curve:
匂遁 匂鉄 遁
辰奪担磐 "" 卑
匂祢 匂祢鉄
倦岫憲岻 噺 匂遁 典
(5)
嵶 嵶
匂祢

For example, the next figures depict a cubic B-Spline


curve (red) with 14 control points (blue circles) calculated
by the fitting of 21 initial points (black circles) and its cur-
vature graph that allows to pick out the points of the curve
with the highest curvature.

Fig.4 Mechanical model of a spring network adopted for the


fitting.

The points1 to 5 are the晒賃 blocked nodes (兼 initial


points) to fit; 2’, 3’ and 4’ are the free nodes located di-
rectly on the curve. There are totally に兼 伐 ぬ springs that Fig.5 Initial B-Spline fitted curve.
can be distinguished in those that link two consecutive
nodes on the curve with the same force density 圏態 , and
the other ones, with force density 圏怠 that link a blocked
node with the correspondent free node on the curve. The
force densities 圏沈 are parameter that increase the flexibili-
ty of the method indeed their modification influence the
shape of the fitted curve. In particular for 圏怠 噺 な and
圏態 噺 ど the method returns the same results as forthe
LSM.
As stated before, the equilibrium is calculated only on
the free nodes, then, for a fitting problem with 兼 points to
fit, に 抜 岫兼 伐 に岻 equations will be calculated in order to
compose the equation of the objective function. The mi-
nimization of the sum of the square external forces, com-
puted on the free nodes of the network, has been adopted
as objective function.

溝岫繋岻 噺 デ陳貸態 態 陳貸態 態 陳貸態 態


珍退怠 血珍 噺 デ珍退怠 血掴珍 髪 デ珍退怠 血槻珍 (4)

The equation of the objective function Φ(F) is calcu-


lated automatically and given as input to the solver, which Fig.6Curvature plot of the initial fitted B-Spline curve.

symmetry and curvature. Mathematically, symmetry and


3.2.2 Leyton’s Signature curvature are two very different descriptors of shape.
The process-grammar of Leyton [14, 26] is a syntactic However, the symmetry-curvature duality theorem proved
description of a curve based on two structural factors: in [14] shows that there is an intimate relationship be-

June 15th – 17th, 2011, Venice, Italy 238 Proceedings of the IMProVe 2011
L. Barbieri et al. Constrained fitting of B-Spline curves based on the Force Density Method

tween these two descriptors. Indeed the theorem states ing the flexibility of a curve, these algorithms can be clas-
that, to each curvature extremum, there is a unique sym- sified in: degree elevation/reduction; knot insertion; knot
metry axis terminating at that extremum. Furthermore the removal; reparameterization. The basic idea behind these
Interaction Principle [14] statesthat each of the axes is a techniques is to increase the flexibility of the curve without
direction along which a process has acted. The implica- changing the shape of the curve. The success of the idea
tion is that the boundary was deformed along the axes; depends on the fact that there are an infinite number of
e.g. each protrusion was the result of pushing out along control points with more than the minimum number of ver-
its axis, and each indentation was the result of pushing in tices that represent identical B-Spline curves [28].
along its axis. There are four alternative labels (M+, m−, In order to develop a toolbox that allows splittinglocally
m+, and M−) that could be associated to each axes and a B-Spline curve,it is necessary to enhance the flexibility
these correspond to the four alternative types of curvature of the B-Spline by increasing the number of the control
extrema. M and m denote, respectively, a curvature max- points, which corresponds in inserting additional knot val-
imum and minimum; and + and −, respectively, denote ues into the knot vector山 (knot insertion technique). The
positive and negative curvatures. finalresult is a curve defined by a larger number of control
The introduction of the Leyton’sprocess-grammar with- points, but which defines exactly the same curve as be-
in the proposed approach allows identifying the exact po- fore the knot insertion. This technique provides more local
sition of the curvature extrema. Indeed the next picture control by isolating a region to be modified from the rest of
shows that the curvature graph, calculated in the previous the curve, which thereby becomes immune from the local
section, can be enriched of the information obtained modification. In particular the development of the splitting
through the Leytonprocess-grammar; in particular the toolbox is based on the Boehm’s knot insertion algorithm
highest curvature’s value is 倦岫憲岻 噺 な のにfor 憲 噺 ば ばな. [29, 30]. Consider the original curve B(u) defined by eq.1
with the knot vector岷戟峅 噺 範憲怠 "憲態 "憲津袋椎袋怠 飯. After knot
insertion, the new curve is C(t) defined by:

察岫建岻 噺 デ陳貸怠 拍
珍退待 軽珍 椎 岫建岻 ゲ 鶏珍

(6)

with the knot vector 岷戟 茅 峅 噺 範憲怠茅 "憲態茅 "憲陳袋椎袋怠



飯 where m
> n. The Boehm’s algorithm allows to determine the new
control polygon vertices 皿珍茅 such that 刷岫憲岻 噺 察岫建岻.
In a nutshell, the implementation of the splitting toolbox
0
allows insertingG continuities in the characteristic points
detected during the curvature analysis; from a mathemati-
cal points of view, the outputs of the splitting toolbox are:
1. the modified knot vector 岷戟 茅 峅 with internal multiplici-
ties;
2. the new set of 憲博賃 parameters (their number is equal
to the number of control points 皿珍茅 ) necessary to
build the final bar network.
These outputs represent the data necessary in the last
stage to perform the constrained force density fitting that
allowsfinding the final shape of the B-Spline curve.
The next figure shows the result of the splitting toolbox
Fig.7Curve’s signature and parametric position of its extre- applied to the B-Spline depicted in fig.8, the curve has
ma. been split in the point according the curvature analysis
represented in fig.7. The 罫 待 continuity has been obtained
As depicted in figure7, each curve’s extremumhas with a multiple internal knot that yields 3 new control
been individuated with a label that specify the type of the points, one of which is exactly on the curve at the location
extremum, and for each of themit is possible to detect: the 刷岫憲 噺 ば ばな岻:
parametric position on the curve, the value of the curva-
ture and the type of the extremum.

3.3 Splitting Toolbox


Before proceeding with the enforcement of shape con-
straints in the fitting problem it is necessary to increase
the flexibility of the initial fitted B-Spline curve. This opera-
tion allows the engineers to restrict the influence of con-
straints in specific regions of the B-Splinecurve,from there
it will be possible to impose various constraints in the fit-
ting problem by specifying their type and range of influ- Fig.8Curve splitting using Boehm’s algorithm.
ence.
For B-Spline editing the literature proposes different
and various algorithms [27] that allow increasing or reduc-
count: the set of points 岶芸賃 岼 倦 噺 な 兼 to fit; the curva-
3.4 Constrained Fitting ture information and the characteristic points of the initial
As stated before, the method ends with the computa- fitted B-Spline curve inferred by the curvature evaluation
tionof the final constrained fitting curve taking into ac-

June 15th – 17th, 2011, Venice, Italy 239 Proceedings of the IMProVe 2011
L. Barbieri et al. Constrained fitting of B-Spline curves based on the Force Density Method

toolbox; the modified knot vector 岷戟 茅 峅and the new set of 態 態


盤鶏掴沈 伐 鶏掴珍 匪 髪 盤鶏槻沈 伐 鶏槻珍 匪 伐 穴態 噺 盤デ津貸怠
· 沈退待 軽沈 椎 岫憲沈 岻 ゲ
憲博賃 parameters output of the splitting toolbox. 態
While the first fitting toolbox yields a uniform B-Spline 捲沈 伐 デ津貸怠 津貸怠
沈退待 軽沈 椎 盤憲珍 匪 ゲ 捲沈 匪 髪 盤デ沈退待 軽沈 椎 岫憲沈 岻 ゲ 検沈 伐
態 (10)
curve, in the last fitting procedure a non-uniform B-Spline デ津貸怠 態
沈退待 軽沈 椎 盤憲珍 匪 ゲ 検沈 匪 伐 穴 噺 ど"
curve has been adopted in order to utilize the output of
the curvature analysis and splitting toolbox and then per- Straight Constraint. In order to impose that a specific
form a constrained fitting curve. The non-uniform B-Spline region of the B-Splinecurve has to be straight it is neces-
model is more general than the uniformB-Splines curves, sary to apply the straight constraint on the control points
although it is not the most general type of this curve. It is 皿沈 of the curve.Such a constraint can be expressed with
obtained when the knot values are not equally spaced. the followingvectorial equation:
The only requirement is that the knots have to be non-
decreasing. 岫皿沈 伐 皿沈貸怠 岻 巻 岫皿沈袋怠 伐 皿沈 岻 噺 宋 (11)
From a mathematical point of view,ourconstrained fit-
ting problem is translated into the following optimization that is an equality non-linear constraint. In order to in-
problem: troduce automatically this type of constraint,in the fitting
problem, the function implemented in MatLabaccepts the
兼件券 溝岫繋岻 噺 兼件券 デ賃 血賃態 coordinates of the control points as input parameters.
崕 (7)
罫岫繋岻 噺 ど""""""""""""""""""""""""""
Curvature Constraint. The curvature constraint is an
where溝岫繋岻 is the objective function to minimize whose equality non-linear constraint that can be formulated using
computation depends on the adopted mechanical model the subsequent equation:
of bar network, and 罫岫繋岻 is the set of shape constraints to
enforce in the fitting problem. 稽岌掴 岫憲博賃 岻 ゲ 稽岑槻 岫憲博賃 岻 伐 稽岌槻 岫憲博賃 岻 ゲ 稽岑掴 岫憲博賃 岻 (12)

The condition of the final fitting problem has been im- 帋 戴 帋噺磐 卑
態 態 斑態 堅
plemented using the Matlab function "fmincon" (find min- 岾盤稽岌掴 岫憲博賃 岻匪 髪 盤稽岌槻 岫憲博賃 岻匪 峇
imum of constrained nonlinear multivariable function) be-
longing to the “Optimization ToolBox” that allows to pro-
gram linear/non-linear and equali- where憲博賃 is the set ofpoints of the B-Splinecurve on
ty/inequalityconstraints.As stated before, only some which the curvature constraint are imposed, and 堅 is the
shape constraints have been programmed and tested, curvature’s radius. The derivatives 刷岌岫憲岻 and 刷岑岫憲岻 of a B-
such as: position, distance, straight and curvature con- Spline curve at any point on the curve are obtained by
straints. formal differentiation. Specifically, the first and the second
derivative are, respectively:
Position Constraint. The position constraint is a linear 津貸怠 津貸怠
equality constraint that can be imposed eitheron one or (13)
more control points 皿沈 oron point/s of the B- 刷岌岫憲岻 噺 布 軽岌沈 椎 岫憲岻 ゲ 皿沈 " "刷岑岫憲岻 噺 布 軽岑沈 椎 岫憲岻 ゲ 皿沈
Splinecurve刷岫憲岻. In the first case two equations are add- 沈退待 沈退待
ed to the system for each constrained control point. The
equations of each position constraint added to the fitting The derivatives of the basis functions (eq.2 and eq.3)
problem are calculated automatically by the correspon- are also obtained by formal differentiation:
dent function implemented in MatLab, which accepts the
岫捲沈 検沈 岻coordinates of the control point to constrain as in- 軽沈 椎貸怠 岫憲岻 髪 岫憲 伐 捲沈 岻軽岌沈 椎貸怠 岫憲岻 (14)
軽岌沈 椎 岫憲岻 噺
put parameters. 捲沈袋椎貸怠 伐 捲沈
Also the position constraint applied on a specific point 盤捲沈袋椎 伐 憲匪軽岌沈袋怠 椎貸怠 岫憲岻 伐 軽沈袋怠 椎貸怠 岫憲岻
of the B-Splinecurve yields two linear equality equations 髪
捲沈袋椎 伐 捲沈袋怠
to add to the system. For example, the introduction of a
position constrainton the specific point 刷岫憲 噺 ど の岻 噺
Differentiating the previous equation yields the second
岫捲鎚 検鎚 岻can be written as:
derivative of the basis function:
"
津貸怠
緊稽 岫憲 噺 ど の岻 噺 布 軽 岫憲 噺 ど の岻 ゲ 捲 噺 捲 に軽岌沈 椎貸怠 岫憲岻 髪 岫憲 伐 捲沈 岻軽岑沈 椎貸怠 岫憲岻 (15)
衿 掴 沈椎 沈 坦 軽岑沈 椎 岫憲岻 噺
沈退待
捲沈袋椎貸怠 伐 捲沈
(8)

津貸怠 盤捲沈袋椎 伐 憲匪軽岑沈袋怠 椎貸怠 岫憲岻 伐 に軽岌沈袋怠 椎貸怠 岫憲岻

衿稽槻 岫憲 噺 ど の岻 噺 布 軽沈 椎 岫憲 噺 ど の岻 ゲ 検沈 噺 検坦 捲沈袋椎 伐 捲沈袋怠
菌 沈退待
For example, let us suppose we are performing a con-
Distance Constraint. The distance constraint is an strained fit that starting from the initial fitting (fig.5) and the
equality non-linear constraint that can be applied either information inferred from the curvature analysis (fig.7) and
betweentwo control points of the B-Spline curve, i.e. the splitting toolbox (fig.8) consider also a curvature and a
舗皿珍 伐 皿沈 舗 噺 穴, orbetween two points of the curve, straight constraint, the following figure shows the resultant
i.e.舗刷岫憲沈 岻刷岫憲珍 岻舗 噺 穴 .In both cases the imposition of a final constrained FD B-Spline fitted curve:
distance constraint implies the addition of one equation to
the system:
態 態
· 盤鶏掴沈 伐 鶏掴珍 匪 髪 盤鶏槻沈 伐 鶏槻珍 匪 伐 穴態 噺 ど (9)

June 15th – 17th, 2011, Venice, Italy 240 Proceedings of the IMProVe 2011
L. Barbieri et al. Constrained fitting of B-Spline curves based on the Force Density Method

[7] W. Wang, H. Pottmann, Y. Liu. Fitting B-Spline


curves to point clouds by curvature-based squared dis-
tance minimization. ACM Transactions on Graphics 25,
214–238. 2006.
[8] A. Blake, M. Isard, M. Active Contours. Springer, New
York. 1998.
[9] H.J. Schek.The force density method for form finding
and computation of general networks. Comp. Meth. in
App. Mech. and Eng., vol. 3(2), 1974,pp. 115–134.
Fig.9 Final constrained fitted curve. [10] L.Gründig,E.Moncrieff, P. Singer and D. Ströbel. A
history of the principal developments and applications of
In this example we have imposed 堅 噺 はbut, as general the force density method in Germany 1970-1999. In Pa-
rule, the curvature’s radius is a well-known parameter re- padrakakis Ed., Proc. IASS-IACM 2000, June 2000, Cha-
liant on the product or the technological process however nia-Crete, Greece.
it may also be inferred from the curvature plot. [11] P.Véron, P.Trompette and J.C. Léon.Integrated de-
sign and collaborative engineering of fabric structures.
4 Conclusion Engineering with Computers, vol. 14, 1998,pp. 23–35.
[12] S. Guillet,J.C. Léon. Deformation criteria for the direct
The paper has proposed a new approach for a con- manipulation of free form surfaces. Curves & Surfaces,
strained B-Spline fitting technique based on the Force edited by L. Schumaker and A. Le Mhaut, Saint-Malo,
Density Method. Its usefulness has been illustrated with 2000.
some shape constraints where the enforcement, in the [13] J.P. Pernot,S. Guillet, J.C. Lèon, B. Falcidieno, F.
fitting problem, may be necessary to satisfy tolerances Giannini.Interactive operators for Free Form Features
and reproduce regularities required by technological manipulation. Book of the SIAM Conference on Geometric
processes and engineering applications. Design & Computing, 10-13 November 2003, Seattle,
The method is composed by four stages: for each one, USA.
different functions have been implemented in MatLab in [14] M. Leyton.Symmetry-curvature duality. Computer Vi-
order to automate the whole process. The method has sion, Graphics, and Image Processing, 38, 1987, pp.327-
been validated with the implementation of simple shape 341.
constraints, but the functionalities present in the Optimiza- [15] URL: http://www.mathworks.com/
tion Toolbox, adopted as a solver, allow to develop any [16] E.Saux. B-Spline Curve Fitting: Application to Carto-
kind of constraint and then to create libraries of shape graphic Generalization of Maritime Lines. International
constraints depending on the engineering applications or Conference Graphicon 1998, Moscow, Russia.
technological processes to be adopted. [17] A.Ruas, J.P. Lagrange.Etat de l’art en généralisa-
The results suggest that the adoption of a mechanical tion& survey on generalization. Technical Report DT-93-
model of barnetworks (FDM) allows developing a more 0538, IGN-France, 1993.
flexible tool than the traditional LSMs usually adopted for [18] J.C. Léon, P. Trompette. A new approach towards
fitting problems. Indeed, as described in the paper, for free-form sufaces control. Computer Aided Geometric De-
specific values of the force densities the approach yields sign, vol. 12, 1995,pp. 395–416.
the same results of the LSM. [19] J. Sanchez, M.A. Serna,P. Morer. Using NURBS Fit-
However there are some limitations due to the formula- ting Techniques To Represent Tensile Structures. Adapt-
tion of the B-Spline curve:B-Spline are still polynomial ables2006, TU/e, International Conference On Adaptable
curves indeed, hence cannot represent many useful sim- Building Structures. Eindhoven The Netherlands 03-05
ple curves such as circles and ellipses. Nevertheless this July 2006.
approach could be extended and easily readapted for the [20] D.F. Rogers, N.G. Fog. Constrained B-Spline Curve
NURBS curves,which allow to further enhance the flexibil- and Surface Fitting. Computer Aided Design, 21[10],
ity of the proposed technique. 1989, pp.641-648.
[21] L.Piegl, W.Tiller. The NURBS Book. Springer, New-
References York, 2nd edition, 1997.
[22] MatLab documentation, URL:
[1] S. L. Arlinghaus. Practical handbook of curve fitting. http://www.mathworks.com/help/toolbox/optim/
CRC Press, 249pp, 1994. [23] C.De Boor. A Practical Guide to Splines. New York:
[2] N.Chernov,C.Lesort, N.Simányi.On the complexity of Springer-Verlag,1978.
curve fitting algorithms. Journal of Complexity, v.20 n.4, [24] D.Salomon. Computer Graphics and Geometric Mod-
August, 2004,pp.484-492. eling. New York, Springer-Verlag,1999.
[3] N.Chernov,C.Lesort.Statistical efficiency of curve fit- [25] D.Salomon. Curves and surfaces for computer graph-
ting algorithms. Computational Statistics & Data Analysis, ics.New York, Springer-Verlag,2006.
2004,pp. 713-728. [26] M. Leyton.Process Grammar. DIMACS Technical
[4] J. Yang, H.Byun.Curve fitting algorithm using iterative Report 2007-09, Rutgers University, New Brunswick, NJ
error minimization for sketch beautification. 19th Interna- 08854, September, 2007.
tional Conference on Pattern Recognition, 2008. ICPR [27] L.Piegl, W. Tiller. Algorithm for degree reduction of B-
2008. Spline curves. CAD, Vol. 27, No. 2, 1995,pp. 101-110.
[5] J. Hoschek.Intrinsic parameterization for approxima- [28] D.F. Rogers.An Introduction to NURBS: With Histori-
tion. Computer Aided Geometric Design 5, 27–31. 1988. cal Perspective.Morgan Kaufmann publisher, San Diego,
[6] A. Atieg, G.A. Watson. A class of methods for fitting a 2001.
curve or surface to data by minimizing the sum of squares [29] W. Boehm.Inserting new knots into B-Spline curves.
of orthogonal distances. Journal of Computational and CAD, Vol. 12, 1980,pp. 199-201.
Applied Mathematics 158, 227–296. 2003. [30] W. Boehm,H.Prautzsch. The insertion algorithm.
CAD, Vol. 17, 1985,pp. 58-59.

June 15th – 17th, 2011, Venice, Italy 241 Proceedings of the IMProVe 2011

You might also like