WO2017152703A1 - 三维标签实现方法和装置 - Google Patents

三维标签实现方法和装置 Download PDF

Info

Publication number
WO2017152703A1
WO2017152703A1 PCT/CN2016/113204 CN2016113204W WO2017152703A1 WO 2017152703 A1 WO2017152703 A1 WO 2017152703A1 CN 2016113204 W CN2016113204 W CN 2016113204W WO 2017152703 A1 WO2017152703 A1 WO 2017152703A1
Authority
WO
WIPO (PCT)
Prior art keywords
dimensional
information
label
click
coordinates
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.)
Ceased
Application number
PCT/CN2016/113204
Other languages
English (en)
French (fr)
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.)
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shirui Electronics Co Ltd
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 Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shirui Electronics Co Ltd
Publication of WO2017152703A1 publication Critical patent/WO2017152703A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating three-dimensional [3D] models or images for computer graphics
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2219/00Indexing scheme for manipulating 3D models or images for computer graphics
    • G06T2219/004Annotating, labelling

Definitions

  • the present invention relates to the field of multi-dimensional model technologies, and in particular, to a method and an apparatus for implementing a three-dimensional label.
  • a three-dimensional model is a polygonal representation of an object, usually displayed by a computer or other video device.
  • the displayed object can be a real world entity or a fictional object.
  • 3D models have been used in a variety of different fields, such as accurate models for making organs in the medical industry, buildings or landscapes used in the construction industry, models for displaying compounds in the multimedia teaching industry, etc. .
  • the information list is not empty, obtain a three-dimensional model closest to the click coordinate according to the information list, and an intersection point corresponding to the latest three-dimensional model;
  • the three-dimensional label implementation method of the present invention when the user clicks on the three-dimensional model interface, performs a hit test according to the two-dimensional coordinates of the click. If there is a three-dimensional model in the point, the three-dimensional model closest to the click point and the three-dimensional coordinates of the intersection point are acquired according to the information list. To determine the position and angle of the label, generate a three-dimensional geometry, and add a text editing control to the geometry to generate a three-dimensional label.
  • the invention realizes adding a three-dimensional label in the three-dimensional model, and the added three-dimensional label can follow the rotation, zooming and the like of the three-dimensional model, and the operation experience is good; without professional editing software for editing, the user only needs to perform the usual position at the position where the label needs to be added. With the click operation, you can directly add the 3D label to the corresponding location, which is convenient and flexible, easy to operate, and suitable for non-professionals.
  • the hit test is performed according to the click coordinates
  • the step of obtaining the information list of the hit test includes: converting the click coordinates into a cone ray having the click coordinates as a vertex; and obtaining a hit according to the cone ray A list of information tested, wherein the list of information includes a three-dimensional model intersecting the cone ray and an intersection point.
  • the method further includes the step of: storing the information of the three-dimensional label into a corresponding file according to a storage rule corresponding to the format of the latest three-dimensional model.
  • the invention can save the information of the label (three-dimensional information and edited text information), and can directly display the three-dimensional label when the next time is opened, which is convenient for the user to use.
  • the method further includes the step of deleting the three-dimensional tag by deleting the information of the three-dimensional tag in the file. If the 3D label is no longer needed to be displayed, the user only needs to delete the corresponding information in the file, and the 3D label is no longer displayed, and the operation is simple and convenient.
  • the method further includes the step of: returning the click coordinates on the three-dimensional model interface if the information list is empty. If the user does not have any 3D models in the point, then do not add 3D tags and continue to monitor the click operation.
  • the click coordinates include coordinates of a mouse click, coordinates of a keyboard click, and coordinates of a touch point.
  • An information list obtaining module configured to perform a hit test according to the click coordinates, and obtain a list of information of the hit test
  • a list information obtaining module configured to acquire, according to the information list, a three-dimensional model closest to the click coordinate and an intersection point corresponding to the closest three-dimensional model, when the information list is not empty;
  • a label information determining module configured to obtain a direction, a distance, and an angle of the label to be generated according to the intersection point and the position of the intersection point in the closest three-dimensional model
  • a geometric image generating module configured to generate a three-dimensional geometric figure according to a direction, a distance, and an angle of the label to be generated
  • a three-dimensional label generation module is configured to add a text editing control to the three-dimensional geometric figure to generate a three-dimensional label.
  • the three-dimensional label implementing device of the present invention performs a hit test according to the two-dimensional coordinates of the click when the user clicks on the three-dimensional model interface, and if there is a three-dimensional model in the point, obtains the three-dimensional model closest to the clicked point and the three-dimensional coordinates of the intersecting point according to the information list.
  • To determine the position and angle of the label generate a three-dimensional geometry, and add a text editing control to the geometry to generate a three-dimensional label.
  • the invention realizes adding a three-dimensional label in the three-dimensional model, and the added three-dimensional label can follow the rotation, zooming and the like of the three-dimensional model, and the operation experience is good; without professional editing software for editing, the user only needs to perform the usual position at the position where the label needs to be added. With the click operation, you can directly add the 3D label to the corresponding location, which is convenient and flexible, easy to operate, and suitable for non-professionals.
  • the information list obtaining module includes: a coordinate conversion unit configured to convert the click coordinates into a cone ray having the click coordinates as a vertex; a list obtaining unit configured to acquire according to the cone ray A list of information for a hit test, wherein the list of information includes a three-dimensional model intersecting the cone ray and an intersection point.
  • the three-dimensional tag implementation apparatus of the present invention further includes a tag information saving module connected to the three-dimensional tag generating module, and the tag information saving module is configured to store the rule according to a format corresponding to a format of the latest three-dimensional model.
  • the information of the three-dimensional label is stored in the corresponding file.
  • the invention can save the information of the label (three-dimensional information and edited text information), and can directly display the three-dimensional label when the next time is opened, which is convenient for the user to use.
  • the three-dimensional label implementation apparatus of the present invention further includes a label deletion module connected to the label information storage module, the label deletion module deleting the three-dimensional label by deleting information of the three-dimensional label in the file. delete. If the 3D label is no longer needed to be displayed, the user only needs to delete the corresponding information in the file, and the 3D label is no longer displayed, and the operation is simple and convenient.
  • the click coordinate acquisition module reacquires the click coordinates on the three-dimensional model interface. If the user does not have any 3D models in the point, then do not add 3D tags and continue to monitor the click operation.
  • the click coordinates include coordinates of a mouse click, coordinates of a keyboard click, and coordinates of a touch point.
  • FIG. 1 is a schematic flow chart of an embodiment of a method for implementing a three-dimensional label according to the present invention
  • Embodiment 1 of a three-dimensional label implementation device according to the present invention
  • FIG. 3 is a schematic structural diagram of an embodiment of an information list obtaining module according to the present invention.
  • Embodiment 4 is a schematic structural diagram of Embodiment 2 of a three-dimensional label implementation device according to the present invention.
  • FIG. 5 is a schematic structural diagram of Embodiment 3 of a three-dimensional tag implementation apparatus according to the present invention.
  • a method for implementing a three-dimensional label includes the following steps:
  • the invention realizes adding a three-dimensional label in the three-dimensional model, and the added three-dimensional label can follow the rotation, zooming and the like of the three-dimensional model, and the operation experience is good; without professional editing software for editing, the user only needs to perform the usual position at the position where the label needs to be added. With the click operation, you can directly add the 3D label to the corresponding location, which is convenient and flexible, easy to operate, and suitable for non-professionals.
  • a common three-dimensional model file is imported, for example, a three-dimensional model file such as *.obj, *.dae, *.fbx, *.3ds, and the three-dimensional model is correctly rendered onto the interface, that is, a three-dimensional model interface is obtained.
  • the 3D model interface supports operations such as rotation and scaling of the 3D model.
  • the click coordinates may include coordinates of a mouse click, coordinates of a keyboard click, coordinates of a touch point, and the like. That is, the user can click through the mouse or the keyboard, or directly touch with a finger or the like.
  • step S120 when the user performs a click operation, the hit test is performed with the coordinates of the click point.
  • the step of performing a hit test according to the click coordinates to obtain a list of information of the hit test may include:
  • a list of information of the hit test is obtained from the cone ray, wherein the list of information includes a three-dimensional model intersecting the cone ray and an intersection point.
  • the list of information may also include information such as visual objects and grids that intersect the cone ray.
  • the method further includes the step of: returning the click coordinates on the three-dimensional model interface if the information list is empty. If the information list is empty, that is, any 3D model is not clicked. If no comment is added, the operation is ended and the click coordinates are reacquired.
  • the obtained information list is not empty, there is a three-dimensional model in the point to perform subsequent operations.
  • the cone ray when making a hit test, may intersect with a plurality of three-dimensional models, that is, information of a plurality of three-dimensional models and corresponding intersection points may exist in the information list. According to the information of the information list, the three-dimensional model closest to the click coordinate and the intersection point (hit point) of the cone ray with the nearest three-dimensional model are calculated, wherein the intersection point is a three-dimensional coordinate.
  • step S140 the intersection point obtained in step S130 is the root of the label to be generated, and the direction, distance and angle of the label to be generated are determined according to the position of the intersection point in the three-dimensional model.
  • the X coordinate of the intersection point is smaller than the X point of the intermediate coordinate of the three-dimensional model, that is, the intersection point is in the left half of the three-dimensional model, and the label to be generated extends to the left.
  • a three-dimensional geometric figure can be dynamically generated according to the information in the corresponding position in the three-dimensional model, wherein the manner of generating the three-dimensional geometric image can be according to the prior art.
  • step S160 after the three-dimensional geometric figure is obtained, a text editing control is added to the three-dimensional geometric figure to generate a three-dimensional label, and the user can double-click to edit the label content.
  • a text editing control is added to the three-dimensional geometric figure to generate a three-dimensional label, and the user can double-click to edit the label content.
  • the method may further include: step, according to the storage rule corresponding to the format of the latest three-dimensional model, the information of the three-dimensional label, including the content of the user-edited note, and the position of the three-dimensional label itself. Three-dimensional information is stored in the corresponding file. After storage, the 3D label will be automatically displayed the next time the file is opened.
  • the method may further include the step of deleting the three-dimensional tag by deleting the information of the three-dimensional tag in the file.
  • the user can also directly select the 3D label to be deleted in the interface, and delete the 3D label directly by using the shortcut key.
  • the teacher When the teacher explains the structure of the compound through the 3D model, in order to make it easier for the student to understand the elements of a certain position, it is necessary to add a three-dimensional label to the three-dimensional model.
  • the teacher only needs to click on the corresponding position, then the 3D label can be directly added to the 3D model, and then the teacher can double-click to edit the content of the 3D label, and directly complete the process of adding the 3D label at the explanation site.
  • the added 3D tags can follow the operations of rotation and scaling of the 3D model. It can be seen from the specific application that the invention can facilitate the teacher to add the three-dimensional label, and also enables the student to quickly and accurately capture the information.
  • the present invention further provides a three-dimensional label implementing device, and a specific embodiment of the device of the present invention will be described in detail below with reference to the accompanying drawings.
  • a three-dimensional label implementation device includes:
  • the information list obtaining module 120 is configured to perform a hit test according to the click coordinates to obtain a list of information of the hit test;
  • the list information obtaining module 130 is configured to: when the information list is not empty, acquire a three-dimensional model that is closest to the click coordinate according to the information list, and an intersection point corresponding to the latest three-dimensional model;
  • a label information determining module 140 configured to obtain a direction, a distance, and an angle of the label to be generated according to the intersection point and the position of the intersection point in the closest three-dimensional model;
  • a geometric image generating module 150 configured to generate a three-dimensional geometric figure according to a direction, a distance, and an angle of the label to be generated;
  • the three-dimensional label generating module 160 is configured to add a text editing control to the three-dimensional geometric figure to generate a three-dimensional label.
  • the invention realizes adding a three-dimensional label in the three-dimensional model, and the added three-dimensional label can follow the rotation, zooming and the like of the three-dimensional model, and the operation experience is good; without professional editing software for editing, the user only needs to perform the usual position at the position where the label needs to be added. With the click operation, you can directly add the 3D label to the corresponding location, which is convenient and flexible, easy to operate, and suitable for non-professionals.
  • the click coordinates may include coordinates of a mouse click, coordinates of a keyboard click, coordinates of a touch point, and the like. That is, the user can click through the mouse or the keyboard, or directly touch with a finger or the like.
  • the information list obtaining module 120 When the user performs a click operation, the information list obtaining module 120 performs a hit test with the coordinates of the click point to obtain a list of information.
  • the information list obtaining module 120 may include:
  • a coordinate conversion unit 1201 configured to convert the click coordinate into a cone ray with the click coordinate as a vertex
  • the list obtaining unit 1202 is configured to obtain a list of information of the hit test according to the cone ray, wherein the list of information includes a three-dimensional model intersecting the cone ray and an intersection point and the like.
  • the click coordinate acquisition module 110 reacquires the click coordinates on the three-dimensional model interface. If the information list is empty, that is, any 3D model is not clicked. If no comment is added, the operation is ended and the click coordinates are reacquired.
  • the list information acquisition module 130 calculates a three-dimensional model closest to the click coordinate and the intersection point (hit point) of the cone ray with the nearest three-dimensional model based on the information of the information list.
  • the tag information determining module 140 determines, as the root of the tag to be generated, the intersection point, and determines the direction, distance, and angle of the tag to be generated according to the position of the intersection point in the three-dimensional model.
  • the geometric image generation module 150 dynamically generates a three-dimensional geometric figure based on the information at corresponding positions in the three-dimensional model.
  • the three-dimensional label generation module 160 adds a text editing control to the three-dimensional geometric figure to generate a three-dimensional label. The user can double-click to edit the label content.
  • the apparatus of the present invention may further include a tag information saving module 170 connected to the three-dimensional tag generating module 160.
  • the tag information saving module 170 is configured to store the information of the three-dimensional tag into a corresponding file according to a storage rule corresponding to a format of a recent three-dimensional model.
  • the apparatus of the present invention may further include a label deletion module 180 connected to the label information saving module 170, and the label deletion module 180 deletes the three-dimensional label in the file. Information to delete the three-dimensional label. The user can also directly select the 3D label to be deleted in the interface, and delete the 3D label directly by using the shortcut key.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

一种三维标签实现方法和装置。所述方法包括步骤:获取在三维模型界面上的点击坐标(S110);根据所述点击坐标进行命中测试,得到命中测试的信息列表(S120);若信息列表不为空,根据所述信息列表获取离所述点击坐标最近的三维模型,以及与最近的三维模型对应的相交点(S130);根据所述相交点,以及所述相交点在最近的三维模型中的位置,获得待生成标签的方向、距离和角度(S140);根据待生成标签的方向、距离和角度生成三维几何图形(S150);在所述三维几何图形中添加文本编辑控件,生成三维标签(S160)。该方法无需专业的编辑软件进行编辑,即可以在三维模型中添加三维标签,操作简单,适用于非专业人员。

Description

三维标签实现方法和装置 技术领域
本发明涉及多维模型技术领域,特别是涉及一种三维标签实现方法和装置。
背景技术
三维模型是物体的多边形表示,通常用计算机或者其它视频设备进行显示。显示的物体可以是现实世界的实体,也可以是虚构的物体。目前,三维模型已经用于各种不同的领域,例如,在医疗行业中用于制作器官的精确模型,在建筑业用来展示建筑物或者风景,在多媒体教学行业用于展示化合物的模型等等。
在使用三维模型时,用户常常需要在三维模型上进行标注,以指示三维模型上某个位置是什么等等。现有技术方案中常常使用二维标签对三维模型进行标注,但是添加的二维标签无法跟随三维模型的旋转、缩放等操作,且无法保存备注的信息,操作体验较差。而如果采用专业的编辑软件添加三维标签,则操作复杂,使用条件太高,影响大多数用户的使用。
发明内容
基于此,有必要针对上述问题,提供一种操作简单的三维标签实现方法和装置。
为了达到上述目的,本发明采取的技术方案如下:
一种三维标签实现方法,包括步骤:
获取在三维模型界面上的点击坐标;
根据所述点击坐标进行命中测试,得到命中测试的信息列表;
若所述信息列表不为空,根据所述信息列表获取离所述点击坐标最近的三维模型,以及与最近的三维模型对应的相交点;
根据所述相交点,以及所述相交点在最近的三维模型中的位置,获得待生成标签的方向、距离和角度;
根据待生成标签的方向、距离和角度生成三维几何图形;
在所述三维几何图形中添加文本编辑控件,生成三维标签。
本发明三维标签实现方法,当用户点击三维模型界面时,根据点击的二维坐标进行命中测试,若存在点中的三维模型,根据信息列表获取离点击点最近的三维模型以及相交点的三维坐标,进而确定标签的位置和角度,生成三维的几何图形,在该几何图形中添加文本编辑控件,即生成三维标签。本发明实现在三维模型中添加三维标签,添加的三维标签可以跟随三维模型的旋转、缩放等操作,操作体验较好;无需专业的编辑软件进行编辑,用户只需要在需要添加标签的位置进行通常的点击操作,就可以直接将三维标签添加到相应位置,方便灵活,操作简单,适用于非专业人员。
在一个实施例中,根据所述点击坐标进行命中测试,得到命中测试的信息列表的步骤包括:将所述点击坐标转换为以所述点击坐标为顶点的圆锥射线;根据所述圆锥射线获取命中测试的信息列表,其中所述信息列表包括与所述圆锥射线相交的三维模型以及相交点。
在一个实施例中,生成三维标签之后,还包括步骤:根据最近的三维模型的格式对应的存储规则,将所述三维标签的信息存储到相应的文件中。本发明可以将标签的信息(三维信息和编辑的文本信息)保存,在下次打开时就可以直接显示该三维标签,方便用户使用。
在一个实施例中,将所述三维标签的信息存储到相应的文件中之后,还包括步骤:通过删除所述文件中所述三维标签的信息,将所述三维标签删除。若不再需要显示三维标签,用户只需要在文件中删除相应的信息,三维标签就不再显示,操作简单方便。
在一个实施例中,得到命中测试的信息列表之后,还包括步骤:若所述信息列表为空,返回获取在三维模型界面上的点击坐标的步骤。若用户没有点中任何三维模型,则不添加三维标签,继续监测点击操作。
在一个实施例中,所述点击坐标包括鼠标点击的坐标、键盘点击的坐标和触摸点的坐标。
一种三维标签实现装置,包括:
点击坐标获取模块,用于获取在三维模型界面上的点击坐标;
信息列表获取模块,用于根据所述点击坐标进行命中测试,得到命中测试的信息列表;
列表信息获取模块,用于在所述信息列表不为空时,根据所述信息列表获取离所述点击坐标最近的三维模型,以及与最近的三维模型对应的相交点;
标签信息确定模块,用于根据所述相交点,以及所述相交点在最近的三维模型中的位置,获得待生成标签的方向、距离和角度;
几何图像生成模块,用于根据待生成标签的方向、距离和角度生成三维几何图形;
三维标签生成模块,用于在所述三维几何图形中添加文本编辑控件,生成三维标签。
本发明三维标签实现装置,当用户点击三维模型界面时,根据点击的二维坐标进行命中测试,若存在点中的三维模型,根据信息列表获取离点击点最近的三维模型以及相交点的三维坐标,进而确定标签的位置和角度,生成三维的几何图形,在该几何图形中添加文本编辑控件,即生成三维标签。本发明实现在三维模型中添加三维标签,添加的三维标签可以跟随三维模型的旋转、缩放等操作,操作体验较好;无需专业的编辑软件进行编辑,用户只需要在需要添加标签的位置进行通常的点击操作,就可以直接将三维标签添加到相应位置,方便灵活,操作简单,适用于非专业人员。
在一个实施例中,所述信息列表获取模块包括:坐标转换单元,用于将所述点击坐标转换为以所述点击坐标为顶点的圆锥射线;列表获取单元,用于根据所述圆锥射线获取命中测试的信息列表,其中所述信息列表包括与所述圆锥射线相交的三维模型以及相交点。
在一个实施例中,本发明三维标签实现装置还包括与所述三维标签生成模块相连的标签信息保存模块,所述标签信息保存模块用于根据最近的三维模型的格式对应的存储规则,将所述三维标签的信息存储到相应的文件中。本发明可以将标签的信息(三维信息和编辑的文本信息)保存,在下次打开时就可以直接显示该三维标签,方便用户使用。
在一个实施例中,本发明三维标签实现装置还包括与所述标签信息保存模块相连的标签删除模块,所述标签删除模块通过删除所述文件中所述三维标签的信息,将所述三维标签删除。若不再需要显示三维标签,用户只需要在文件中删除相应的信息,三维标签就不再显示,操作简单方便。
在一个实施例中,在所述信息列表为空时,所述点击坐标获取模块重新获取在三维模型界面上的点击坐标。若用户没有点中任何三维模型,则不添加三维标签,继续监测点击操作。
在一个实施例中,所述点击坐标包括鼠标点击的坐标、键盘点击的坐标和触摸点的坐标。
附图说明
图1为本发明三维标签实现方法实施例的流程示意图;
图2为本发明三维标签实现装置实施例一的结构示意图;
图3为本发明信息列表获取模块实施例的结构示意图;
图4为本发明三维标签实现装置实施例二的结构示意图;
图5为本发明三维标签实现装置实施例三的结构示意图。
具体实施方式
为更进一步阐述本发明所采取的技术手段及取得的效果,下面结合附图及较佳实施例,对本发明的技术方案,进行清楚和完整的描述。
如图1所示,一种三维标签实现方法,包括步骤:
S110、获取在三维模型界面上的点击坐标;
S120、根据所述点击坐标进行命中测试,得到命中测试的信息列表;
S130、若所述信息列表不为空,根据所述信息列表获取离所述点击坐标最近的三维模型,以及与最近的三维模型对应的相交点;
S140、根据所述相交点,以及所述相交点在最近的三维模型中的位置,获得待生成标签的方向、距离和角度;
S150、根据待生成标签的方向、距离和角度生成三维几何图形;
S160、在所述三维几何图形中添加文本编辑控件,生成三维标签。
本发明实现在三维模型中添加三维标签,添加的三维标签可以跟随三维模型的旋转、缩放等操作,操作体验较好;无需专业的编辑软件进行编辑,用户只需要在需要添加标签的位置进行通常的点击操作,就可以直接将三维标签添加到相应位置,方便灵活,操作简单,适用于非专业人员。
在步骤S110中,导入常用的三维模型文件,例如,*.obj,*.dae,*.fbx,*.3ds等三维模型文件,并且将三维模型正确渲染到界面上,即得到三维模型界面,三维模型界面支持三维模型的旋转、缩放等操作。
在需要添加三维标签时,用户在需要添加三维标签的位置进行通常的点击操作,根据点击操作获取的点击坐标为二维坐标。获取点击坐标的方式有很多种,例如,在一个实施例中,所述点击坐标可以包括鼠标点击的坐标、键盘点击的坐标和触摸点的坐标等。即用户可以通过鼠标或键盘进行点击操作,也可以直接用手指等直接进行触摸。
在步骤S120中,在用户进行点击操作时,以点击点的坐标做命中测试。在一个实施例中,根据所述点击坐标进行命中测试,得到命中测试的信息列表的步骤可以包括:
将所述点击坐标转换为以所述点击坐标为顶点的圆锥射线;
根据所述圆锥射线获取命中测试的信息列表,其中所述信息列表包括与所述圆锥射线相交的三维模型以及相交点。所述信息列表还可以包括与所述圆锥射线相交的可视对象和网格等信息。
在一个实施例中,得到命中测试的信息列表之后,还包括步骤:若所述信息列表为空,返回获取在三维模型界面上的点击坐标的步骤。信息列表为空即未点中任何三维模型,不添加备注,结束此次操作,重新获取点击坐标。
如果获取的信息列表不为空,则存在点中的三维模型,执行后续操作。
在步骤S130中,在做命中测试时,圆锥射线可能与多个三维模型相交,即信息列表中可能存在多个三维模型和对应相交点的信息。根据信息列表的信息,计算距离点击坐标最近的三维模型,以及圆锥射线与最近的三维模型的相交点(命中点),其中相交点为三维坐标。
在步骤S140中,以步骤S130中得到的相交点为待生成标签的根,根据相交点在该三维模型的位置来确定待生成标签的方向、距离和角度。例如,相交点的X坐标小于三维模型的中间坐标的X点,即相交点在该三维模型的左半部分,则待生成标签向左延伸。
在步骤S150中,得到待生成标签的方向、距离和角度后,即可以根据这些信息在该三维模型中的相应位置动态生成一个三维几何图形,其中生成三维几何图像的方式可以根据现有技术中已有的方式实现。
在步骤S160中,得到三维几何图形后,在所述三维几何图形中添加文本编辑控件,就可以生成三维标签,用户双击即可以编辑标签内容。在三维几何图像中添加文本编辑控件的方式可以根据现有技术中已有的方式实现。
为了方便下一次使用,用户需要将标签信息进行存储。所以,在一个实施例中,生成三维标签之后,还可以包括步骤:根据最近的三维模型的格式对应的存储规则,将所述三维标签的信息,包括用户编辑的备注内容以及三维标签自身位置等三维信息,存储到相应的文件中。存储后,在下一次打开该文件时,三维标签就自动显示。
当不需要显示三维标签时,就需要对添加的三维标签进行删除。在一个实施例中,将所述三维标签的信息存储到相应的文件中之后,还可以包括步骤:通过删除所述文件中所述三维标签的信息,将所述三维标签删除。用户还可以在界面中直接选中待删除的三维标签,通过快捷键将三维标签直接删除。
为了更好的理解本发明,下面结合一个具体应用场景进行介绍。
老师通过三维模型讲解化合物的结构时,为了更方便学生了解某个位置的元素,需要对三维模型添加三维标签。利用本发明方法,老师只需要在相应位置进行点击操作,那么就可以直接将三维标签添加到三维模型中,然后老师双击就可以编辑三维标签的内容,直接在讲解现场完成三维标签的添加过程,并且添加的三维标签可以跟随三维模型的旋转和缩放等操作。通过该具体应用常见可以看出,本发明即可以方便老师进行三维标签的添加,也可以让学生能够能加快速准确的捕获到信息。
基于同一发明构思,本发明还提供一种三维标签实现装置,下面结合附图对本发明装置的具体实施方式做详细描述。
如图2所示,一种三维标签实现装置,包括:
点击坐标获取模块110,用于获取在三维模型界面上的点击坐标;
信息列表获取模块120,用于根据所述点击坐标进行命中测试,得到命中测试的信息列表;
列表信息获取模块130,用于在所述信息列表不为空时,根据所述信息列表获取离所述点击坐标最近的三维模型,以及与最近的三维模型对应的相交点;
标签信息确定模块140,用于根据所述相交点,以及所述相交点在最近的三维模型中的位置,获得待生成标签的方向、距离和角度;
几何图像生成模块150,用于根据待生成标签的方向、距离和角度生成三维几何图形;
三维标签生成模块160,用于在所述三维几何图形中添加文本编辑控件,生成三维标签。
本发明实现在三维模型中添加三维标签,添加的三维标签可以跟随三维模型的旋转、缩放等操作,操作体验较好;无需专业的编辑软件进行编辑,用户只需要在需要添加标签的位置进行通常的点击操作,就可以直接将三维标签添加到相应位置,方便灵活,操作简单,适用于非专业人员。
获取点击坐标的方式有很多种,例如,在一个实施例中,所述点击坐标可以包括鼠标点击的坐标、键盘点击的坐标和触摸点的坐标等。即用户可以通过鼠标或键盘进行点击操作,也可以直接用手指等直接进行触摸。
在用户进行点击操作时,信息列表获取模块120以点击点的坐标做命中测试,获取信息列表。在一个实施例中,如图3所示,所述信息列表获取模块120可以包括:
坐标转换单元1201,用于将所述点击坐标转换为以所述点击坐标为顶点的圆锥射线;
列表获取单元1202,用于根据所述圆锥射线获取命中测试的信息列表,其中所述信息列表包括与所述圆锥射线相交的三维模型以及相交点等。
在一个实施例中,在所述信息列表为空时,所述点击坐标获取模块110重新获取在三维模型界面上的点击坐标。信息列表为空即未点中任何三维模型,不添加备注,结束此次操作,重新获取点击坐标。
如果获取的信息列表不为空,列表信息获取模块130根据信息列表的信息,计算距离点击坐标最近的三维模型,以及圆锥射线与最近的三维模型的相交点(命中点)。标签信息确定模块140以相交点为待生成标签的根,根据相交点在该三维模型的位置来确定待生成标签的方向、距离和角度。几何图像生成模块150根据这些信息在该三维模型中的相应位置动态生成一个三维几何图形。三维标签生成模块160在所述三维几何图形中添加文本编辑控件,就可以生成三维标签。用户双击即可以编辑标签内容。
为了方便下一次使用,用户需要将标签信息进行存储。所以,在一个实施例中,如图4所示,本发明装置还可以包括与所述三维标签生成模块160相连的标签信息保存模块170。所述标签信息保存模块170用于根据最近的三维模型的格式对应的存储规则,将所述三维标签的信息存储到相应的文件中。
当不需要显示三维标签时,就需要对添加的三维标签进行删除。在一个实施例中,如图5所示,本发明装置还可以包括与所述标签信息保存模块170相连的标签删除模块180,所述标签删除模块180通过删除所述文件中所述三维标签的信息,将所述三维标签删除。用户还可以在界面中直接选中待删除的三维标签,通过快捷键将三维标签直接删除。
本发明装置其它技术特征与本发明方法相同,在此不予赘述。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。

Claims (10)

  1. 一种三维标签实现方法,其特征在于,包括步骤:
    获取在三维模型界面上的点击坐标;
    根据所述点击坐标进行命中测试,得到命中测试的信息列表;
    若所述信息列表不为空,根据所述信息列表获取离所述点击坐标最近的三维模型,以及与最近的三维模型对应的相交点;
    根据所述相交点,以及所述相交点在最近的三维模型中的位置,获得待生成标签的方向、距离和角度;
    根据待生成标签的方向、距离和角度生成三维几何图形;
    在所述三维几何图形中添加文本编辑控件,生成三维标签。
  2. 根据权利要求1所述的三维标签实现方法,其特征在于,根据所述点击坐标进行命中测试,得到命中测试的信息列表的步骤包括:
    将所述点击坐标转换为以所述点击坐标为顶点的圆锥射线;
    根据所述圆锥射线获取命中测试的信息列表,其中所述信息列表包括与所述圆锥射线相交的三维模型以及相交点。
  3. 根据权利要求1所述的三维标签实现方法,其特征在于,
    生成三维标签之后,还包括步骤:
    根据最近的三维模型的格式对应的存储规则,将所述三维标签的信息存储到相应的文件中;
    将所述三维标签的信息存储到相应的文件中之后,还包括步骤:
    通过删除所述文件中所述三维标签的信息,将所述三维标签删除。
  4. 根据权利要求1所述的三维标签实现方法,其特征在于,得到命中测试的信息列表之后,还包括步骤:
    若所述信息列表为空,返回获取在三维模型界面上的点击坐标的步骤。
  5. 根据权利要求1至4任意一项所述的三维标签实现方法,其特征在于,所述点击坐标包括鼠标点击的坐标、键盘点击的坐标和触摸点的坐标。
  6. 一种三维标签实现装置,其特征在于,包括:
    点击坐标获取模块,用于获取在三维模型界面上的点击坐标;
    信息列表获取模块,用于根据所述点击坐标进行命中测试,得到命中测试的信息列表;
    列表信息获取模块,用于在所述信息列表不为空时,根据所述信息列表获取离所述点击坐标最近的三维模型,以及与最近的三维模型对应的相交点;
    标签信息确定模块,用于根据所述相交点,以及所述相交点在最近的三维模型中的位置,获得待生成标签的方向、距离和角度;
    几何图像生成模块,用于根据待生成标签的方向、距离和角度生成三维几何图形;
    三维标签生成模块,用于在所述三维几何图形中添加文本编辑控件,生成三维标签。
  7. 根据权利要求6所述的三维标签实现装置,其特征在于,所述信息列表获取模块包括:
    坐标转换单元,用于将所述点击坐标转换为以所述点击坐标为顶点的圆锥射线;
    列表获取单元,用于根据所述圆锥射线获取命中测试的信息列表,其中所述信息列表包括与所述圆锥射线相交的三维模型以及相交点。
  8. 根据权利要求6所述的三维标签实现装置,其特征在于,
    所述三维标签实现装置还包括与所述三维标签生成模块相连的标签信息保存模块,所述标签信息保存模块用于根据最近的三维模型的格式对应的存储规则,将所述三维标签的信息存储到相应的文件中;
    所述三维标签实现装置还包括与所述标签信息保存模块相连的标签删除模块,所述标签删除模块通过删除所述文件中所述三维标签的信息,将所述三维标签删除。
  9. 根据权利要求6所述的三维标签实现装置,其特征在于,在所述信息列表为空时,所述点击坐标获取模块重新获取在三维模型界面上的点击坐标。
  10. 根据权利要求6至9任意一项所述的三维标签实现装置,其特征在于,所述点击坐标包括鼠标点击的坐标、键盘点击的坐标和触摸点的坐标。
PCT/CN2016/113204 2016-03-11 2016-12-29 三维标签实现方法和装置 Ceased WO2017152703A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610141844.7A CN105825551A (zh) 2016-03-11 2016-03-11 三维标签实现方法和装置
CN201610141844.7 2016-03-11

Publications (1)

Publication Number Publication Date
WO2017152703A1 true WO2017152703A1 (zh) 2017-09-14

Family

ID=56987290

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113204 Ceased WO2017152703A1 (zh) 2016-03-11 2016-12-29 三维标签实现方法和装置

Country Status (2)

Country Link
CN (1) CN105825551A (zh)
WO (1) WO2017152703A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109559384A (zh) * 2018-11-19 2019-04-02 长沙眸瑞网络科技有限公司 一种基于WebGL的网页端三维模型编辑方法
CN115457316A (zh) * 2022-08-31 2022-12-09 广东三维家信息科技有限公司 打标处理方法、装置、设备及存储介质

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105825551A (zh) * 2016-03-11 2016-08-03 广州视睿电子科技有限公司 三维标签实现方法和装置
CN107451235B (zh) * 2017-07-25 2020-08-14 广州视源电子科技股份有限公司 空间维度标记的展示方法和装置
CN111340955A (zh) * 2020-02-25 2020-06-26 十一维度(厦门)网络科技有限公司 一种环物标签添加方法
CN112068752B (zh) * 2020-08-28 2022-01-11 北京五八信息技术有限公司 一种空间展示方法、装置、电子设备及存储介质
CN116112811B (zh) * 2021-11-07 2026-02-27 书行科技(北京)有限公司 为视频添加立体标签的方法
CN114898076B (zh) * 2022-03-29 2023-04-21 北京城市网邻信息技术有限公司 模型标签的添加方法、装置、电子设备及存储介质
CN114820979B (zh) * 2022-04-22 2023-03-24 如你所视(北京)科技有限公司 三维网格模型的处理方法、装置和存储介质
CN114758075B (zh) * 2022-04-22 2023-03-24 如你所视(北京)科技有限公司 用于生成三维标签的方法、装置和存储介质
CN114842175B (zh) * 2022-04-22 2023-03-24 如你所视(北京)科技有限公司 三维标签的交互呈现方法、装置、设备和介质
CN115586894B (zh) * 2022-09-07 2026-03-27 超聚变数字技术股份有限公司 页面编辑方法、设备及服务器

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100245344A1 (en) * 2009-03-31 2010-09-30 Microsoft Corporation Annotating or editing three dimensional space
CN103679817A (zh) * 2013-12-06 2014-03-26 北京数码大方科技股份有限公司 用于计算机图形标注的数据处理方法和装置
CN104102678A (zh) * 2013-04-15 2014-10-15 腾讯科技(深圳)有限公司 增强现实的实现方法以及实现装置
CN104463974A (zh) * 2014-12-03 2015-03-25 天脉聚源(北京)传媒科技有限公司 三维模型展示方法、装置及系统
CN105825551A (zh) * 2016-03-11 2016-08-03 广州视睿电子科技有限公司 三维标签实现方法和装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7502027B1 (en) * 1999-09-13 2009-03-10 Solidworks Corporation Electronic drawing viewer
CN104680588B (zh) * 2015-02-13 2017-11-24 上海同筑信息科技有限公司 基于bim的事件标示方法和系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100245344A1 (en) * 2009-03-31 2010-09-30 Microsoft Corporation Annotating or editing three dimensional space
CN104102678A (zh) * 2013-04-15 2014-10-15 腾讯科技(深圳)有限公司 增强现实的实现方法以及实现装置
CN103679817A (zh) * 2013-12-06 2014-03-26 北京数码大方科技股份有限公司 用于计算机图形标注的数据处理方法和装置
CN104463974A (zh) * 2014-12-03 2015-03-25 天脉聚源(北京)传媒科技有限公司 三维模型展示方法、装置及系统
CN105825551A (zh) * 2016-03-11 2016-08-03 广州视睿电子科技有限公司 三维标签实现方法和装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109559384A (zh) * 2018-11-19 2019-04-02 长沙眸瑞网络科技有限公司 一种基于WebGL的网页端三维模型编辑方法
CN109559384B (zh) * 2018-11-19 2022-11-08 长沙眸瑞网络科技有限公司 一种基于WebGL的网页端三维模型编辑方法
CN115457316A (zh) * 2022-08-31 2022-12-09 广东三维家信息科技有限公司 打标处理方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN105825551A (zh) 2016-08-03

Similar Documents

Publication Publication Date Title
WO2017152703A1 (zh) 三维标签实现方法和装置
US20140325418A1 (en) Automatically manipulating visualized data based on interactivity
CN111243107B (zh) 三维模型的直观编辑
KR101575092B1 (ko) 애니메이션의 모션 시퀀스를 생성하기 위한 방법, 시스템 및 컴퓨터 판독 가능한 기록 매체
JP7475120B2 (ja) 回転を少なくとも含む動きを生成するための方法
US7600198B2 (en) Method of tracking data objects using related thumbnails in a palette window
CN112799583B (zh) 一种基于android平台的点位示意图绘制系统
US10310618B2 (en) Gestures visual builder tool
US8004539B2 (en) Systems and methods for improved graphical parameter definition
CN105359131B (zh) 栓系选择句柄
US12608397B2 (en) Handoff support in asynchronous analysis tasks using knowledge transfer graphs
CN109636892B (zh) 用于医学图像显示的颜色表编辑方法、装置、设备及介质
CN107765939A (zh) 演示文档的交互方法、系统、可读存储介质及终端设备
KR101910179B1 (ko) 데이터 시각화를 위한 웹 기반 차트 라이브러리 시스템
US10193959B2 (en) Graphical interface for editing an interactive dynamic illustration
CN111124387A (zh) 机器学习平台的建模系统、方法、计算机设备及存储介质
CN117850799A (zh) 建模网络训练方法、建模方法、设备及可读存储介质
CN110109997A (zh) 数据处理入库方法及设备
CN106648279A (zh) 一种数据处理的方法和设备
US10445946B2 (en) Dynamic workplane 3D rendering environment
TW201617937A (zh) 用於產生一影像之一互動索引碼圖之電子計算裝置、其方法及其電腦程式產品
KR20190011186A (ko) 데이터 시각화를 위한 웹 기반 차트 라이브러리 시스템
CN118411498A (zh) 一种虚拟空间中的图像处理方法、装置和电子设备
Höbart AR-Schulungs-Anwendung und-Editor für 3D-BIM-Visualisierung im Bauingenieurwesen
CN119376584A (zh) 基于数据挖掘的ar交互方法、设备、服务器及存储介质

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16893345

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16893345

Country of ref document: EP

Kind code of ref document: A1