scieee AI-readable full text Open interactive document viewer

Geometric Modeling of the Valencia Orange (Citrus sinensis L.) by Applying Bezier Curves and an Image-Based CAD Approach

Tinoco Navarro, Hector Andres; Barco, Daniel Ricardo; Buitrago-Osorio, Jaime; Ocampo, Olga

Abstract

The computer-aided design of fruits are used for different purposes, e.g., to determine mechanical properties by applying engineering simulations, to design postharvest equipment, and to study the natural changes related to the topology. This paper developed a methodology to model Valencia orange (Citrus sinensis), applying Bezier curves and an image-based CAD approach; the orange geometry was designed for different ripening stages. In the modeling process, a 3D construction was carried out using third-order Bezier curves, adjusted to the images taken in orthogonal planes. Four control points defined each profile to compose the geometric pattern of the orange, with geometric errors lower than 3%. Two prediction models were proposed to relate the orthogonal dimensions with a factor size; this means that two dimensions out of three can be predicted. The results showed that the shape ratios kept constant in any ripening stage; however, the radius of curvature evidenced differences in the analyzed shape profiles. The methodological framework presented in the paper might be used to draw other types of citrus fruits. This contribution is a tool to model fruits in 3D, instead of using expensive technological equipment, since it is only necessary to apply computer design tools.

Full text

agriculture Article Geometric Modeling of the Valencia Orange (Citrus sinensis L.) by Applying Bézier Curves and an Image-Based CAD Approach Hector A. Tinoco 1,2,3,* , Daniel R. Barco 4, Olga Ocampo 1and Jaime Buitrago-Osorio 1 1Experimental and Computational Mechanics Laboratory, Universidad Autónoma de Manizales, Antigua Estación del Ferrocarril, Edificio fundadores C.P., Manizales 170001, Colombia; [email protected] (O.O.); [email protected] (J.B.-O.) 2Institute of Physics of Materials, Sciences Academy of Czech Republic, Žižkova 22, 616 62 Brno, Czech Republic 3Central European Institute of Technology, Brno University of Technology, Purkyˇnova 648/125, 621 00 Brno, Czech Republic 4Tecno-Parque nodo Manizales, Servicio Nacional de Aprendizaje -SENA, Manizales 170001, Colombia; [email protected] *Correspondence: [email protected] Received: 22 May 2020; Accepted: 23 July 2020; Published: 29 July 2020   Abstract: The computer-aided design of fruits are used for different purposes, e.g., to determine mechanical properties by applying engineering simulations, to design postharvest equipment, and to study the natural changes related to the topology. This paper developed a methodology to model Valencia orange (Citrus sinensis), applying B é zier curves and an image-based CAD approach; the orange geometry was designed for different ripening stages. In the modeling process, a 3D construction was carried out using third-order B é zier curves, adjusted to the images taken in orthogonal planes. Four control points defined each profile to compose the geometric pattern of the orange, with geometric errors lower than 3%. Two prediction models were proposed to relate the orthogonal dimensions with a factor size; this means that two dimensions out of three can be predicted. The results showed that the shape ratios kept constant in any ripening stage; however, the radius of curvature evidenced differences in the analyzed shape profiles. The methodological framework presented in the paper might be used to draw other types of citrus fruits. This contribution is a tool to model fruits in 3D, instead of using expensive technological equipment, since it is only necessary to apply computer design tools. Keywords: CAD-based geometric model; Valencia orange; geometric model parametrization; fruit modeling; 3D fruits; Bézier curves; image-based CAD 1. Introduction Citrus fruits are an agricultural product of high demand in international markets since they correspond to raw materials, for the production of juices, canned products, and dry products. Valencia orange (Citrus sinensis) is the most cultivated sweet orange variety in subtropical regions, with a production of 85% of the global market, approximately. Brazil, United States of America, Mexico, India, and China are the main producing countries [ 1 ]. In the case of Colombia, 8.6 million hectares of land are dedicated to agricultural production, and almost 1.16% corresponds to citrus crops, which are located in the central region integrated by Tolima, Eje Cafetero, Santander, Huila, and Antioquia [ 2 ]. The cultivation of this fruit has become of vital importance for the economic development of these regions in Colombia. Agriculture 2020,10, 313; doi:10.3390/agriculture10080313 www.mdpi.com/journal/agriculture Agriculture 2020,10, 313 2 of 12 Citrus fruits vary its physico–chemical properties, geometric characteristics, flavor, and coloration, during the post-harvesting stage. These changes can imply affectations in the quality requirements, as a commercial product. Other characteristics like the fruit shape are considered to be a crucial feature of the postharvest process, since several conditions depend on this parameter; i.e., cooling [ 3 ], convective drying [4], short- and long-term storage [5], and selective harvesting by mechanical vibrations [6–8]. There are different techniques to reproduce the shape of real fruits using computer-aided modeling or image-processing, which are the most common computational tool applied for several purposes that require fruits as 3D objects [ 9 – 11 ]. In the case of the geometric characterization through parametric analytical models, most fruits present geometric complexities that are very difficult to reproduce [ 12 , 13 ]. Especially in oranges, notwithstanding the absence of an accurate geometric model, if these are well-applied, these could replace computer scanning techniques that require sophisticated equipment [ 14 , 15 ]. However, to overcome this limitation, mathematical approximations based on spheres, ellipses, cylinders, and combinations are used as the basis for the geometrical description of fruits [ 12 , 16 – 19 ]. In some cases, these models can be applied; nevertheless, these are not very useful to characterize mechanical properties, due to the physical dependencies with the geometry [8,12,13]. Several fruit models (computer-aided design) were developed for the determination of mechanical properties, using computational tools and experiments. For example, Dintwa et al. [20] proposed the construction of a half fruit for determining the viscosity through finite element analysis (FEA) and experimental fruit collisions. First, the authors obtained a sketch drawn of the fruit image processing program, to analyze the dynamic process of the collision of apple fruit, in which the results showed the importance of the geometry. Tinoco et al. [ 7 ] modeled the topology of coffee fruits employing image processing and B é zier’s curves. The authors determined Young’s modulus for different ripening stages, to assess the vibration modes by FEA. The authors indicated that geometric characteristics should be taken into account to estimate mechanical properties like elasticity, viscosity, damping, firmness indices, etc. Other studies showed that it is possible to make simplifications that do not affect the results significantly. For instance, Gharaghani et al. [ 19 ] simplified the geometry of an orange fruit to classify the ripening stage with finite element simulations. Natural frequencies showed that the resonance values were much higher in unripe oranges than the ripe ones. These results could be used as an automatic natural frequency monitoring system, as the authors suggested in their study. In other approaches, Rusinkiewicz [ 21 ] and Torppa et al. [ 22 ] practiced different approaches to model agricultural products that mainly include simplified geometric models. Gielis [ 23 ] developed a super-form formula to characterize a variety of natural shapes (plants) in a single geometric frame, with six parameters. Li et al. [ 13 ] developed a mathematical model to describe the geometry of tomatoes. The study mentions that it is a practical tool for characterizing the shapes of tomato and size variations related to the mass. As reported by the cited studies, it demonstrates that the computational modeling of fruits and vegetables is a window to characterize physical properties and develop agricultural technology through several simulation tools. The objective of this study was to represent and discuss the development of a CAD (computer-aided design)-based geometric model of Valencia orange (Citrus sinensis L.), considering four ripening stages. The methodology is based on approximating through B é zier curve profiles obtained from an imaging technique to be modeled in CAD software. The parametric model correlates the topology of the orange (grown in Colombia), with its orthogonal dimensions, for the reconstruction of a 3D model. 2. Geometric Model Based on Bézier Curves To represent the geometry of the orange, let us assume its structure in a specific orientation, as is shown in Figure 1a. In the simplified geometry of the fruit–peduncle system, unitary vectors denoted by the directions e1 , e2 , and e3 define the fruit topologically. Where φ1 (highest dimension) and φ2 are the equatorial diameters, such that φ1≥φ2 , and φ3 is the polar dimension of the fruit. The directions ei∀i=1,2,3 coincide with a coordinate system x,y, and z, which is orthogonal by definition. Agriculture 2020,10, 313 3 of 12 Agriculture 2020, 10, x FOR PEER REVIEW 3 of 12 of the fruit. The directions 1, 2, 3 i ei∀= coincide with a coordinate system x , y , and z , which is orthogonal by definition. Figure 1. (a) Simplified geometry of Valencia orange–peduncle. (b) Principal geometric planes that define the topology of the Valencia orange. (c) Bézier’s curves on the five principal geometric planes. It was assumed that one-fourth of the fruit was limited by five sets of functions ( ), 1,...,5 i ft i∀= established at the planes ,12,21,13,31,32 kj IIIIIII ee kj−∀= , as observed in Figure 1b,c. Each set of functions () i ft represent Bézier cubic curves that were constructed with the points of control 𝑃 , 𝑃  , 𝑃 , and 𝑃  , established in each plane kj ee− . Knowing that a Bézier cubic curve [24] is represented commonly as 3223 1233 ( ) (1 ) 3 (1 ) 3 (1 ) , (0,1) i ft t p t t p t tp tp t=− + − + − + ∀∈ , a set of functions could be organized in such a way that the curves that describe the form of each fourth were delimited within the following set () {} 2 () (), () () , () , (0,1) iii iiii ft t t t t t=∈==∀∈ TT XY X atY bt (1) where [] 1234 , iiiii aaaa= T a [] 1234iiiii bbbb= Τ b and 32 1ttt  = T t. Each fourth of the fruit was assumed to be symmetric, with respect to the symmetry planes (two planes) that define the final shape. The explanation of the symmetry planes is discussed in the posterior sections. For Equation (1), vectors i a and i b are a set from the formulation of Bézier curves by ixi =aTp (2) iyi =bTp (3) where [] xi 1 2 3 4 T xi xi xi xi PPPP=p and 1234yi yi yi yi yi PPPP  = p are the coordinates of the control points. For Equations (1) and (2), the matrix T is defined as follows: Figure 1. ( a ) Simplified geometry of Valencia orange–peduncle. ( b ) Principal geometric planes that define the topology of the Valencia orange. (c) Bézier’s curves on the five principal geometric planes. It was assumed that one-fourth of the fruit was limited by five sets of functions fi(t) , ∀i= 1, . . . ,5 established at the planes ek−ej , ∀kj = 12 I ,21 II ,13 I ,31 II ,32 I , as observed in Figure 1b,c. Each set of functions fi(t) represent B é zier cubic curves that were constructed with the points of control P1i , P2i , P3i , and P4i , established in each plane ek−ej . Knowing that a B é zier cubic curve [ 24 ] is represented commonly as fi(t) = (1−t)3p1+ 3 t(1−t)2p2+ 3 t2( 1 −t)p3+t3p3 , ∀t∈( 0,1 ) , a set of functions could be organized in such a way that the curves that describe the form of each fourth were delimited within the following set fi(t) = n(Xi(t),Yi(t))∈R2Xi(t) = aiTt,Yi(t) = biTt,∀t∈(0,1)o(1) where aiT=ha1ia2ia3ia4ii , biT=hb1ib2ib3ib4ii and t=ht3t2t1iT . Each fourth of the fruit was assumed to be symmetric, with respect to the symmetry planes (two planes) that define the final shape. The explanation of the symmetry planes is discussed in the posterior sections. For Equation (1), vectors aiand biare a set from the formulation of Bézier curves by ai=Tpxi (2) bi=Tpyi (3) where pxi =hP1xi P2xi P3xi P4xi iT and pyi =hP1yi P2yi P3yi P4yi i are the coordinates of the control points. For Equations (1) and (2), the matrix Tis defined as follows: T= −1 3 −3 1 3−6 3 0 −3 3 0 0 1 0 0 0  (4) Agriculture 2020,10, 313 4 of 12 To design the orange geometry, fn i(t) , ∀n={1,. . . ,4} each orange fourth n should be well-defined. However, it is not necessary to build all fourth, i.e., one by one, since the oranges present two symmetry planes, as described in Figure 1c and Figure 2. Both symmetry planes are co-linear with the highest equatorial dimension φ1 (oriented in e1 ). These planes were set from an experimental exploratory analysis, performed with the dimension assessment and the application of CAD tools. To explain the geometrical construction process in detail, first, we developed the fruit in three stages; the first one (green shell) was related to the construction of the first four, obtained with the implementation of five B é zier curves. Then in the second one (dark green shell), the fourth was reflected on the symmetry plane e1−e3 . In this way, half an orange “shell” was constructed. In the final stage (purple shell), half orange was replicated on another plane e1−e2 , and with these procedures, an underlying topology of the fruit was designed, as detailed in Figure 2. Agriculture 2020, 10, x FOR PEER REVIEW 4 of 12 13 31 3630 33 00 1000 −−   −  = −   T (4) To design the orange geometry, {} ( ), 1,..., 4 n i ft n∀= each orange fourth n should be welldefined. However, it is not necessary to build all fourth, i.e., one by one, since the oranges present two symmetry planes, as described in Figures 1c and 2. Both symmetry planes are co-linear with the highest equatorial dimension 1 φ (oriented in 1 e ). These planes were set from an experimental exploratory analysis, performed with the dimension assessment and the application of CAD tools. To explain the geometrical construction process in detail, first, we developed the fruit in three stages; the first one (green shell) was related to the construction of the first four, obtained with the implementation of five Bézier curves. Then in the second one (dark green shell), the fourth was reflected on the symmetry plane 13 ee− . In this way, half an orange “shell” was constructed. In the final stage (purple shell), half orange was replicated on another plane 12 ee− , and with these procedures, an underlying topology of the fruit was designed, as detailed in Figure 2. Figure 2. Stages for the geometric construction of the Valencia orange. We define two procedures to draw an orange as a 3D CAD-based model; one is founded in a basic topology (stage I), and the other is conformed on a geometry with a more elaborated topological base (stage I, complex topology), as illustrated in Figure 2. These supplementary procedures improve the approximation of the geometry since six new curves (secondary profiles) were added to the first stage. These curves approximate the curvature at planes located to different heights in the polar direction. 3. Geometric Relations and the Ripening Classification of Valencia Orange Simply viewed, the geometry of any rounded fruit might seem to be an irregular shape. However, the first impression could be misleading when mathematics represent complex geometries, as demonstrated by different studies [23,25,26]. To show and convey these ideas, Tinoco and Peña [8] established a relation between orthogonal diameters of coffee fruits (Coffea arabica L. var. Colombia), which demonstrated that rounded fruits grow systematically keeping its shape constant, through its diameters. An equation was expressed in general terms as a size factor, as follows: Figure 2. Stages for the geometric construction of the Valencia orange. We define two procedures to draw an orange as a 3D CAD-based model; one is founded in a basic topology (stage I), and the other is conformed on a geometry with a more elaborated topological base (stage I, complex topology), as illustrated in Figure 2. These supplementary procedures improve the approximation of the geometry since six new curves (secondary profiles) were added to the first stage. These curves approximate the curvature at planes located to different heights in the polar direction. 3. Geometric Relations and the Ripening Classification of Valencia Orange Simply viewed, the geometry of any rounded fruit might seem to be an irregular shape. However, the first impression could be misleading when mathematics represent complex geometries, as demonstrated by different studies [ 23 , 25 , 26 ]. To show and convey these ideas, Tinoco and Peña [ 8 ] established a relation between orthogonal diameters of coffee fruits (Coffea arabica L. var. Colombia), which demonstrated that rounded fruits grow systematically keeping its shape constant, through its diameters. An equation was expressed in general terms as a size factor, as follows: φ2 φ3 φ3 φ1+1!=α, (5) where α is a constant for any ripening stage. In the case of the orange; φ1 , φ2 , and φ3 correspond to the dimensions illustrated in Figure 3. In general terms, Equation (5) represents the contributions in Agriculture 2020,10, 313 5 of 12 diameters through a growth ratio. Tinoco and Peña [ 8 ] showed that the relation is constant, independent of the ripening stage of the coffee fruit. Agriculture 2020, 10, x FOR PEER REVIEW 5 of 12 3 2 31 1, φ φα φφ  +=   (5) where α is a constant for any ripening stage. In the case of the orange; 1 φ , 2 φ , and 3 φ correspond to the dimensions illustrated in Figure 3. In general terms, Equation (5) represents the contributions in diameters through a growth ratio. Tinoco and Peña [8] showed that the relation is constant, independent of the ripening stage of the coffee fruit. Figure 3. Orthogonal diameters defined on the Valencia orange (semi-ripe image). (a) Plane 12 ee− . (b) Plane 13 ee−. In a practical application, Equation (5) is used to predict the geometric dimensions using 1 φ as an input parameter, which permits the parametrization of the geometry of the orange. From experimental data, the ratio between the equatorial dimensions ( 1 φ , 2 φ and 3 φ ) kept harmonic relations that evidence a constant process of growing; this is demonstrated in the results posteriorly. Therefore, as a complement of Equation (5); the following expression is proposed, as follows: 2 1 . φβ φ = (6) Using Equations (5) and (6), it is possible to predict the diameters 2 φ and 3 φ , in the following way 1 213 ; . βφ φβφφ αβ == − (7) Equation (7) shows that there is dependence among the orthogonal diameters, since 2 φ and 3 φ could be estimated using 1 φ . To verify this hypothesis, Valencia oranges (Citrus sinensis) cultivated at the Caldas state (Colombia) were taken as analysis units, and standard rules were established to classify those in ripening categories. Figure 4 shows the chosen ripening states that were based on the NTC 4086 (Colombian technical standard), which established the colors that a Valencia orange (grown to more than 900 m above sea level) could have in the several ripening stages. For this research, the classification was categorized as an unripe, semi-mature, ripe, and over-ripe fruit. A detailed description of the color definition is described in Table 1, which mentions the characteristics of each category represented in Figure 4. As a complementary procedure to the color classification, the Brix degrees were determined to complement the classification process, as listed in Table 1. Brix degrees were measured with a traditional handheld refractometer (Hanna instruments), calibrated with distilled water, to a constant Figure 3. Orthogonal diameters defined on the Valencia orange (semi-ripe image). ( a ) Plane e1−e2 . (b) Plane e1−e3. In a practical application, Equation (5) is used to predict the geometric dimensions using φ1 as an input parameter, which permits the parametrization of the geometry of the orange. From experimental data, the ratio between the equatorial dimensions ( φ1 , φ2 and φ3 ) kept harmonic relations that evidence a constant process of growing; this is demonstrated in the results posteriorly. Therefore, as a complement of Equation (5); the following expression is proposed, as follows: φ2 φ1=β. (6) Using Equations (5) and (6), it is possible to predict the diameters φ2 and φ3 , in the following way φ2=βφ1;φ3=βφ1 α−β. (7) Equation (7) shows that there is dependence among the orthogonal diameters, since φ2 and φ3 could be estimated using φ1 . To verify this hypothesis, Valencia oranges (Citrus sinensis) cultivated at the Caldas state (Colombia) were taken as analysis units, and standard rules were established to classify those in ripening categories. Figure 4shows the chosen ripening states that were based on the NTC 4086 (Colombian technical standard), which established the colors that a Valencia orange (grown to more than 900 meters above sea level) could have in the several ripening stages. For this research, the classification was categorized as an unripe, semi-mature, ripe, and over-ripe fruit. A detailed description of the color definition is described in Table 1, which mentions the characteristics of each category represented in Figure 4. As a complementary procedure to the color classification, the Brix degrees were determined to complement the classification process, as listed in Table 1. Brix degrees were measured with a traditional handheld refractometer (Hanna instruments), calibrated with distilled water, to a constant temperature of 27 ◦ C [ 27 ]. This additional parameter was taken into account for the selection of the analysis samples (orange fruits), which meant that two conditions were satisfied in each categorization (color and Brix degrees) to assign a ripening state and to proceed in the measuring dimensions. The Brix values correspond to the amount reported by other studies done with oranges [ 28 – 30 ]. Two selection factors were considered because the color is a dependent parameter of the solar exposition. Therefore, this influence was minimized by the accomplishment of the two features. Agriculture 2020,10, 313 6 of 12 Agriculture 2020, 10, x FOR PEER REVIEW 6 of 12 temperature of 27 °C [27]. This additional parameter was taken into account for the selection of the analysis samples (orange fruits), which meant that two conditions were satisfied in each categorization (color and Brix degrees) to assign a ripening state and to proceed in the measuring dimensions. The Brix values correspond to the amount reported by other studies done with oranges [28–30]. Two selection factors were considered because the color is a dependent parameter of the solar exposition. Therefore, this influence was minimized by the accomplishment of the two features. Figure 4. Color definition for the ripening stages of the Valencia orange based on NTC (Colombian Technical standard) 4086. Table 1. Ripening stage description and Brix degrees for Valencia orange (SD means standard deviation). Ripening Color Description Brix Degree SD Unripe Fruit of green color well-developed 6.8 0.2 Semi-ripe Yellow fruit with light green appearance 7 0.2 Ripe Fruit of orange color with some light green appearances 9.4 0.3 Over-ripe Fruit completely orange 9 0.2 4. Methodology for Constructing a CAD-Based Geometric Model of a Valencia Orange Several CAD-based 3D modeling techniques have been developed for different applications, among which we can mention building reconstruction [31], CAD/CAM [32], robotics [33], etc. The most popular methods are those based on images since it is possible to design a 3D model from different directions and profiles of the image, including the restrictions that impose the geometry complexity. In our approach, we propose a method based on three images that are intersected to define the main profiles of an orange fruit. The first step is to orient the orange in its main directions (explained in Section 2), after identifying its ripening stage. The second procedure consists in the creation of a scaled image into the CAD software using photographs of the fruit over a millimeter sheet. SOLIDWORKS was used as CAD software in our case. In the third step, an aligning process is carried out with the images, to join the common points among these. Figure 5 illustrates two examples; in Figure 5a is shown a ripe fruit in which the projected images are aligned; the symmetry planes and the enumeration of each fourth are labeled on the photos. Additionally, the unripe fruit is represented in Figure 5b. The above was performed to obtain the exact silhouette of the fruit topology that permit a 3D reconstruction applying computational design operations focused on solids. Figure 4. Color definition for the ripening stages of the Valencia orange based on NTC (Colombian Technical standard) 4086. Table 1. Ripening stage description and Brix degrees for Valencia orange (SD means standard deviation). Ripening Color Description Brix Degree SD Unripe Fruit of green color well-developed 6.8 0.2 Semi-ripe Yellow fruit with light green appearance 7 0.2 Ripe Fruit of orange color with some light green appearances 9.4 0.3 Over-ripe Fruit completely orange 9 0.2 4. Methodology for Constructing a CAD-Based Geometric Model of a Valencia Orange Several CAD-based 3D modeling techniques have been developed for different applications, among which we can mention building reconstruction [ 31 ], CAD/CAM [ 32 ], robotics [ 33 ], etc. The most popular methods are those based on images since it is possible to design a 3D model from different directions and profiles of the image, including the restrictions that impose the geometry complexity. In our approach, we propose a method based on three images that are intersected to define the main profiles of an orange fruit. The first step is to orient the orange in its main directions (explained in Section 2), after identifying its ripening stage. The second procedure consists in the creation of a scaled image into the CAD software using photographs of the fruit over a millimeter sheet. SOLIDWORKS was used as CAD software in our case. In the third step, an aligning process is carried out with the images, to join the common points among these. Figure 5illustrates two examples; in Figure 5a is shown a ripe fruit in which the projected images are aligned; the symmetry planes and the enumeration of each fourth are labeled on the photos. Additionally, the unripe fruit is represented in Figure 5b. The above was performed to obtain the exact silhouette of the fruit topology that permit a 3D reconstruction applying computational design operations focused on solids. Agriculture 2020, 10, x FOR PEER REVIEW 7 of 12 Figure 5. Image intersection to define Bézier’s profiles. (a) Ripe orange and (b) unripe orange. As explained in Section 2 in a generalized procedure, five Bézier profiles are necessary to reproduce the whole orange in a 3D model, using the symmetry planes of the fruit. As a practical example, Figure 6 is considered; five profiles that describe one-fourth of each principal plane are shown. Each curve was established with four control points , kj P where 1, 2, 3, 4k= correspond with the points, and 1, .., 5j=relate each profile. The control points 1j P and 4j P were known, since these were located in the half of each principal orthogonal diameter. The other two points ( 2j P and 3j P ) were adjusted according to the shape. These correspond to each projection over the orthogonal principal axes, as illustrated in Figure 6a,b. It was noted that the coordinates represent each point (, )xy , for instance, in Figure 6a, 31 P coordinates were 12 ( , ), (0.1). φλφ λ ∀∈ For the point 21 P , the coordinates were established by 21 (, ), (0.1). φγφ γ ∀∈ In total, six unknown coordinates should be determined. This process minimized a significant number of parameters if the symmetry planes would not have been identified. The main advantage of this methodology is that the orange can be constructed systematically since the operations could be programmed. Nonetheless, this methodology presented some limitations, i.e. the information determined by the photos requires that the images should be selected carefully to guarantee good results. Finally, we want to remark that after all parameters were determined, a CAD tool (SOLIDWORKS in our case) was used to model the orange as a 3D model. Figure 6. Control points of the Bézier curves on each geometric plane. (a) 12 ee− . (b) 13 ee− . (c) 23 ee− . Figure 5. Image intersection to define Bézier’s profiles. (a) Ripe orange and (b) unripe orange. Agriculture 2020,10, 313 7 of 12 As explained in Section 2in a generalized procedure, five B é zier profiles are necessary to reproduce the whole orange in a 3D model, using the symmetry planes of the fruit. As a practical example, Figure 6 is considered; five profiles that describe one-fourth of each principal plane are shown. Each curve was established with four control points Pkj , where k= 1,2,3,4 correspond with the points, and j= 1, . . . ,5 relate each profile. The control points P1j and P4j were known, since these were located in the half of each principal orthogonal diameter. The other two points ( P2j and P3j ) were adjusted according to the shape. These correspond to each projection over the orthogonal principal axes, as illustrated in Figure 6a,b. It was noted that the coordinates represent each point (x , y) , for instance, in Figure 6a, P31 coordinates were (φ1 , λφ2) , ∀λ∈( 0.1 ) . For the point P21 , the coordinates were established by (φ2 , γφ1) , ∀γ∈( 0.1 ) . In total, six unknown coordinates should be determined. This process minimized a significant number of parameters if the symmetry planes would not have been identified. The main advantage of this methodology is that the orange can be constructed systematically since the operations could be programmed. Nonetheless, this methodology presented some limitations, i.e. the information determined by the photos requires that the images should be selected carefully to guarantee good results. Finally, we want to remark that after all parameters were determined, a CAD tool (SOLIDWORKS in our case) was used to model the orange as a 3D model. Agriculture 2020, 10, x FOR PEER REVIEW 7 of 12 Figure 5. Image intersection to define Bézier’s profiles. (a) Ripe orange and (b) unripe orange. As explained in Section 2 in a generalized procedure, five Bézier profiles are necessary to reproduce the whole orange in a 3D model, using the symmetry planes of the fruit. As a practical example, Figure 6 is considered; five profiles that describe one-fourth of each principal plane are shown. Each curve was established with four control points , kj P where 1, 2, 3, 4k= correspond with the points, and 1, .., 5j=relate each profile. The control points 1j P and 4j P were known, since these were located in the half of each principal orthogonal diameter. The other two points ( 2j P and 3j P ) were adjusted according to the shape. These correspond to each projection over the orthogonal principal axes, as illustrated in Figure 6a,b. It was noted that the coordinates represent each point (, )xy , for instance, in Figure 6a, 31 P coordinates were 12 ( , ), (0.1). φλφ λ ∀∈ For the point 21 P , the coordinates were established by 21 (, ), (0.1). φγφ γ ∀∈ In total, six unknown coordinates should be determined. This process minimized a significant number of parameters if the symmetry planes would not have been identified. The main advantage of this methodology is that the orange can be constructed systematically since the operations could be programmed. Nonetheless, this methodology presented some limitations, i.e. the information determined by the photos requires that the images should be selected carefully to guarantee good results. Finally, we want to remark that after all parameters were determined, a CAD tool (SOLIDWORKS in our case) was used to model the orange as a 3D model. Figure 6. Control points of the Bézier curves on each geometric plane. (a) 12 ee− . (b) 13 ee− . (c) 23 ee− . Figure 6. Control points of the B é zier curves on each geometric plane. ( a ) e1−e2 . ( b ) e1−e3 . ( c ) e2−e3 . 5. Results and Discussion In this section, we discussed the results obtained with the proposed procedures in Sections 2–4. Therefore, experiments with oranges were conducted, which were provided by the Asociaci ó n de Citricultores de Caldas [34], an entity that associates different farms dedicated to citric production. To apply the methodology explained in Sections 3and 4; two sets of data were collected with the following characteristics—four groups with 15 oranges in each ripening stage (sixty oranges in total) were randomly selected and classified in each group. In the first group, orthogonal dimensions were measured to compute the αand βvalues, with Equations (5) and (6), which are listed in Table 2. Table 2. αand βexperimental values (n-number of samples). Stage nαSD α β SD β Unripe 15 1.99 0.04 0.97 0.02 Semi-ripe 15 1.96 0.03 0.98 0.01 Ripe 15 1.96 0.04 0.97 0.01 Over-ripe 15 1.99 0.06 0.98 0.01 Mean 1.98 0.97 Agriculture 2020,10, 313 8 of 12 It was observed that the mean value α was 1.98, with standard deviations very low, around 0.0425. As mentioned above, Equation (5) was a constant representation of a size factor that fruits hold steady in the growing. Reference [ 8 ] calculated this value for coffee fruits obtaining α= 1.628, which demonstrated that this parameter is a geometric feature of the rounded fruits. It meant that the geometric relations of its orthogonal diameters showed a scaled version of the fruit conserving the shape of any ripening stage. Additionally, it was noted that β was 0.97. It meant that geometric relations of its orthogonal diameters present additional intrinsic characteristics of the fruits that can be represented in the factors α and β . The values demonstrate that the orange conserves its shape (scaled version) in any ripening stage. The results evidence that from a topological point of view, the coffee fruit preserves the form as an orange, which means that it will be possible to get the shape of a coffee fruit from an orange, if and only if some geometrical transformations would be done. A detailed illustration of the above idea was discussed in the work done by Ling et al. [35]. From the experimental tests, the results of the measured dimensions of the orange are presented in Figure 7a in a bar graph; these correspond with the dataset listed in Table 3(second group set of 15 oranges by each ripening). In Figure 7a, it is denoted that the orthogonal dimensions vary slightly among these, but its standard deviations conserve the amplitude, which shows homogeneity in the measured dimensional variable. Additionally, in Table 3, the predicted values using φ1 as input parameters and Equation (7) as a predictor, are shown. Reasonably, the determined values for φ2 and φ3were predicted with errors lower than 1% (for φ2) and 2% (for φ3). Agriculture 2020, 10, x FOR PEER REVIEW 9 of 12 Figure 7. (a) Experimental data of orthogonal diameters, the representation of Table 3. (b) CAD models generated for unripe, semi-ripe, ripe, and overripe fruits in SOLIDWORKS. The result probes that Equations (7) could be used to perform predictions of the dimensions between the ripening stages. For example, when 1 74 ,mm φ = the predictions were 2 71.78mm φ = and 3 71.06 ,mm φ = with this information, a 3D model was generated from the construction of the Bézier profiles. Complementary to Table 3, it is important to mention that each Bézier profile required 4 points to be established. Two of these values ( 1j p and 4j p at the plane j) correspond with the orthogonal dimensions ( `1 `2 3 2, 2, 2 φφφ ) and the other two ( 2 (2) jk p γφ = and 3 (2) ji p γφ = at the plane ik ee− ) represent the projections on `1 2 ,ee , and 3 e , these are shown in Table 4. According to the values reported, it was observed that one set of γ values represented all ripening stages. Table 4. Values of the projection γ for 2j p and 3j p for each ( ), 1,...,5 j ft j∀= . Ripening Stage Plane (()) j f t 1 e 2 e 3 e Unripe, Semi-ripe, and Ripe 121 (())eeft− 0.260 0.870 - 122 (())eeft− 0.170 0.870 - 133 (())eeft− 0.850 - 0.210 134 (())eeft− 0.860 - 0.180 235 (())eeft− - 0.870 0.240 More details are observed in Table 3; it can be seen that comparing the dimensions among ripening stages, these decrease from the unripe. This represents a variation from the unripe until ripe of 3.3% on 1 φ , and 3.2% on 2 φ . It meant that the orange reduced its size during the ripening process. All geometrical and physical aspects are not discussed in the paper since the main focus was to reproduce the geometry of the orange with accuracy in a CAD tool. Figure 7b shows the models designed and reconstructed in SOLIDWORKS (scaled models), using the profiles created with Bézier curves from the intersection of the orthogonal images as a base, as detailed in Sections 2 and 4. Four fruits are illustrated, since these correspond with each established ripening stage, respectively. The CAD models represent a Valencia orange (Citrus sinensis) in its geometry; an unripe orange is represented in the central part of the image. This is depicted with a high density of profiles that were created to improve the 3D shape. This was also done for the other models. This additional process guaranteed a better accuracy in the surface reconstruction of the first quarter of an orange, which defined the first step of the 3D modeling, as explained in Section 2. In order to identify some differences in the reconstructed geometries, different points were marked to evaluate the radius of curvatures, as depicted in Figure 8. The points provide information on the local shape of the profiles selected at the planes 13 ee− and 23 ee−. Theses were marked as Figure 7. ( a ) Experimental data of orthogonal diameters, the representation of Table 3. ( b ) CAD models generated for unripe, semi-ripe, ripe, and overripe fruits in SOLIDWORKS. Table 3. Orthogonal dimensions for different ripening stages. Ripening Stage Experimental (mm) Predicted (mm) Error φ1SD φ1φ2SD φ2φ3SD φ3 ¯ φ2SD ¯ φ2 ¯ φ3SD ¯ φ3(φ−¯ φ)/φ(%) φ2φ3 Unripe 75.87 3.80 73.44 4.05 71.93 5.04 73.86 0.57 72.81 1.23 0.57 1.22 Semi-ripe 73.72 5.33 72.04 4.84 73.05 4.89 71.77 0.38 72.07 1.33 0.37 1.34 Ripe 73.37 4.78 71.10 4.56 71.86 5.28 71.43 0.45 70.57 1.79 0.46 1.80 Over-ripe 72.42 5.25 70.88 4.77 70.20 6.04 70.49 0.55 71.04 1.19 0.55 1.19 The result probes that Equations (7) could be used to perform predictions of the dimensions between the ripening stages. For example, when φ1= 74 mm , the predictions were φ2= 71.78 mm and φ3= 71.06 mm , with this information, a 3D model was generated from the construction of the B é zier profiles. Complementary to Table 3, it is important to mention that each B é zier profile required 4 points to be established. Two of these values ( p1j and p4j at the plane j ) correspond with the orthogonal dimensions ( φ01/2 , φ02/2 , φ3/2 ) and the other two ( p2j=γ(φk/2) and p2j=γ(φi/2) at the plane Agriculture 2020,10, 313 9 of 12 ei−ek ) represent the projections on e01 , e2 , and e3 , these are shown in Table 4. According to the values reported, it was observed that one set of γvalues represented all ripening stages. Table 4. Values of the projection γfor p2jand p3jfor each fj(t),∀j=1, ...,5. Ripening Stage Plane (fj(t)) e1e2e3 Unripe, Semi-ripe, and Ripe e1−e2(f1(t)) 0.260 0.870 - e1−e2(f2(t)) 0.170 0.870 - e1−e3(f3(t)) 0.850 - 0.210 e1−e3(f4(t)) 0.860 - 0.180 e2−e3(f5(t)) - 0.870 0.240 More details are observed in Table 3; it can be seen that comparing the dimensions among ripening stages, these decrease from the unripe. This represents a variation from the unripe until ripe of 3.3% on φ1 , and 3.2% on φ2 . It meant that the orange reduced its size during the ripening process. All geometrical and physical aspects are not discussed in the paper since the main focus was to reproduce the geometry of the orange with accuracy in a CAD tool. Figure 7b shows the models designed and reconstructed in SOLIDWORKS (scaled models), using the profiles created with B é zier curves from the intersection of the orthogonal images as a base, as detailed in Sections 2and 4. Four fruits are illustrated, since these correspond with each established ripening stage, respectively. The CAD models represent a Valencia orange (Citrus sinensis) in its geometry; an unripe orange is represented in the central part of the image. This is depicted with a high density of profiles that were created to improve the 3D shape. This was also done for the other models. This additional process guaranteed a better accuracy in the surface reconstruction of the first quarter of an orange, which defined the first step of the 3D modeling, as explained in Section 2. In order to identify some differences in the reconstructed geometries, different points were marked to evaluate the radius of curvatures, as depicted in Figure 8. The points provide information on the local shape of the profiles selected at the planes e1−e3 and e2−e3 . Theses were marked as red points and denoted by letters from “a” until “g”. To follow an order, the marked points “a” and “d” coincided with the direction e3and e2, and the point “g” matched with direction e1as well. Agriculture 2020, 10, x FOR PEER REVIEW 10 of 12 red points and denoted by letters from “a” until “g”. To follow an order, the marked points “a” and “d” coincided with the direction 3 e and 2 e , and the point “g” matched with direction 1 e as well. Figure 8. Curvature mapping over the constructed geometry (unripe orange). Figure 9 shows the computed values in all demarked points; in Figure 9a, it can be seen that the unripe fruit presents the highest radius of curvature in the profile 23 ee−. The radius of curvature decreases in the middle part of the shape; it indicates that the curvatures are more elevated in those locations. The lowest values are registered for the semi-ripe stage. In general terms, small differences can be observed according to the shape, i.e., we see that in the main direction, the orange is less bulged (curvature = 1/radius of curvature) than in the middle part. Figure 9b indicates that the curvatures are distributed along with the profile in an increasing form. Some differences are highlighted in each ripening stage. The point “g” shows that during the ripening, the orange shrink, which corresponds to the orthogonal dimensions. Point “e” denotes that in the ripening process, the orange inflates the surface concerning the unripe stage. All of the mentioned characteristics demonstrate that the proposed methodology captured the details of the measured oranges. As a final discussion, the comparison between a ripe and unripe orange could be easily identified from the curvatures since unripe fruits had lower curvatures than ripe ones. Figure 9. The radius of curvature for points: (a) a, b, c, d; and (b) a, e, f, g. 6. Conclusions The results obtained showed that the developed methodology to design Valencia oranges using parametric equations represented by Bézier curves, was satisfactory. The image-based CAD approach seemed to be a simple way to reproduce rounded fruits, as computer graphics models. The models allowed an analysis of the shape through their radius of curvature, which detailed the geometrical differences between the ripening states in special unripe and ripe. As a main result, it was evidenced that the curvatures were lower in the unripe fruit than in the other ripening stages. Figure 8. Curvature mapping over the constructed geometry (unripe orange). Figure 9shows the computed values in all demarked points; in Figure 9a, it can be seen that the unripe fruit presents the highest radius of curvature in the profile e2−e3 . The radius of curvature decreases in the middle part of the shape; it indicates that the curvatures are more elevated in those locations. The lowest values are registered for the semi-ripe stage. In general terms, small differences can be observed according to the shape, i.e., we see that in the main direction, the orange is less bulged (curvature =1/radius of curvature) than in the middle part. Figure 9b indicates that the curvatures are distributed along with the profile in an increasing form. Some differences are highlighted in each ripening stage. The point “g” shows that during the ripening, the orange shrink, which corresponds