CN104392484B - A kind of Three-dimension Tree modeling method and device - Google Patents

A kind of Three-dimension Tree modeling method and device Download PDF

Info

Publication number
CN104392484B
CN104392484B CN201410640335.XA CN201410640335A CN104392484B CN 104392484 B CN104392484 B CN 104392484B CN 201410640335 A CN201410640335 A CN 201410640335A CN 104392484 B CN104392484 B CN 104392484B
Authority
CN
China
Prior art keywords
cross
section
model components
model
components
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410640335.XA
Other languages
Chinese (zh)
Other versions
CN104392484A (en
Inventor
谢科
燕飞龙
黄惠
安德雷·沙夫
奥利夫·马丁·多伊森
陈宝权
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Institute of Advanced Technology of CAS
Original Assignee
Shenzhen Institute of Advanced Technology of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Institute of Advanced Technology of CAS filed Critical Shenzhen Institute of Advanced Technology of CAS
Priority to CN201410640335.XA priority Critical patent/CN104392484B/en
Publication of CN104392484A publication Critical patent/CN104392484A/en
Application granted granted Critical
Publication of CN104392484B publication Critical patent/CN104392484B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本发明适用于计算机图形学领域,提供了一种三维树木建模方法及装置,包括:对已有的三维树木模型进行部分截取,获取到多个模型组件;对获取到的所述多个模型组件进行参数设置,以使所述多个模型组件之间相互匹配;对相互匹配好的所述多个模型组件进行插值处理,生成相邻所述模型组件之间的连接组件。本发明主要通过从已有的树木模型中截取若干模型组件进行调整、组合,并通过插值算法生成不同模型组件之间的连接部分,从而生成新的三维树木模型,该建模过程不涉及三维数据的采集,大大简化了建模过程中的数据处理环节,提高了三维树木建模的效率。

The present invention is applicable to the field of computer graphics, and provides a three-dimensional tree modeling method and device, including: partially intercepting an existing three-dimensional tree model to obtain multiple model components; The components are parameterized so that the multiple model components are matched with each other; the multiple model components that are matched with each other are interpolated to generate connection components between adjacent model components. The present invention mainly cuts out several model components from the existing tree model for adjustment and combination, and generates the connection parts between different model components through an interpolation algorithm, so as to generate a new three-dimensional tree model. The modeling process does not involve three-dimensional data The collection greatly simplifies the data processing link in the modeling process and improves the efficiency of 3D tree modeling.

Description

一种三维树木建模方法及装置A three-dimensional tree modeling method and device

技术领域technical field

本发明属于计算机图形学领域,尤其涉及一种三维树木建模方法及装置。The invention belongs to the field of computer graphics, in particular to a three-dimensional tree modeling method and device.

背景技术Background technique

在城市三维建模、计算机游戏场景设计、虚拟现实等技术领域,树木建模有着广阔的应用前景。现有的三维树木建模大多基于三维数据获取来实现,需要首先获取树木的三维数据信息,比如,使用三维激光扫描仪采集树木的三维点云,或者使用相机采集树木多个视角的图像,等等,然后再使用三维重建方法建立三维树木模型。然而,上述三维数据采集方法大多需要使用到专业的三维数据采集设备,且数据处理过程繁杂、费时,使得三维树木建模过程效率低下。Tree modeling has broad application prospects in technical fields such as urban three-dimensional modeling, computer game scene design, and virtual reality. Most of the existing 3D tree modeling is based on 3D data acquisition. It is necessary to first obtain 3D data information of trees, for example, use a 3D laser scanner to collect 3D point clouds of trees, or use cameras to collect images from multiple perspectives of trees, etc. etc., and then use the 3D reconstruction method to build a 3D tree model. However, most of the above three-dimensional data acquisition methods require the use of professional three-dimensional data acquisition equipment, and the data processing process is complicated and time-consuming, which makes the three-dimensional tree modeling process inefficient.

发明内容Contents of the invention

本发明实施例的目的在于提供一种三维树木建模方法,旨在解决目前三维树木建模效率低的问题。The purpose of the embodiments of the present invention is to provide a three-dimensional tree modeling method, aiming at solving the problem of low efficiency of three-dimensional tree modeling at present.

本发明实施例是这样实现的,一种三维树木建模方法,包括:The embodiment of the present invention is achieved like this, a kind of three-dimensional tree modeling method, comprises:

对已有的三维树木模型进行部分截取,获取到多个模型组件;Partially intercept the existing 3D tree model to obtain multiple model components;

对获取到的所述多个模型组件进行参数设置,以使所述多个模型组件之间相互匹配;performing parameter setting on the acquired multiple model components, so that the multiple model components are matched with each other;

对相互匹配好的所述多个模型组件进行插值处理,生成相邻所述模型组件之间的连接组件。Interpolation processing is performed on the multiple model components that are matched with each other to generate connection components between adjacent model components.

本发明实施例的另一目的在于提供一种三维树木建模装置,包括:Another object of the embodiments of the present invention is to provide a three-dimensional tree modeling device, including:

截取单元,用于对已有的三维树木模型进行部分截取,获取到多个模型组件;The intercepting unit is used for partially intercepting the existing three-dimensional tree model to obtain multiple model components;

设置单元,用于对获取到的所述多个模型组件进行参数设置,以使所述多个模型组件之间相互匹配;a setting unit, configured to set parameters for the acquired multiple model components, so that the multiple model components are matched with each other;

插值单元,用于对相互匹配好的所述多个模型组件进行插值处理,生成相邻所述模型组件之间的连接组件。An interpolation unit, configured to perform interpolation processing on the plurality of model components that are matched with each other, and generate connection components between adjacent model components.

本发明实施例主要通过从已有的树木模型中截取若干模型组件进行调整、组合,并通过插值算法生成不同模型组件之间的连接部分,从而生成新的三维树木模型,该建模过程不涉及三维数据的采集,大大简化了建模过程中的数据处理环节,提高了三维树木建模的效率。In the embodiment of the present invention, a new three-dimensional tree model is generated by intercepting several model components from the existing tree model, adjusting and combining them, and generating the connection parts between different model components through an interpolation algorithm. The modeling process does not involve The acquisition of 3D data greatly simplifies the data processing link in the modeling process and improves the efficiency of 3D tree modeling.

附图说明Description of drawings

图1是本发明实施例提供的三维树木建模方法的实现流程图;Fig. 1 is the implementation flowchart of the three-dimensional tree modeling method provided by the embodiment of the present invention;

图2是本发明实施例提供的手持式激光扫描仪的示例图;Fig. 2 is an example diagram of a handheld laser scanner provided by an embodiment of the present invention;

图3是本发明实施例提供的已有的三维树木模型的示例图;Fig. 3 is an example diagram of an existing three-dimensional tree model provided by an embodiment of the present invention;

图4是本发明实施例提供的三维树木模型与其对应的三维骨架示例图;Fig. 4 is an example diagram of a three-dimensional tree model and its corresponding three-dimensional skeleton provided by an embodiment of the present invention;

图5是本发明实施例提供的在已有的三维树木模型上进行部分截取的示例图;Fig. 5 is an example diagram of partial interception on an existing three-dimensional tree model provided by an embodiment of the present invention;

图6是本发明实施例提供的模型组件的示例图;Fig. 6 is an example diagram of a model component provided by an embodiment of the present invention;

图7是本发明实施例提供的三维树木建模方法S103的具体实现流程图;FIG. 7 is a specific implementation flowchart of the three-dimensional tree modeling method S103 provided by the embodiment of the present invention;

图8是本发明实施例提供的hermit曲线示例图;Fig. 8 is an example diagram of a hermit curve provided by an embodiment of the present invention;

图9是本发明实施例提供的两个横截面的外围顶点的对应关系示例图;Fig. 9 is an exemplary diagram of the corresponding relationship between peripheral vertices of two cross-sections provided by an embodiment of the present invention;

图10是本发明实施例提供的在两个横截面的对应点之间进行插值的插值结果二维示例图;Fig. 10 is a two-dimensional illustration of an interpolation result provided by an embodiment of the present invention between corresponding points of two cross-sections;

图11是本发明实施例提供的不同hermit曲线对应的插值结果的三维实例图;Fig. 11 is a three-dimensional example diagram of interpolation results corresponding to different hermit curves provided by an embodiment of the present invention;

图12是本发明实施例提供的对生成的树木模型匹配真实几何表面的示例图;Fig. 12 is an example diagram of matching a real geometric surface to a generated tree model provided by an embodiment of the present invention;

图13是本发明实施例提供的为树木模型添加枝干和叶片的效果示例图;Fig. 13 is an example diagram of the effect of adding branches and leaves to the tree model provided by the embodiment of the present invention;

图14是本发明实施例提供的三维树木建模实例图;Fig. 14 is an example diagram of three-dimensional tree modeling provided by an embodiment of the present invention;

图15是本发明实施例提供的三维树木建模装置的结构框图。Fig. 15 is a structural block diagram of a three-dimensional tree modeling device provided by an embodiment of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明实施例主要通过从已有的树木模型中截取若干模型组件进行调整、组合,并通过插值算法生成不同模型组件之间的连接部分,从而生成新的三维树木模型,该建模过程不涉及三维数据的采集,大大简化了建模过程中的数据处理环节,提高了三维树木建模的效率。In the embodiment of the present invention, a new three-dimensional tree model is generated by intercepting several model components from the existing tree model, adjusting and combining them, and generating the connection parts between different model components through an interpolation algorithm. The modeling process does not involve The acquisition of 3D data greatly simplifies the data processing link in the modeling process and improves the efficiency of 3D tree modeling.

图1示出了本发明实施例提供的三维树木建模方法的实现流程,详述如下:Fig. 1 shows the implementation process of the three-dimensional tree modeling method provided by the embodiment of the present invention, which is described in detail as follows:

在S101中,对已有的三维树木模型进行部分截取,获取到多个模型组件。In S101, a part of the existing three-dimensional tree model is intercepted to obtain multiple model components.

在S101之前,可以预先建立三维树木模型数据库,例如,采用如图2所示的手持式激光扫描仪来采集现实中不同种类、不同形态树木的三维点云,并对采集到的三维点云采用泊松重建的方法来得到这些树木的三维树木模型(图3示出了部分预先建立好的三维树木模型)。在得到这些树木的三维树木模型的同时,还可以使用树木模型骨架生成方法,生成这些树木的三维骨架,该三维骨架用于表述树木的枝干走向,如图4所示,左图为建立好的三维树木模型,而右图为该三维树木模型对应的三维骨架。Before S101, a 3D tree model database can be established in advance, for example, using a hand-held laser scanner as shown in Figure 2 to collect 3D point clouds of different types and shapes of trees in reality, and use The method of Poisson reconstruction is used to obtain the three-dimensional tree model of these trees (Fig. 3 shows part of the pre-established three-dimensional tree model). While obtaining the three-dimensional tree models of these trees, the tree model skeleton generation method can also be used to generate the three-dimensional skeletons of these trees. The three-dimensional skeleton is used to express the direction of the branches of the trees, as shown in Figure 4. 3D tree model, and the right picture is the 3D skeleton corresponding to the 3D tree model.

上述三维树木模型数据库的建立过程可以由专业的三维建模领域技术人员来完成,该数据库用作建模素材库被开放给用户。The establishment process of the above-mentioned 3D tree model database can be completed by professional technicians in the field of 3D modeling, and the database is opened to users as a modeling material library.

图5为在已有的三维树木模型上进行部分截取的示意图。Fig. 5 is a schematic diagram of partial interception on an existing three-dimensional tree model.

图6示出了通过对已有的三维树木模型进行部分截取所获取到的若干模型组件。Fig. 6 shows several model components obtained by partially intercepting an existing 3D tree model.

在S102中,对获取到的所述多个模型组件进行参数设置,以使所述多个模型组件之间相互匹配。In S102, parameter setting is performed on the multiple acquired model components, so that the multiple model components are matched with each other.

在本实施例中,多个模型组件之间相互匹配,是指这多个模型组件各自的尺寸、方向以及这多个模型组件之间的链接关系等参数均被配置在合适的取值上,以使这多个模型组件能够被合理地、有序地放置于一棵树木之中。In this embodiment, multiple model components are matched with each other, which means that parameters such as the size and direction of the multiple model components and the link relationship between the multiple model components are all configured on appropriate values, So that these multiple model components can be placed in a tree in a reasonable and orderly manner.

其中,多个模型组件之间的链接关系,用于表示这多个模型组件在将要创建的三维树木模型中放置位置的顺序关系,例如,从树顶到树根,依序放置模型组件1、模型组件2、模型组件3和模型组件4。通过该链接关系,可以确定与一个模型组件相邻的模型组件。作为一种实现方式,链接关系可以通过用户指定生成。Among them, the link relationship between multiple model components is used to represent the sequence relationship of the placement positions of these multiple model components in the 3D tree model to be created, for example, from the top of the tree to the root of the tree, place model components 1, Model Component 2, Model Component 3, and Model Component 4. Through this link relationship, the model components adjacent to one model component can be determined. As an implementation manner, the link relationship can be generated by specifying by the user.

优选地,可以建立用于人机交互的图形系统,通过可视化操作实现对这多个模型组件的参数设置。具体地,由计算机后台利用opengl投影算法,将模型组件和三维坐标投影到屏幕坐标,从而将三维坐标和屏幕的二维坐标对应起来,以结合键盘、鼠标或者手势操作(例如移动、旋转、缩放等操作)实现对模型组件的参数设置。在该交互图形系统之下,可以通过拖拽方式将模型组件依序放置,系统后台依照模型组件的放置位置,自动地在相邻的两个模型组件之间建立链接关系。Preferably, a graphic system for human-computer interaction can be established, and the parameter setting of these multiple model components can be realized through visual operation. Specifically, the computer background uses the opengl projection algorithm to project the model components and three-dimensional coordinates to the screen coordinates, thereby corresponding the three-dimensional coordinates and the two-dimensional coordinates of the screen, to combine keyboard, mouse or gesture operations (such as moving, rotating, zooming) and other operations) to realize the parameter setting of the model component. Under the interactive graphics system, model components can be placed sequentially by dragging and dropping, and the system background automatically establishes a link relationship between two adjacent model components according to the placement position of the model components.

在S103中,对相互匹配好的所述多个模型组件进行插值处理,生成相邻所述模型组件之间的连接组件。In S103, an interpolation process is performed on the multiple model components that are matched with each other to generate connection components between adjacent model components.

由于S101中获取到的模型组件是离散的,因此,需要对这部分离散的模型组件进行插值处理,连接和补全相邻模型组件之间的剩余部分。Since the model components obtained in S101 are discrete, interpolation processing needs to be performed on this part of the discrete model components, and the remaining parts between adjacent model components need to be connected and completed.

如图7所示,S103具体为:As shown in Figure 7, S103 is specifically:

在S701中,在相邻所述模型组件之间通过插值生成hermit曲线。In S701, a Hermit curve is generated by interpolation between adjacent model components.

具体地,可以对相邻模型组件所对应的树木骨架进行插值,生成对应的hermit曲线。生成的hermit曲线用于表示两个相邻模型组件之间的枝干走向,而在hermit曲线生成之后,可以通过调整hermit曲线的曲率来改变上述枝干走向,以使得最终生成的枝干的走向与建模需要相符。Specifically, tree skeletons corresponding to adjacent model components may be interpolated to generate corresponding Hermit curves. The generated hermit curve is used to represent the direction of the branches between two adjacent model components, and after the hermit curve is generated, the curvature of the hermit curve can be adjusted to change the direction of the above branches, so that the direction of the final generated branches Consistent with modeling needs.

图8是S701生成的hermit曲线的示例图,如图8所示,左右两幅图中的直线用于表示图中所示的模型组件的链接关系,而曲线即为hermit曲线,可以看出,左右两幅图中所生成的hermit曲线的曲率不同。Figure 8 is an example diagram of the hermit curve generated by S701. As shown in Figure 8, the straight lines in the left and right figures are used to represent the link relationship of the model components shown in the figure, and the curve is the hermit curve. It can be seen that, The curvatures of the Hermit curves generated in the left and right images are different.

在S702中,建立第一横截面与第二横截面的外围顶点的两两对应关系,所述第一横截面与所述第二横截面为相邻所述模型组件的相邻横截面。In S702, establish a two-to-two correspondence relationship between peripheral vertices of the first cross-section and the second cross-section, the first cross-section and the second cross-section are adjacent cross-sections of the adjacent model components.

在创建了hermit曲线之后,需要渲染生成两个相邻模型组件之间的枝干部分。首先,在S702中,建立相邻横截面外围顶点的对应关系,具体地,可以分别从两个相邻横截面上的某个点同时出发,按照顺时针或者逆时针的方向,依次确定两个横截面之间的对应点。After creating the hermit curves, it is necessary to render the branches between two adjacent model components. First, in S702, establish the corresponding relationship between the vertices on the periphery of adjacent cross-sections. Specifically, starting from a certain point on two adjacent cross-sections at the same time, determine two points in sequence clockwise or counterclockwise. Correspondence points between cross sections.

图9为S702中获取到的第一横截面与第二横截面之间的对应点的二维示意图,依照模型的骨架方向,第一横截面91位于第二横截面92的上方,图中的虚线表明了第一横截面91与第二横截面92的部分外围顶点之间的对应关系。FIG. 9 is a two-dimensional schematic diagram of corresponding points between the first cross section and the second cross section acquired in S702. According to the skeleton direction of the model, the first cross section 91 is located above the second cross section 92. The dotted lines indicate the correspondence between the partial peripheral vertices of the first cross section 91 and the second cross section 92 .

其中,较佳的对应关系为:所有两两对应的外围顶点之间的位移的平方和最小,这样可以保证后续处理过程中在对应点之间进行插值的横截面的形变最小,且可以保持枝干的扭曲形状。Among them, the better corresponding relationship is: the sum of the squares of the displacements between all pairwise corresponding peripheral vertices is the smallest, which can ensure that the deformation of the cross-section interpolated between corresponding points in the subsequent processing is the smallest, and can keep the branches. Dry twisted shape.

在S703中,在所述第一横截面与所述第二横截面的对应点之间进行插值。In S703, interpolation is performed between corresponding points of the first cross section and the second cross section.

图10为根据图9的对应关系在对应点之间进行插值的插值结果二维示例图,可以看出,在第一横截面与第二横截面之间插值生成了三个横截面的外围顶点。Fig. 10 is a two-dimensional illustration of the interpolation result of interpolation between corresponding points according to the corresponding relationship in Fig. 9. It can be seen that the interpolation between the first cross-section and the second cross-section generates peripheral vertices of three cross-sections .

在S704中,将插值结果沿着对应的hermit曲线移动和旋转,生成所述第一横截面和所述第二横截面之间的连接组件。In S704, the interpolation result is moved and rotated along the corresponding Hermit curve to generate a connection component between the first cross section and the second cross section.

在本步骤中,保持插值生成的外围顶点以及对应的hermit曲线的曲率不变,而将插值生成的外围顶点沿着其对应的hermit曲线段移动和旋转,从而生成了第一横截面与第二横截面之间的连接组件,即第一横截面与第二横截面之间的枝干部分。In this step, the curvature of the peripheral vertices generated by interpolation and the corresponding Hermit curves are kept unchanged, and the peripheral vertices generated by interpolation are moved and rotated along their corresponding Hermit curve segments, thereby generating the first cross-section and the second The connection component between the cross sections, that is, the branch part between the first cross section and the second cross section.

图11示出了根据图7所示实施例生成的两种不同hermit曲线所对应的插值结果。FIG. 11 shows interpolation results corresponding to two different hermit curves generated according to the embodiment shown in FIG. 7 .

在本发明实施例中,仅仅依靠S103的插值处理所生成的树木模型的连接组件过于光滑,缺少真实树木中应有的凹凸、褶皱等细节,因此,需要将已有的三维树木模型的真实几何表面进行变形处理,去匹配S103中生成的连接部分。具体地,将连接组件和已有的三维树木模型都表示成通用的圆柱体,记录两者之间的半径和相对位差,将已有的三维树木模型的大小缩放到连接组件的大小,并移动到连接组件的所在位置,保持已有的三维树木模型的位差,这样就能得到具有真实表面几何细节的三维树木模型。In the embodiment of the present invention, the connected components of the tree model generated only by the interpolation processing in S103 are too smooth, and lack details such as bumps and wrinkles in real trees. The surface is deformed to match the connected part generated in S103. Specifically, both the connected component and the existing 3D tree model are represented as a common cylinder, the radius and relative potential difference between the two are recorded, the size of the existing 3D tree model is scaled to the size of the connected component, and Move to the location of the connected components and maintain the existing 3D tree model's potential difference, so that a 3D tree model with real surface geometric details can be obtained.

如图12所示,从左至右分别为S103得到的连接组件、已有的三维树木模型的部分枝干、变形匹配后得到的连接组件。As shown in Fig. 12, from left to right are the connected components obtained in S103, some branches of the existing 3D tree model, and connected components obtained after deformation matching.

如图13所示,左图为通过上述步骤得到的三维树木模型,最后,可以采用自动线性系统的方式往该三维树木模型上渲染小枝干和树叶,已增加树木的真实感,最终得到如图13右图所示的仿真度高的三维树木模型。As shown in Figure 13, the left picture is the 3D tree model obtained through the above steps. Finally, the automatic linear system can be used to render the small branches and leaves on the 3D tree model, which has increased the realism of the tree. 13 The high-fidelity 3D tree model shown in the right figure.

图14从左至右依次是S101和S102之后匹配的模型组件、插值后生成的三维树木模型、以及添加了细枝和叶片之后的渲染效果。From left to right in Fig. 14 are the matched model components after S101 and S102, the 3D tree model generated after interpolation, and the rendering effect after adding twigs and leaves.

本发明实施例主要通过从已有的树木模型中截取若干模型组件进行调整、组合,并通过插值算法生成不同模型组件之间的连接部分,从而生成新的三维树木模型,该建模过程不涉及三维数据的采集,大大简化了建模过程中的数据处理环节,提高了三维树木建模的效率。In the embodiment of the present invention, a new three-dimensional tree model is generated by intercepting several model components from the existing tree model, adjusting and combining them, and generating the connection parts between different model components through an interpolation algorithm. The modeling process does not involve The acquisition of 3D data greatly simplifies the data processing link in the modeling process and improves the efficiency of 3D tree modeling.

图15示出了本发明实施例提供的三维树木建模装置的结构框图,为了便于说明,仅示出了与本实施例相关的部分。FIG. 15 shows a structural block diagram of a three-dimensional tree modeling device provided by an embodiment of the present invention. For convenience of description, only parts related to this embodiment are shown.

参照图15,该装置包括:Referring to Figure 15, the device includes:

截取单元1501,对已有的三维树木模型进行部分截取,获取到多个模型组件。The intercepting unit 1501 partially intercepts the existing 3D tree model to obtain multiple model components.

设置单元1502,对获取到的所述多个模型组件进行参数设置,以使所述多个模型组件之间相互匹配。The setting unit 1502 is configured to set parameters for the multiple acquired model components, so as to match the multiple model components with each other.

插值单元1503,对相互匹配好的所述多个模型组件进行插值处理,生成相邻所述模型组件之间的连接组件。The interpolation unit 1503 performs interpolation processing on the multiple model components that are matched with each other to generate connection components between adjacent model components.

可选地,所述设置单元1502具体用于:Optionally, the setting unit 1502 is specifically configured to:

设置所述模型组件的尺寸、方向以及所述多个模型组件之间的链接关系。The size and direction of the model components and the link relationship among the multiple model components are set.

可选地,所述插值单元包括:Optionally, the interpolation unit includes:

曲线生成子单元,在相邻所述模型组件之间通过插值生成hermit曲线。The curve generation sub-unit generates a Hermit curve between adjacent model components through interpolation.

对应关系建立子单元,建立第一横截面与第二横截面的外围顶点的两两对应关系,所述第一横截面与所述第二横截面为相邻所述模型组件的相邻横截面。Correspondence establishment sub-units, establishing pairwise correspondences between the first cross-section and the peripheral vertices of the second cross-section, the first cross-section and the second cross-section are adjacent cross-sections of the adjacent model components .

插值子单元,在所述第一横截面与所述第二横截面的对应点之间进行插值。The interpolation subunit performs interpolation between corresponding points of the first cross-section and the second cross-section.

连接组件生成子单元,用于将插值结果沿着对应的hermit曲线移动和旋转,生成所述第一横截面和所述第二横截面之间的连接组件。The connecting component generating subunit is used to move and rotate the interpolation result along the corresponding Hermit curve to generate the connecting component between the first cross-section and the second cross-section.

可选地,所述对应关系满足:所有两两对应的外围顶点之间的位移的平方和最小。Optionally, the corresponding relationship satisfies: the sum of squares of displacements between all pairwise corresponding peripheral vertices is minimum.

可选地,所述装置还包括:Optionally, the device also includes:

几何表面处理单元,将已有的三维树木模型的几何表面进行变形处理,并匹配至所述连接组件。The geometric surface processing unit deforms the geometric surface of the existing three-dimensional tree model and matches it to the connecting component.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.

Claims (8)

1.一种三维树木建模方法,其特征在于,包括:1. A three-dimensional tree modeling method, characterized in that, comprising: 对已有的三维树木模型进行部分截取,获取到多个模型组件;Partially intercept the existing 3D tree model to obtain multiple model components; 对获取到的所述多个模型组件进行参数设置,以使所述多个模型组件之间相互匹配;performing parameter setting on the acquired multiple model components, so that the multiple model components are matched with each other; 对相互匹配好的所述多个模型组件进行插值处理,生成相邻所述模型组件之间的连接组件,包括:Perform interpolation processing on the multiple model components that are matched with each other, and generate connection components between adjacent model components, including: 在相邻所述模型组件之间通过插值生成hermit曲线;generating hermit curves by interpolation between adjacent said model components; 建立第一横截面与第二横截面的外围顶点的两两对应关系,所述第一横截面与所述第二横截面为相邻所述模型组件的相邻横截面;Establishing a two-to-two correspondence relationship between the peripheral vertices of the first cross-section and the second cross-section, the first cross-section and the second cross-section are adjacent cross-sections adjacent to the model component; 在所述第一横截面与所述第二横截面的对应点之间进行插值;interpolating between corresponding points of the first cross-section and the second cross-section; 将插值结果沿着对应的hermit曲线移动和旋转,生成所述第一横截面和所述第二横截面之间的连接组件。The interpolation result is moved and rotated along the corresponding Hermit curve to generate a connection component between the first cross-section and the second cross-section. 2.如权利要求1所述的方法,其特征在于,所述对获取到的所述多个模型组件进行参数设置包括:2. The method according to claim 1, wherein said parameter setting of said plurality of model components obtained comprises: 设置所述模型组件的尺寸、方向以及所述多个模型组件之间的链接关系。The size and direction of the model components and the link relationship among the multiple model components are set. 3.如权利要求1所述的方法,其特征在于,所述对应关系满足:所有两两对应的外围顶点之间的位移的平方和最小。3 . The method according to claim 1 , wherein the corresponding relationship satisfies: the sum of squares of displacements between all pairwise corresponding peripheral vertices is minimum. 4 . 4.如权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:4. The method according to any one of claims 1-3, wherein the method further comprises: 将已有的三维树木模型的几何表面进行变形处理,并匹配至所述连接组件。The geometric surface of the existing three-dimensional tree model is deformed and matched to the connecting component. 5.一种三维树木建模装置,其特征在于,包括:5. A three-dimensional tree modeling device, characterized in that, comprising: 截取单元,用于对已有的三维树木模型进行部分截取,获取到多个模型组件;The intercepting unit is used for partially intercepting the existing three-dimensional tree model to obtain multiple model components; 设置单元,用于对获取到的所述多个模型组件进行参数设置,以使所述多个模型组件之间相互匹配;a setting unit, configured to set parameters for the acquired multiple model components, so that the multiple model components are matched with each other; 插值单元,用于对相互匹配好的所述多个模型组件进行插值处理,生成相邻所述模型组件之间的连接组件;An interpolation unit, configured to perform interpolation processing on the plurality of model components that are matched with each other, and generate connection components between adjacent model components; 所述插值单元包括:The interpolation unit includes: 曲线生成子单元,用于在相邻所述模型组件之间通过插值生成hermit曲线;A curve generation subunit is used to generate a hermit curve by interpolation between adjacent model components; 对应关系建立子单元,用于建立第一横截面与第二横截面的外围顶点的两两对应关系,所述第一横截面与所述第二横截面为相邻所述模型组件的相邻横截面;A corresponding relationship establishing subunit, configured to establish a two-to-two corresponding relationship between the peripheral vertices of the first cross-section and the second cross-section, the first cross-section and the second cross-section are adjacent to the model component cross section; 插值子单元,用于在所述第一横截面与所述第二横截面的对应点之间进行插值;an interpolation subunit for interpolating between corresponding points of the first cross-section and the second cross-section; 连接组件生成子单元,用于将插值结果沿着对应的hermit曲线移动和旋转,生成所述第一横截面和所述第二横截面之间的连接组件。The connecting component generating subunit is used to move and rotate the interpolation result along the corresponding Hermit curve to generate the connecting component between the first cross-section and the second cross-section. 6.如权利要求5所述的装置,其特征在于,所述设置单元具体用于:6. The device according to claim 5, wherein the setting unit is specifically used for: 设置所述模型组件的尺寸、方向以及所述多个模型组件之间的链接关系。The size and direction of the model components and the link relationship among the multiple model components are set. 7.如权利要求5所述的装置,其特征在于,所述对应关系满足:所有两两对应的外围顶点之间的位移的平方和最小。7 . The device according to claim 5 , wherein the corresponding relationship satisfies: a sum of squares of displacements between all pairwise corresponding peripheral vertices is minimum. 8 . 8.如权利要求5-7任一项所述的装置,其特征在于,所述装置还包括:8. The device according to any one of claims 5-7, wherein the device further comprises: 几何表面处理单元,用于将已有的三维树木模型的几何表面进行变形处理,并匹配至所述连接组件。The geometric surface processing unit is used to deform the geometric surface of the existing three-dimensional tree model and match it to the connecting component.
CN201410640335.XA 2014-11-13 2014-11-13 A kind of Three-dimension Tree modeling method and device Active CN104392484B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410640335.XA CN104392484B (en) 2014-11-13 2014-11-13 A kind of Three-dimension Tree modeling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410640335.XA CN104392484B (en) 2014-11-13 2014-11-13 A kind of Three-dimension Tree modeling method and device

Publications (2)

Publication Number Publication Date
CN104392484A CN104392484A (en) 2015-03-04
CN104392484B true CN104392484B (en) 2017-12-12

Family

ID=52610382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410640335.XA Active CN104392484B (en) 2014-11-13 2014-11-13 A kind of Three-dimension Tree modeling method and device

Country Status (1)

Country Link
CN (1) CN104392484B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105261062B (en) * 2015-09-28 2018-10-23 山东师范大学 A kind of personage's segmentation modeling method
CN107943072B (en) * 2017-11-13 2021-04-09 深圳大学 UAV flight path generation method, device, storage medium and device
CN108717723B (en) * 2018-04-19 2019-06-11 浙江大学 A tree deformation animation method based on sketch to achieve shape preservation
CN110880202B (en) * 2019-12-02 2023-03-21 中电科特种飞机系统工程有限公司 Three-dimensional terrain model creating method, device, equipment and storage medium
CN112328821A (en) * 2020-10-27 2021-02-05 同济大学 Three-dimensional tree model matching method based on tree space
CN112799517B (en) * 2021-02-23 2022-08-16 中国科学院深圳先进技术研究院 Plant modeling method based on gesture interaction and plant modeling device and equipment thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005293259A (en) * 2004-03-31 2005-10-20 Japan Science & Technology Agency 3D tree shape generation device, 3D tree shape generation program, and recording medium
WO2010126176A1 (en) * 2009-04-28 2010-11-04 Choi Joonsoo Method for partitioning region represented by contours into smaller polygonal zones and calculating digital elevation model data and geographic surface configuration data, and recording medium in which program for implementing method is recorded
CN103077554A (en) * 2013-01-04 2013-05-01 北京农业信息技术研究中心 Section-unit-based interactive crop design method and system
CN103530411A (en) * 2013-10-25 2014-01-22 北京农业信息技术研究中心 Plant three-dimensional model database establishing method
CN103745497A (en) * 2013-12-11 2014-04-23 中国科学院深圳先进技术研究院 Plant growth modeling method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005293259A (en) * 2004-03-31 2005-10-20 Japan Science & Technology Agency 3D tree shape generation device, 3D tree shape generation program, and recording medium
WO2010126176A1 (en) * 2009-04-28 2010-11-04 Choi Joonsoo Method for partitioning region represented by contours into smaller polygonal zones and calculating digital elevation model data and geographic surface configuration data, and recording medium in which program for implementing method is recorded
CN103077554A (en) * 2013-01-04 2013-05-01 北京农业信息技术研究中心 Section-unit-based interactive crop design method and system
CN103530411A (en) * 2013-10-25 2014-01-22 北京农业信息技术研究中心 Plant three-dimensional model database establishing method
CN103745497A (en) * 2013-12-11 2014-04-23 中国科学院深圳先进技术研究院 Plant growth modeling method and system

Also Published As

Publication number Publication date
CN104392484A (en) 2015-03-04

Similar Documents

Publication Publication Date Title
CN104392484B (en) A kind of Three-dimension Tree modeling method and device
Sayem et al. 3D CAD systems for the clothing industry
CN103021017B (en) Three-dimensional scene rebuilding method based on GPU acceleration
Xie et al. Tree modeling with real tree-parts examples
US9367944B2 (en) Tree model and forest model generating method and apparatus
CN104008557B (en) A kind of three-dimensional matching process of clothing and anthropometric dummy
Hu et al. Capturing braided hairstyles
WO2016114930A2 (en) Systems and methods for augmented reality art creation
CA2772530C (en) Hair meshes
CN108717723A (en) A kind of tree deformation animation method for realizing that shape is kept based on sketch
US10553009B2 (en) Automatically generating quadruped locomotion controllers
Ji et al. B‐Mesh: a modeling system for base meshes of 3D articulated shapes
CN109767485A (en) Image processing method and device
CN112614234B (en) Method for editing mixed reality three-dimensional scene and mixed reality equipment
CN105205861A (en) Tree three-dimensional visualization model realization method based on Sphere-Board
CN110751733A (en) Method and apparatus for converting 3D scanned objects into avatars
CN103839289B (en) An Interactive Modeling Method for Real Trees Based on Sparse Images
CN105354031A (en) Leap Motion based 3D commodity display method
CN102903138A (en) Shape-considered two-dimensional digital character skeleton operation method
CN114998514B (en) Method and device for generating virtual characters
Petkov et al. Interactive visibility retargeting in vr using conformal visualization
Kazmi et al. Efficient sketch‐based creation of detailed character models through data‐driven mesh deformations
Garcia et al. Interactive applications for sketch-based editable polycube map
KR102388773B1 (en) Method for three dimensions modeling service and Apparatus therefor
Ren et al. A Sketch-based 3D Modeling Method for 3D Crime Scene Presentation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20150304

Assignee: SHENZHEN YIHUO TECHNOLOGY CO.,LTD.

Assignor: SHENZHEN INSTITUTES OF ADVANCED TECHNOLOGY CHINESE ACADEMY OF SCIENCES

Contract record no.: X2023980043401

Denomination of invention: A 3D Tree Modeling Method and Device

Granted publication date: 20171212

License type: Common License

Record date: 20231013