WO2017152703A1 - Three-dimensional tag implementation method and device - Google Patents

Three-dimensional tag implementation method and device 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
Application number
PCT/CN2016/113204
Other languages
French (fr)
Chinese (zh)
Inventor
陈天龙
Original Assignee
广州视睿电子科技有限公司
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 广州视睿电子科技有限公司 filed Critical 广州视睿电子科技有限公司
Publication of WO2017152703A1 publication Critical patent/WO2017152703A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

A three-dimensional tag implementation method and device. The method comprises the steps of: obtaining click coordinates on a three-dimensional model interface (S110); performing a hit test according to the click coordinates to obtain an information list of the hit test (S120); if the information list is not empty, obtaining, according to the information list, a three-dimensional model closest to the click coordinates and an intersection point corresponding to the closest three-dimensional model (S130); obtaining the direction, the distance, and the angle of a tag to be generated according to the intersection point and the position of the intersection point in the closest three-dimensional model (S140); generating a three-dimensional geometric figure according to the direction, the distance, and the angle of the tag to be generated (S150); and adding a text edit control to the three-dimensional geometric figure to generate a three-dimensional tag (S160). The method can add a three-dimensional tag to a three-dimensional model without editing by using professional editing software, and therefore is simple to operate and suitable for non-professional persons.

Description

三维标签实现方法和装置Three-dimensional label implementation method and device 技术领域Technical field
本发明涉及多维模型技术领域,特别是涉及一种三维标签实现方法和装置。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.
背景技术Background technique
三维模型是物体的多边形表示,通常用计算机或者其它视频设备进行显示。显示的物体可以是现实世界的实体,也可以是虚构的物体。目前,三维模型已经用于各种不同的领域,例如,在医疗行业中用于制作器官的精确模型,在建筑业用来展示建筑物或者风景,在多媒体教学行业用于展示化合物的模型等等。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. Currently, 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. .
在使用三维模型时,用户常常需要在三维模型上进行标注,以指示三维模型上某个位置是什么等等。现有技术方案中常常使用二维标签对三维模型进行标注,但是添加的二维标签无法跟随三维模型的旋转、缩放等操作,且无法保存备注的信息,操作体验较差。而如果采用专业的编辑软件添加三维标签,则操作复杂,使用条件太高,影响大多数用户的使用。When using 3D models, users often need to mark on the 3D model to indicate what is in a position on the 3D model and so on. In the prior art, the two-dimensional model is often used to mark the three-dimensional model, but the added two-dimensional label cannot follow the rotation, scaling, and the like of the three-dimensional model, and the information of the remark cannot be saved, and the operation experience is poor. If a professional editing software is used to add a three-dimensional label, the operation is complicated and the usage conditions are too high, which affects the use of most users.
发明内容Summary of the invention
基于此,有必要针对上述问题,提供一种操作简单的三维标签实现方法和装置。Based on this, it is necessary to provide a method and apparatus for realizing a simple operation of a three-dimensional label in response to the above problems.
为了达到上述目的,本发明采取的技术方案如下:In order to achieve the above object, the technical solution adopted by the present invention is as follows:
一种三维标签实现方法,包括步骤:A three-dimensional label implementation method includes the steps of:
获取在三维模型界面上的点击坐标;Get the click coordinates on the 3D model interface;
根据所述点击坐标进行命中测试,得到命中测试的信息列表;Performing a hit test according to the click coordinates to obtain a list of information of the hit test;
若所述信息列表不为空,根据所述信息列表获取离所述点击坐标最近的三维模型,以及与最近的三维模型对应的相交点;If 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;
根据所述相交点,以及所述相交点在最近的三维模型中的位置,获得待生成标签的方向、距离和角度;Obtaining 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;
根据待生成标签的方向、距离和角度生成三维几何图形; Generating a three-dimensional geometric figure according to the direction, distance, and angle of the label to be generated;
在所述三维几何图形中添加文本编辑控件,生成三维标签。Add a text editing control to the three-dimensional geometry to generate a three-dimensional label.
本发明三维标签实现方法,当用户点击三维模型界面时,根据点击的二维坐标进行命中测试,若存在点中的三维模型,根据信息列表获取离点击点最近的三维模型以及相交点的三维坐标,进而确定标签的位置和角度,生成三维的几何图形,在该几何图形中添加文本编辑控件,即生成三维标签。本发明实现在三维模型中添加三维标签,添加的三维标签可以跟随三维模型的旋转、缩放等操作,操作体验较好;无需专业的编辑软件进行编辑,用户只需要在需要添加标签的位置进行通常的点击操作,就可以直接将三维标签添加到相应位置,方便灵活,操作简单,适用于非专业人员。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.
在一个实施例中,根据所述点击坐标进行命中测试,得到命中测试的信息列表的步骤包括:将所述点击坐标转换为以所述点击坐标为顶点的圆锥射线;根据所述圆锥射线获取命中测试的信息列表,其中所述信息列表包括与所述圆锥射线相交的三维模型以及相交点。In one embodiment, the hit test is performed according to the click coordinates, and 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.
在一个实施例中,生成三维标签之后,还包括步骤:根据最近的三维模型的格式对应的存储规则,将所述三维标签的信息存储到相应的文件中。本发明可以将标签的信息(三维信息和编辑的文本信息)保存,在下次打开时就可以直接显示该三维标签,方便用户使用。In an embodiment, after generating the three-dimensional label, 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.
在一个实施例中,将所述三维标签的信息存储到相应的文件中之后,还包括步骤:通过删除所述文件中所述三维标签的信息,将所述三维标签删除。若不再需要显示三维标签,用户只需要在文件中删除相应的信息,三维标签就不再显示,操作简单方便。In an embodiment, after the information of the three-dimensional tag is stored in the corresponding file, 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.
在一个实施例中,得到命中测试的信息列表之后,还包括步骤:若所述信息列表为空,返回获取在三维模型界面上的点击坐标的步骤。若用户没有点中任何三维模型,则不添加三维标签,继续监测点击操作。In one embodiment, after obtaining the information list of the hit test, 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.
在一个实施例中,所述点击坐标包括鼠标点击的坐标、键盘点击的坐标和触摸点的坐标。In one embodiment, the click coordinates include coordinates of a mouse click, coordinates of a keyboard click, and coordinates of a touch point.
一种三维标签实现装置,包括: A three-dimensional label implementation device includes:
点击坐标获取模块,用于获取在三维模型界面上的点击坐标;Clicking on the coordinate acquisition module for acquiring the click coordinates on the three-dimensional model interface;
信息列表获取模块,用于根据所述点击坐标进行命中测试,得到命中测试的信息列表;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.
在一个实施例中,所述信息列表获取模块包括:坐标转换单元,用于将所述点击坐标转换为以所述点击坐标为顶点的圆锥射线;列表获取单元,用于根据所述圆锥射线获取命中测试的信息列表,其中所述信息列表包括与所述圆锥射线相交的三维模型以及相交点。In one embodiment, 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.
在一个实施例中,本发明三维标签实现装置还包括与所述三维标签生成模块相连的标签信息保存模块,所述标签信息保存模块用于根据最近的三维模型的格式对应的存储规则,将所述三维标签的信息存储到相应的文件中。本发明可以将标签的信息(三维信息和编辑的文本信息)保存,在下次打开时就可以直接显示该三维标签,方便用户使用。 In one embodiment, 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.
在一个实施例中,本发明三维标签实现装置还包括与所述标签信息保存模块相连的标签删除模块,所述标签删除模块通过删除所述文件中所述三维标签的信息,将所述三维标签删除。若不再需要显示三维标签,用户只需要在文件中删除相应的信息,三维标签就不再显示,操作简单方便。In one embodiment, 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.
在一个实施例中,在所述信息列表为空时,所述点击坐标获取模块重新获取在三维模型界面上的点击坐标。若用户没有点中任何三维模型,则不添加三维标签,继续监测点击操作。In one embodiment, when the list of information is empty, 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.
在一个实施例中,所述点击坐标包括鼠标点击的坐标、键盘点击的坐标和触摸点的坐标。In one embodiment, the click coordinates include coordinates of a mouse click, coordinates of a keyboard click, and coordinates of a touch point.
附图说明DRAWINGS
图1为本发明三维标签实现方法实施例的流程示意图;1 is a schematic flow chart of an embodiment of a method for implementing a three-dimensional label according to the present invention;
图2为本发明三维标签实现装置实施例一的结构示意图;2 is a schematic structural view of Embodiment 1 of a three-dimensional label implementation device according to the present invention;
图3为本发明信息列表获取模块实施例的结构示意图;3 is a schematic structural diagram of an embodiment of an information list obtaining module according to the present invention;
图4为本发明三维标签实现装置实施例二的结构示意图;4 is a schematic structural diagram of Embodiment 2 of a three-dimensional label implementation device according to the present invention;
图5为本发明三维标签实现装置实施例三的结构示意图。FIG. 5 is a schematic structural diagram of Embodiment 3 of a three-dimensional tag implementation apparatus according to the present invention.
具体实施方式detailed description
为更进一步阐述本发明所采取的技术手段及取得的效果,下面结合附图及较佳实施例,对本发明的技术方案,进行清楚和完整的描述。The technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings and preferred embodiments.
如图1所示,一种三维标签实现方法,包括步骤:As shown in FIG. 1 , a method for implementing a three-dimensional label includes the following steps:
S110、获取在三维模型界面上的点击坐标;S110. Obtain a click coordinate on the three-dimensional model interface.
S120、根据所述点击坐标进行命中测试,得到命中测试的信息列表;S120. Perform a hit test according to the click coordinates to obtain a list of information of the hit test.
S130、若所述信息列表不为空,根据所述信息列表获取离所述点击坐标最近的三维模型,以及与最近的三维模型对应的相交点;S130. If the information list is not empty, obtain 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;
S140、根据所述相交点,以及所述相交点在最近的三维模型中的位置,获得待生成标签的方向、距离和角度;S140. Obtain a direction, a distance, and an angle of the label to be generated according to the intersection point and a position of the intersection point in the closest three-dimensional model.
S150、根据待生成标签的方向、距离和角度生成三维几何图形; S150. Generate a three-dimensional geometric figure according to a direction, a distance, and an angle of the label to be generated.
S160、在所述三维几何图形中添加文本编辑控件,生成三维标签。S160. 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.
在步骤S110中,导入常用的三维模型文件,例如,*.obj,*.dae,*.fbx,*.3ds等三维模型文件,并且将三维模型正确渲染到界面上,即得到三维模型界面,三维模型界面支持三维模型的旋转、缩放等操作。In step S110, 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.
在需要添加三维标签时,用户在需要添加三维标签的位置进行通常的点击操作,根据点击操作获取的点击坐标为二维坐标。获取点击坐标的方式有很多种,例如,在一个实施例中,所述点击坐标可以包括鼠标点击的坐标、键盘点击的坐标和触摸点的坐标等。即用户可以通过鼠标或键盘进行点击操作,也可以直接用手指等直接进行触摸。When a three-dimensional label needs to be added, the user performs a normal click operation at a position where the three-dimensional label needs to be added, and the click coordinates obtained according to the click operation are two-dimensional coordinates. There are many ways to obtain click coordinates. For example, in one embodiment, 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.
在步骤S120中,在用户进行点击操作时,以点击点的坐标做命中测试。在一个实施例中,根据所述点击坐标进行命中测试,得到命中测试的信息列表的步骤可以包括:In step S120, when the user performs a click operation, the hit test is performed with the coordinates of the click point. In an embodiment, the step of performing a hit test according to the click coordinates to obtain a list of information of the hit test may include:
将所述点击坐标转换为以所述点击坐标为顶点的圆锥射线;Converting the click coordinates to a cone ray with the click coordinates as a vertex;
根据所述圆锥射线获取命中测试的信息列表,其中所述信息列表包括与所述圆锥射线相交的三维模型以及相交点。所述信息列表还可以包括与所述圆锥射线相交的可视对象和网格等信息。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.
在一个实施例中,得到命中测试的信息列表之后,还包括步骤:若所述信息列表为空,返回获取在三维模型界面上的点击坐标的步骤。信息列表为空即未点中任何三维模型,不添加备注,结束此次操作,重新获取点击坐标。In one embodiment, after obtaining the information list of the hit test, 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.
如果获取的信息列表不为空,则存在点中的三维模型,执行后续操作。If the obtained information list is not empty, there is a three-dimensional model in the point to perform subsequent operations.
在步骤S130中,在做命中测试时,圆锥射线可能与多个三维模型相交,即信息列表中可能存在多个三维模型和对应相交点的信息。根据信息列表的信息,计算距离点击坐标最近的三维模型,以及圆锥射线与最近的三维模型的相交点(命中点),其中相交点为三维坐标。 In step S130, when making a hit test, the cone ray 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.
在步骤S140中,以步骤S130中得到的相交点为待生成标签的根,根据相交点在该三维模型的位置来确定待生成标签的方向、距离和角度。例如,相交点的X坐标小于三维模型的中间坐标的X点,即相交点在该三维模型的左半部分,则待生成标签向左延伸。In 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. For example, 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.
在步骤S150中,得到待生成标签的方向、距离和角度后,即可以根据这些信息在该三维模型中的相应位置动态生成一个三维几何图形,其中生成三维几何图像的方式可以根据现有技术中已有的方式实现。After the direction, the distance and the angle of the label to be generated are obtained in step S150, 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. The existing way to achieve.
在步骤S160中,得到三维几何图形后,在所述三维几何图形中添加文本编辑控件,就可以生成三维标签,用户双击即可以编辑标签内容。在三维几何图像中添加文本编辑控件的方式可以根据现有技术中已有的方式实现。In 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. The manner in which text editing controls are added to a three-dimensional geometric image can be implemented in accordance with methods already available in the prior art.
为了方便下一次使用,用户需要将标签信息进行存储。所以,在一个实施例中,生成三维标签之后,还可以包括步骤:根据最近的三维模型的格式对应的存储规则,将所述三维标签的信息,包括用户编辑的备注内容以及三维标签自身位置等三维信息,存储到相应的文件中。存储后,在下一次打开该文件时,三维标签就自动显示。In order to facilitate the next use, the user needs to store the tag information. Therefore, in an embodiment, after generating the three-dimensional label, 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.
当不需要显示三维标签时,就需要对添加的三维标签进行删除。在一个实施例中,将所述三维标签的信息存储到相应的文件中之后,还可以包括步骤:通过删除所述文件中所述三维标签的信息,将所述三维标签删除。用户还可以在界面中直接选中待删除的三维标签,通过快捷键将三维标签直接删除。When you do not need to display 3D tags, you need to delete the added 3D tags. In an embodiment, after the information of the three-dimensional tag is stored in the corresponding file, 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.
为了更好的理解本发明,下面结合一个具体应用场景进行介绍。In order to better understand the present invention, the following is introduced in conjunction with a specific application scenario.
老师通过三维模型讲解化合物的结构时,为了更方便学生了解某个位置的元素,需要对三维模型添加三维标签。利用本发明方法,老师只需要在相应位置进行点击操作,那么就可以直接将三维标签添加到三维模型中,然后老师双击就可以编辑三维标签的内容,直接在讲解现场完成三维标签的添加过程,并且添加的三维标签可以跟随三维模型的旋转和缩放等操作。通过该具体应用常见可以看出,本发明即可以方便老师进行三维标签的添加,也可以让学生能够能加快速准确的捕获到信息。 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. By using the method of the invention, 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. And 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.
基于同一发明构思,本发明还提供一种三维标签实现装置,下面结合附图对本发明装置的具体实施方式做详细描述。Based on the same inventive concept, 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.
如图2所示,一种三维标签实现装置,包括:As shown in FIG. 2, a three-dimensional label implementation device includes:
点击坐标获取模块110,用于获取在三维模型界面上的点击坐标;Clicking on the coordinate acquisition module 110 for acquiring click coordinates on the three-dimensional model interface;
信息列表获取模块120,用于根据所述点击坐标进行命中测试,得到命中测试的信息列表;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;
列表信息获取模块130,用于在所述信息列表不为空时,根据所述信息列表获取离所述点击坐标最近的三维模型,以及与最近的三维模型对应的相交点;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;
标签信息确定模块140,用于根据所述相交点,以及所述相交点在最近的三维模型中的位置,获得待生成标签的方向、距离和角度;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;
几何图像生成模块150,用于根据待生成标签的方向、距离和角度生成三维几何图形;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;
三维标签生成模块160,用于在所述三维几何图形中添加文本编辑控件,生成三维标签。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.
获取点击坐标的方式有很多种,例如,在一个实施例中,所述点击坐标可以包括鼠标点击的坐标、键盘点击的坐标和触摸点的坐标等。即用户可以通过鼠标或键盘进行点击操作,也可以直接用手指等直接进行触摸。There are many ways to obtain click coordinates. For example, in one embodiment, 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.
在用户进行点击操作时,信息列表获取模块120以点击点的坐标做命中测试,获取信息列表。在一个实施例中,如图3所示,所述信息列表获取模块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. In an embodiment, as shown in FIG. 3, the information list obtaining module 120 may include:
坐标转换单元1201,用于将所述点击坐标转换为以所述点击坐标为顶点的圆锥射线;a coordinate conversion unit 1201, configured to convert the click coordinate into a cone ray with the click coordinate as a vertex;
列表获取单元1202,用于根据所述圆锥射线获取命中测试的信息列表,其中所述信息列表包括与所述圆锥射线相交的三维模型以及相交点等。 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.
在一个实施例中,在所述信息列表为空时,所述点击坐标获取模块110重新获取在三维模型界面上的点击坐标。信息列表为空即未点中任何三维模型,不添加备注,结束此次操作,重新获取点击坐标。In one embodiment, when the list of information is empty, 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.
如果获取的信息列表不为空,列表信息获取模块130根据信息列表的信息,计算距离点击坐标最近的三维模型,以及圆锥射线与最近的三维模型的相交点(命中点)。标签信息确定模块140以相交点为待生成标签的根,根据相交点在该三维模型的位置来确定待生成标签的方向、距离和角度。几何图像生成模块150根据这些信息在该三维模型中的相应位置动态生成一个三维几何图形。三维标签生成模块160在所述三维几何图形中添加文本编辑控件,就可以生成三维标签。用户双击即可以编辑标签内容。If the acquired information list is not empty, 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.
为了方便下一次使用,用户需要将标签信息进行存储。所以,在一个实施例中,如图4所示,本发明装置还可以包括与所述三维标签生成模块160相连的标签信息保存模块170。所述标签信息保存模块170用于根据最近的三维模型的格式对应的存储规则,将所述三维标签的信息存储到相应的文件中。In order to facilitate the next use, the user needs to store the tag information. Therefore, in one embodiment, as shown in FIG. 4, 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.
当不需要显示三维标签时,就需要对添加的三维标签进行删除。在一个实施例中,如图5所示,本发明装置还可以包括与所述标签信息保存模块170相连的标签删除模块180,所述标签删除模块180通过删除所述文件中所述三维标签的信息,将所述三维标签删除。用户还可以在界面中直接选中待删除的三维标签,通过快捷键将三维标签直接删除。When you do not need to display 3D tags, you need to delete the added 3D tags. In an embodiment, as shown in FIG. 5, 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.
本发明装置其它技术特征与本发明方法相同,在此不予赘述。Other technical features of the device of the present invention are the same as those of the present invention, and are not described herein.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。 The above-described embodiments are merely illustrative of several embodiments of the present invention, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the invention. Therefore, the scope of the invention should be determined by the appended claims.

Claims (10)

  1. 一种三维标签实现方法,其特征在于,包括步骤:A method for implementing a three-dimensional label, comprising the steps of:
    获取在三维模型界面上的点击坐标;Get the click coordinates on the 3D model interface;
    根据所述点击坐标进行命中测试,得到命中测试的信息列表;Performing a hit test according to the click coordinates to obtain a list of information of the hit test;
    若所述信息列表不为空,根据所述信息列表获取离所述点击坐标最近的三维模型,以及与最近的三维模型对应的相交点;If 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;
    根据所述相交点,以及所述相交点在最近的三维模型中的位置,获得待生成标签的方向、距离和角度;Obtaining 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;
    根据待生成标签的方向、距离和角度生成三维几何图形;Generating a three-dimensional geometric figure according to the direction, distance, and angle of the label to be generated;
    在所述三维几何图形中添加文本编辑控件,生成三维标签。Add a text editing control to the three-dimensional geometry to generate a three-dimensional label.
  2. 根据权利要求1所述的三维标签实现方法,其特征在于,根据所述点击坐标进行命中测试,得到命中测试的信息列表的步骤包括:The method for implementing a three-dimensional tag according to claim 1, wherein the step of performing a hit test according to the click coordinates to obtain a list of information for a hit test comprises:
    将所述点击坐标转换为以所述点击坐标为顶点的圆锥射线;Converting the click coordinates to a cone ray with the click coordinates as a vertex;
    根据所述圆锥射线获取命中测试的信息列表,其中所述信息列表包括与所述圆锥射线相交的三维模型以及相交点。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.
  3. 根据权利要求1所述的三维标签实现方法,其特征在于,The method for implementing a three-dimensional tag according to claim 1, wherein
    生成三维标签之后,还包括步骤:After generating the 3D tag, it also includes the steps:
    根据最近的三维模型的格式对应的存储规则,将所述三维标签的信息存储到相应的文件中;The information of the three-dimensional label is stored in a corresponding file according to a storage rule corresponding to a format of a recent three-dimensional model;
    将所述三维标签的信息存储到相应的文件中之后,还包括步骤:After storing the information of the three-dimensional label into the corresponding file, the method further includes the steps of:
    通过删除所述文件中所述三维标签的信息,将所述三维标签删除。The three-dimensional tag is deleted by deleting the information of the three-dimensional tag in the file.
  4. 根据权利要求1所述的三维标签实现方法,其特征在于,得到命中测试的信息列表之后,还包括步骤:The method for implementing a three-dimensional tag according to claim 1, wherein after obtaining the information list of the hit test, the method further comprises the steps of:
    若所述信息列表为空,返回获取在三维模型界面上的点击坐标的步骤。If the information list is empty, the step of obtaining the click coordinates on the three-dimensional model interface is returned.
  5. 根据权利要求1至4任意一项所述的三维标签实现方法,其特征在于,所述点击坐标包括鼠标点击的坐标、键盘点击的坐标和触摸点的坐标。The method for implementing a three-dimensional tag according to any one of claims 1 to 4, wherein the click coordinates include coordinates of a mouse click, coordinates of a keyboard click, and coordinates of a touch point.
  6. 一种三维标签实现装置,其特征在于,包括:A three-dimensional label implementation device, comprising:
    点击坐标获取模块,用于获取在三维模型界面上的点击坐标; Clicking on the coordinate acquisition module for acquiring the click coordinates on the three-dimensional model interface;
    信息列表获取模块,用于根据所述点击坐标进行命中测试,得到命中测试的信息列表;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.
  7. 根据权利要求6所述的三维标签实现装置,其特征在于,所述信息列表获取模块包括:The apparatus for implementing a three-dimensional tag according to claim 6, wherein the information list obtaining module comprises:
    坐标转换单元,用于将所述点击坐标转换为以所述点击坐标为顶点的圆锥射线;a coordinate conversion unit, configured to convert the click coordinate into a cone ray with the click coordinate as a vertex;
    列表获取单元,用于根据所述圆锥射线获取命中测试的信息列表,其中所述信息列表包括与所述圆锥射线相交的三维模型以及相交点。a list obtaining unit for acquiring a list of information of a 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.
  8. 根据权利要求6所述的三维标签实现装置,其特征在于,The three-dimensional label implementing device according to claim 6, wherein
    所述三维标签实现装置还包括与所述三维标签生成模块相连的标签信息保存模块,所述标签信息保存模块用于根据最近的三维模型的格式对应的存储规则,将所述三维标签的信息存储到相应的文件中;The 3D tag implementation device further includes a tag information saving module connected to the 3D tag generating module, where the tag information saving module is configured to store information of the 3D tag according to a storage rule corresponding to a format of a recent 3D model. Go to the corresponding file;
    所述三维标签实现装置还包括与所述标签信息保存模块相连的标签删除模块,所述标签删除模块通过删除所述文件中所述三维标签的信息,将所述三维标签删除。The three-dimensional label implementation apparatus further includes a label deletion module connected to the label information storage module, and the label deletion module deletes the three-dimensional label by deleting information of the three-dimensional label in the file.
  9. 根据权利要求6所述的三维标签实现装置,其特征在于,在所述信息列表为空时,所述点击坐标获取模块重新获取在三维模型界面上的点击坐标。The three-dimensional tag implementation apparatus according to claim 6, wherein when the information list is empty, the click coordinate acquisition module reacquires the click coordinates on the three-dimensional model interface.
  10. 根据权利要求6至9任意一项所述的三维标签实现装置,其特征在于,所述点击坐标包括鼠标点击的坐标、键盘点击的坐标和触摸点的坐标。 The three-dimensional label implementing apparatus according to any one of claims 6 to 9, wherein the click coordinates include coordinates of a mouse click, coordinates of a keyboard click, and coordinates of a touch point.
PCT/CN2016/113204 2016-03-11 2016-12-29 Three-dimensional tag implementation method and device WO2017152703A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610141844.7A CN105825551A (en) 2016-03-11 2016-03-11 Three-dimensional tag realization method and apparatus
CN201610141844.7 2016-03-11

Publications (1)

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

Family

ID=56987290

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113204 WO2017152703A1 (en) 2016-03-11 2016-12-29 Three-dimensional tag implementation method and device

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109559384A (en) * 2018-11-19 2019-04-02 长沙眸瑞网络科技有限公司 A kind of page end threedimensional model edit methods based on WebGL

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105825551A (en) * 2016-03-11 2016-08-03 广州视睿电子科技有限公司 Three-dimensional tag realization method and apparatus
CN107451235B (en) * 2017-07-25 2020-08-14 广州视源电子科技股份有限公司 Display method and device of space dimension mark
CN111340955A (en) * 2020-02-25 2020-06-26 十一维度(厦门)网络科技有限公司 Ring object label adding method
CN112068752B (en) * 2020-08-28 2022-01-11 北京五八信息技术有限公司 Space display method and device, electronic equipment and storage medium
CN114898076B (en) * 2022-03-29 2023-04-21 北京城市网邻信息技术有限公司 Model label adding method and device, electronic equipment and storage medium
CN114820979B (en) * 2022-04-22 2023-03-24 如你所视(北京)科技有限公司 Processing method and device of three-dimensional grid model and storage medium
CN114758075B (en) * 2022-04-22 2023-03-24 如你所视(北京)科技有限公司 Method, apparatus and storage medium for generating three-dimensional label
CN114842175B (en) * 2022-04-22 2023-03-24 如你所视(北京)科技有限公司 Interactive presentation method, device, equipment and medium for three-dimensional label

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 (en) * 2013-12-06 2014-03-26 北京数码大方科技股份有限公司 Data processing method and device for computer graphic annotation
CN104102678A (en) * 2013-04-15 2014-10-15 腾讯科技(深圳)有限公司 Method and device for realizing augmented reality
CN104463974A (en) * 2014-12-03 2015-03-25 天脉聚源(北京)传媒科技有限公司 Three-dimensional model showing method, device and system
CN105825551A (en) * 2016-03-11 2016-08-03 广州视睿电子科技有限公司 Three-dimensional tag realization method and apparatus

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 (en) * 2015-02-13 2017-11-24 上海同筑信息科技有限公司 Event marker method and system based on 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 (en) * 2013-04-15 2014-10-15 腾讯科技(深圳)有限公司 Method and device for realizing augmented reality
CN103679817A (en) * 2013-12-06 2014-03-26 北京数码大方科技股份有限公司 Data processing method and device for computer graphic annotation
CN104463974A (en) * 2014-12-03 2015-03-25 天脉聚源(北京)传媒科技有限公司 Three-dimensional model showing method, device and system
CN105825551A (en) * 2016-03-11 2016-08-03 广州视睿电子科技有限公司 Three-dimensional tag realization method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109559384A (en) * 2018-11-19 2019-04-02 长沙眸瑞网络科技有限公司 A kind of page end threedimensional model edit methods based on WebGL
CN109559384B (en) * 2018-11-19 2022-11-08 长沙眸瑞网络科技有限公司 WebGL-based webpage-side three-dimensional model editing method

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2017152703A1 (en) Three-dimensional tag implementation method and device
Kwan et al. Mobi3dsketch: 3d sketching in mobile ar
US7600198B2 (en) Method of tracking data objects using related thumbnails in a palette window
US8004539B2 (en) Systems and methods for improved graphical parameter definition
US20140325418A1 (en) Automatically manipulating visualized data based on interactivity
US10310618B2 (en) Gestures visual builder tool
KR101575092B1 (en) Method, system and computer-readable recording medium for creating motion sequence of animation
WO2022048329A1 (en) Menu display method and apparatus
US11087561B2 (en) Three-dimensional sketching in mobile augmented reality
US9442642B2 (en) Tethered selection handle
CN112799583B (en) Point location schematic drawing system based on android platform
US10193959B2 (en) Graphical interface for editing an interactive dynamic illustration
JP7475120B2 (en) Method for generating a movement that includes at least a rotation - Patents.com
US11894019B2 (en) Time-lapse
US20150026552A1 (en) Electronic device and image data displaying method
US10445946B2 (en) Dynamic workplane 3D rendering environment
JPH0887608A (en) Method and device for deforming three-dimensional shape model
KR20190011186A (en) Web-based chart library system for data visualization
CN111124387A (en) Modeling system, method, computer device and storage medium for machine learning platform
CN115495807B (en) Automatic drawing method and electronic equipment
KR101420818B1 (en) Method of embodying three-dimensional object animation, apparatus performing the same and storage media storing the same
Zhou et al. GesmoSketch: A system for 3D sketching in AR with one mobile device
Höbart AR-Schulungs-Anwendung und-Editor für 3D-BIM-Visualisierung im Bauingenieurwesen
TW201617937A (en) Electronic calculating apparatus for generating an interaction index map of an image, method thereof and computer program product thereof
Matthews et al. Sketch-based interfaces: drawings to data

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