WO2018201664A1 - 一种立体图形显示的方法、装置及设备 - Google Patents

一种立体图形显示的方法、装置及设备 Download PDF

Info

Publication number
WO2018201664A1
WO2018201664A1 PCT/CN2017/104870 CN2017104870W WO2018201664A1 WO 2018201664 A1 WO2018201664 A1 WO 2018201664A1 CN 2017104870 W CN2017104870 W CN 2017104870W WO 2018201664 A1 WO2018201664 A1 WO 2018201664A1
Authority
WO
WIPO (PCT)
Prior art keywords
contour
node
viewing angle
determining
graphic
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/CN2017/104870
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 Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
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 Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Publication of WO2018201664A1 publication Critical patent/WO2018201664A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04815Interaction with a metaphor-based environment or interaction object displayed as three-dimensional [3D], e.g. changing the user viewpoint with respect to the environment or object
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating three-dimensional [3D] models or images for computer graphics
    • G06T19/20Editing of three-dimensional [3D] images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/048023D-info-object: information is displayed on the internal or external surface of a three dimensional manipulable object, e.g. on the faces of a cube that can be rotated by the user
    • 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/20Indexing scheme for editing of 3D models
    • G06T2219/2016Rotation, translation, scaling

Definitions

  • the present application relates to the field of computer technology, and in particular, to a method and an apparatus for displaying a stereoscopic graphic.
  • the display of the outline of the three-dimensional graphics is often involved.
  • the contours of the stereoscopic graphics that we can see for any viewing angle are often displayed with solid lines, and the invisible contours that are obscured by the solid graphics are often shown with dashed lines.
  • the above display effect is usually implemented in a pseudo 3D manner, that is, the outline of the graphic at the viewing angle is manually drawn in a 2D drawing manner under a specific viewing angle.
  • a pseudo 3D manner that is, the outline of the graphic at the viewing angle is manually drawn in a 2D drawing manner under a specific viewing angle.
  • the embodiment of the invention provides a method, a device and a device for displaying a three-dimensional graphic, which are used to solve the problem that the prior art can only display the contour of the three-dimensional graphic with a specific viewing angle, and the user experience is poor.
  • a method of stereoscopic graphics display comprising:
  • the contour bus bar is displayed according to the position of the contour bus bar, and the invisible portion of the bottom surface contour is displayed separately from other portions of the solid figure contour.
  • an apparatus for stereoscopic graphic display comprising The bottom contour and the contour bus, the device comprising:
  • a display unit configured to display the stereoscopic graphic on a graphical user interface
  • a receiving unit configured to receive a rotation operation instruction for the stereo graphic
  • a transforming unit configured to transform a viewing angle of the stereoscopic graphic display according to the rotating operation instruction
  • a first determining unit configured to determine, in real time, a visible portion and an invisible portion of the bottom surface contour in the current viewing angle according to the change in the viewing angle of the stereoscopic graphic display
  • a second determining unit configured to determine a position of the contour bus in real time according to a change in a viewing angle of the stereoscopic graphic display
  • the display unit is further configured to display the contour bus bar according to the position of the contour bus bar, and display the invisible portion of the bottom surface contour separately from other portions of the stereoscopic graphic contour.
  • a computer apparatus includes a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein when the processor executes the program Implement the following steps:
  • the contour bus bar is displayed according to the position of the contour bus bar, and the invisible portion of the bottom surface contour is displayed separately from other portions of the solid figure contour.
  • the embodiment of the present invention determines the position of the bottom surface contour of the stereoscopic image in the visible portion and the invisible portion of the current viewing angle and the contour bus bar of the stereoscopic graphic in real time according to the change of the display viewing angle.
  • the display of the contour busbar of the stereoscopic graphics is more Intuitive, user experience is better.
  • Figure 1 is a perspective view of a cylinder at a particular viewing angle
  • FIG. 2 is a flow chart of an embodiment of a method for displaying a three-dimensional graphic according to the present invention
  • FIG. 3 is a flow chart of another embodiment of a method for displaying a three-dimensional graphic according to the present invention.
  • Figure 4 is another perspective view of a cylinder at a particular viewing angle
  • FIG. 5 is a hardware structural diagram of a device where a device for stereoscopic graphic display is located
  • Figure 6 is a block diagram of one embodiment of an apparatus for stereoscopic graphics display of the present invention.
  • FIG. 2 is a flowchart of an embodiment of a method for displaying a three-dimensional graphic according to the present invention.
  • the three-dimensional graphic outline includes a bottom surface contour and a contour bus. The method includes the following steps:
  • Step 201 Display the stereoscopic graphic on a graphical user interface.
  • the above-mentioned three-dimensional figure may be a cylinder, a cone, and a truncated cone.
  • Step 202 Receive a rotation operation instruction for the stereoscopic graphic.
  • Step 203 Transform a viewing angle of the stereoscopic graphic display according to the rotation operation instruction.
  • Step 204 Determine, in real time, the visible portion and the invisible portion of the bottom view contour and the position of the contour bus bar according to the change of the viewing angle of the stereoscopic graphic display.
  • the nodes may be pre-arranged at regular intervals on the bottom surface profile, which may divide the bottom surface contour into a plurality of contour segments. If both vertices of any contour segment are visible at the current viewing angle, it is determined that any of the contour segments are visible at the current viewing angle, and if the two vertices of any of the contour segments are not visible at the current viewing angle, A contour segment is invisible at the current viewing angle.
  • the above fixed interval for setting the node determines the density of the node setting. In consideration of the image processing performance of the display device, the fixed interval should be as small as possible, and a normal value is 10 pixels.
  • the method for determining the current view visibility of the node may be implemented by using a projection matrix of the current view and a hit test provided by the three-dimensional engine.
  • the specific execution manner may include: determining, by using a projection matrix of the current view, the node corresponding to the current view. a projection point of the projection plane; determining, by a hit test provided by the three-dimensional engine, a hit point of the projection point in the stereoscopic image; determining whether the hit point and the node satisfy a preset approximate coincidence condition; if yes, determining the node The current perspective is visible, and if not, it is determined that the node is invisible at the current perspective.
  • the preset approximate coincidence condition may be a preset threshold value about the distance between the hit point and the node in the stereo graphic. When the distance between the hit point and the node in the stereo graphic is less than the preset threshold, the hit point is approximated by the node.
  • the preset approximate coincidence condition may also be a preset error about the three-dimensional coordinates of the hit point and the node in the solid figure, when the error of the three-dimensional coordinate of the hit point and the three-dimensional coordinate of the node in any dimension is less than the preset error Then it is determined that the hit point and the node approximately coincide.
  • the preset threshold for the distance should be smaller than the separation distance between two adjacent nodes; the error threshold for the three-dimensional coordinates should be smaller than the coordinate difference between two adjacent nodes.
  • a typical preset threshold for distance is 1 pixel distance.
  • a visible node adjacent to the invisible node (hereinafter referred to as a turning node) and a line connecting the corresponding point may be determined as the position of the contour bus.
  • a solid figure having only one bottom surface such as a cone
  • the turning node is the position of the contour bus
  • the connecting vertices of the turning node and the cone are the contour bus.
  • the apex of the cone is the corresponding point above.
  • the visibility of each bottom node should be determined separately.
  • the position of the contour bus can be determined by the turning nodes belonging to the upper and lower bottom surfaces.
  • the turning nodes of the upper and lower bottom surfaces are mutually corresponding points; if only one bottom surface has a turning node, the corresponding point of the turning node can be determined on the other bottom surface, and the turning node and its corresponding point are connected to determine the position of the contour bus, wherein
  • the determination of the corresponding point may be by way of a vertical line, taking a cylinder as an example, assuming that the upper bottom surface of the cylinder is completely visible, the lower bottom surface has a turning node, and the lower bottom turning point node is determined at the corresponding point of the upper bottom surface may be:
  • the bottom turn node is a vertical line of the bottom surface of the turning node, and the intersection of the vertical line and the upper bottom surface is determined to be a corresponding point of the turning node.
  • Step 205 Display the contour bus bar according to the position of the contour bus bar, and display the invisible portion of the bottom surface contour separately from other portions of the solid figure contour.
  • the above distinguishing display can be:
  • the invisible portion of the bottom surface contour is separately distinguished from the other portions of the solid figure contour by solid lines and broken lines;
  • the invisible portion of the bottom surface contour is separately distinguished from the other portions of the three-dimensional graphic contour by different gray levels, wherein the gray level may be different gray levels of the same color or different gray levels of different colors. ;
  • the invisible portion of the bottom surface contour is separately displayed from the other portions of the solid figure contour by different thicknesses of the lines.
  • the embodiment of the present invention determines the position of the bottom surface contour of the stereoscopic image in the visible portion and the invisible portion of the current viewing angle and the contour bus bar of the stereoscopic graphic in real time according to the change of the display viewing angle.
  • the display of the contour busbar of the stereoscopic graphics is more Intuitive, user experience is better.
  • FIG. 3 is a flow chart of another embodiment of a method for displaying a three-dimensional graphic according to a third embodiment of the present invention.
  • the embodiment of the present invention provides a detailed description of a process for displaying a contour of a three-dimensional figure including a bottom contour and a contour bus.
  • the methods include:
  • Step 301 Display the stereoscopic graphic on the graphical user interface, receive a rotation operation instruction for the stereoscopic graphic, and transform the display viewing angle of the stereoscopic graphic according to the above instruction.
  • the above-mentioned three-dimensional figure may be a cylinder, a cone, and a truncated cone.
  • Step 302 According to the change of the viewing angle of the stereoscopic graphic, the projection point of the projection plane corresponding to the current viewing angle of each node is determined in real time through the projection matrix of the current viewing angle.
  • the node is disposed on the bottom surface contour at a preset interval to divide the bottom surface contour into a plurality of contour segments.
  • the above fixed interval for setting the node determines the density of the node setting. In consideration of the image processing performance of the display device, the fixed interval should be as small as possible, and a normal value is 10 pixels.
  • Step 303 Determine, by a hit test provided by the three-dimensional engine, a hit point of the projection point in the stereoscopic graphic in real time.
  • point E is a node in the preset node of the cylinder (for convenience of explanation, Figure 4 only lists some nodes in the contour of the bottom surface of the cylinder), and the angle of view is shown as shown in the figure. For invisible points.
  • Point E 1 is a point on the side of the cylinder shown.
  • point E 1 will occlude point E at the current perspective, where the two-dimensional plane in which the perspective is located is the projection plane, point E in the perspective
  • the projection of the map is the projection point of the point E
  • the point E 1 is the hit point of the projection point of the point E.
  • Step 304 Calculate in real time whether the distance between the node and its corresponding hit point in the stereo graphic is less than a preset distance threshold. If yes, execute step 305. If no, go to step 306.
  • the preset distance threshold may be a fixed value; or may be a dynamic value that changes as the size of the stereo graphic changes. It should be noted that the above preset threshold for the distance should be smaller than the separation distance between two adjacent nodes. A typical preset threshold for distance is 1 pixel distance.
  • Step 305 Determine that the node is visible at the current perspective.
  • Step 306 Determine that the node is invisible at the current perspective.
  • Step 307 Determine the connection between the visible node adjacent to the invisible node and the corresponding point as the position of the contour bus.
  • the above-mentioned solid figure is a solid figure having only one bottom surface such as a cone
  • the turning node is the position of the contour bus, connecting the turning node and the cone.
  • the apex of the cone is the contour bus, where the apex of the cone is the corresponding point.
  • each bottom node For a solid figure with two bottom surfaces such as a circular table or a cylinder, the visibility of each bottom node should be determined separately. If there are turning nodes on both bottom surfaces, the position of the contour bus can be determined by the turning nodes belonging to the upper and lower bottom surfaces.
  • the turning nodes of the upper and lower bottom surfaces are mutually corresponding points; if only one bottom surface has a turning node, the corresponding point of the turning node can be determined on the other bottom surface, and the turning node and its corresponding point are connected to determine the position of the contour bus, wherein
  • the determination of the corresponding point may be by way of a vertical line, taking a cylinder as an example, assuming that the upper bottom surface of the cylinder is completely visible, the lower bottom surface has a turning node, and the lower bottom turning point node is determined at the corresponding point of the upper bottom surface may be:
  • the bottom turn node is a vertical line of the bottom surface of the turning node, and the intersection of the vertical line and the upper bottom surface is determined to be a corresponding point of the turning node.
  • Step 308 Determine whether any set of neighboring nodes are visible in the current view. If yes, go to step 309, if not, go to step 310.
  • Step 309 Determine that the contour segment between any one of the adjacent nodes is visible at the current viewing angle.
  • Step 310 Determine that the contour segment between any one of the adjacent nodes is invisible at the current viewing angle.
  • Step 311 Display the contour bus bar according to the position of the contour bus bar, and display the invisible portion of the bottom surface contour and the other portions of the stereoscopic graphic contour by a solid line and a broken line, respectively.
  • the above distinguishing display can be:
  • the invisible portion of the bottom surface contour is separately distinguished from the other portions of the solid figure contour by solid lines and broken lines;
  • the invisible portion of the bottom surface contour is separately distinguished from the other portions of the three-dimensional graphic contour by different gray levels, wherein the gray level may be different gray levels of the same color or different gray levels of different colors. ;
  • the invisible portion of the bottom surface contour is separately displayed from the other portions of the solid figure contour by different thicknesses of the lines.
  • the invisible portion of the bottom surface contour is displayed separately from the other portions of the above-described solid figure outline by solid lines and broken lines, and when the user clicks on any surface of the solid figure, the hit may also be hit.
  • the test realizes the judgment of the surface of the user's click, and simultaneously distinguishes the surface that the user clicks from the other surface of the stereoscopic graphic. Taking FIG. 4 as an example, the method may specifically include the following steps:
  • the sides of the cylinder shown are colored for display.
  • the embodiment of the present invention determines the position of the bottom surface contour of the stereoscopic image in the visible portion and the invisible portion of the current viewing angle and the contour bus bar of the stereoscopic graphic in real time according to the change of the display viewing angle.
  • the display of the contour busbar of the stereoscopic graphics is more Intuitive, user experience is better.
  • the projection matrix M of the current viewing angle is used to determine the projection point of each node of the cylinder in the current projection plane in real time, taking the viewing angle and the vertex E shown in FIG. 4 as an example. Its projection point can be expressed Shown as E*M;
  • the hit point of each node of the cylinder shown in the current perspective is determined in real time.
  • the angle of view shown in Figure 4 and the projection point E*M as an example, through the hit test, projection The three-dimensional hit point of the point E*M in the solid figure is E 1 ;
  • a visible node adjacent to the invisible node (hereinafter referred to as a turning node) is respectively determined on the upper or lower surface of the cylinder, and the cylinder is determined to be at the current viewing angle.
  • the outline busbar is taken as an example of the angle of view shown in Fig. 4.
  • the lower bottom turning node is F and A
  • the vertical line 1 and the bottom of the bottom bottom are at point F and point A.
  • Line 2 find the intersections F' and A' of the vertical line 1 and the vertical line 2 with the upper bottom surface, respectively, F'F and A'A are the contour busbars of the cylinder shown at the current viewing angle.
  • the contour segment between the arcs ABCDEF is an invisible contour segment
  • the contour segment between the arcs FGHIJA is a visible contour
  • the invisible portion of the bottom surface contour is displayed separately from the other portions of the above-mentioned solid figure contour by real lines and dashed lines in real time, and the angle of view shown in FIG. 4 and the lower bottom surface of the illustrated cylinder are taken as an example, and the arc FGHIJA is in a solid line. Display, the arc ABCDEF is shown in dotted lines.
  • the present application also provides an embodiment of a device for stereoscopic graphic display.
  • the embodiment of the apparatus for displaying a three-dimensional graphic of the present application may be implemented by software, or may be implemented by hardware or a combination of hardware and software.
  • the processor of the device in which it is located reads the corresponding computer program instructions in the non-volatile memory into the memory.
  • FIG. 5 a hardware structure diagram of a device in which the device for stereoscopic graphic display is located, except for the processor, the memory, the network interface, and the non-volatile memory shown in FIG.
  • the device in which the device is located in the embodiment may also include other hardware according to the actual function of the device, and details are not described herein again.
  • FIG. 6 is a block diagram of an embodiment of a device for displaying a three-dimensional graphics according to the present invention.
  • the stereoscopic graphics contour includes a bottom surface contour and a contour bus.
  • the device includes: a display unit 610, a receiving unit 620, and a transform unit 630.
  • the determining unit 640 is a second determining unit 650.
  • a display unit 610 configured to display the stereoscopic graphic on a graphical user interface
  • the receiving unit 620 is configured to receive a rotation operation instruction for the stereo graphic.
  • a transforming unit 630 configured to transform a viewing angle of the stereoscopic graphic display according to the rotating operation instruction
  • a first determining unit 640 configured to determine, in real time, a visible portion and an invisible portion of the bottom surface contour in the current viewing angle according to the change in the viewing angle of the stereoscopic graphic display;
  • a second determining unit 650 configured to determine a position of the contour bus in real time according to a change in a viewing angle of the stereoscopic graphic display
  • the display unit 610 is further configured to display the contour bus bar according to the position of the contour bus bar, and display the invisible portion of the bottom surface contour separately from other portions of the stereoscopic graphic contour.
  • the embodiment of the present invention determines the position of the bottom surface contour of the stereoscopic image in the visible portion and the invisible portion of the current viewing angle and the contour bus bar of the stereoscopic graphic in real time according to the change of the display viewing angle.
  • the display of the contour busbar of the stereoscopic graphics is more Intuitive, user experience is better.
  • the first determining unit 640 includes (not shown in FIG. 6): a node visibility determining subunit, a contour segment visibility determining subunit.
  • a node visibility determining subunit configured to determine visibility of each node on the bottom surface contour at a current viewing angle, the node being disposed on the bottom surface contour according to a preset interval, to divide the bottom surface contour into multiple Contour segment
  • a contour segment visibility determining subunit configured to determine that any of the contour segments is visible at a current viewing angle when both vertices of the contour segment are visible at a current viewing angle, and when the two vertices of the contour segment are at a current viewing angle When not all visible, it is judged that any of the contour segments are invisible at the current viewing angle.
  • the second determining unit 650 includes (not shown in FIG. 6): a node visibility determining subunit, a contour bus position determining subunit.
  • a node visibility determining subunit configured to determine visibility of each node on the bottom surface contour at a current viewing angle, the node being disposed on the bottom surface contour according to a preset interval, to divide the bottom surface contour into multiple Contour segment
  • a contour bus position determining subunit is configured to determine a line connecting the visible node adjacent to the invisible node and its corresponding point as the position of the contour bus.
  • the node visibility determination subunit includes (not shown in FIG. 6): a projection point determination subunit, a hit point determination subunit, an approximate coincidence condition determination subunit, a visibility determiner unit.
  • a projection point determining subunit configured to determine, by the projection matrix of the current perspective, a projection point of any node at a projection plane corresponding to the current perspective
  • a hit point determining subunit for determining a hit point of the projection point in the solid figure by a hit test provided by the three-dimensional engine
  • An approximate coincidence condition determining subunit configured to determine whether the hit point and the any of the nodes satisfy a preset approximate coincidence condition
  • a visibility determining subunit configured to determine, when the determination result of the approximate coincidence condition determining subunit is YES, that the node is visible at a current viewing angle, and when the approximate coincidence condition determining subunit is determined to be no At the time, it is determined that any of the nodes is invisible at the current perspective.
  • the approximate coincidence condition determining subunit is specifically configured to:
  • the display unit 610 is specifically configured to:
  • the invisible portion of the bottom surface contour is separately distinguished from the other portions of the solid figure contour by solid lines and broken lines;
  • the invisible portion of the bottom surface contour is displayed separately from the other portions of the solid figure contour with different gray levels.
  • the device embodiment since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the present application. Those of ordinary skill in the art can understand and implement without any creative effort.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Architecture (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

一种立体图形显示的方法、装置及电子设备,所述立体图形轮廓包括底面轮廓和轮廓母线,所述方法包括:在图形用户界面上显示立体图形(201);接收对立体图形的旋转操作指令(202);根据旋转操作指令变换立体图形显示的视角(203);随立体图形显示视角的变化,实时确定底面轮廓在当前视角的可见部分与不可见部分、以及轮廓母线的位置(204);根据轮廓母线的位置显示轮廓母线,并将底面轮廓的不可见部分与立体图形轮廓的其它部分区分显示(205)。应用该方法,通过实时确定立体图形底面轮廓的可见性以及轮廓母线位置,实现了在三维旋转操作过程中,对立体图形轮廓母线的显示及对底面轮廓的不可见部分与其它部分的区分显示,对立体图形的显示更直观,用户体验较好。

Description

一种立体图形显示的方法、装置及设备 技术领域
本申请涉及计算机技术领域,特别涉及立体图形显示的方法及装置。
背景技术
目前,在教学、绘图等场景中,往往会涉及立体图形轮廓的显示。在显示过程中,对于任一视角,我们所能看到的立体图形的轮廓常常用实线显示,被立体图形遮挡的我们看不到的轮廓常常用虚线显示。
现有技术中,通常以伪3D的方式来实现上述显示效果,即:在特定的视角下,以2D绘图的方式,手动绘制该视角下图形的轮廓。以图1所示的圆柱体为例,当以图中特定角度俯视圆柱体的上底面时,下底的弧线ABCDEF被圆柱体遮挡,此时用虚线绘制,同时母线AA’以及母线FF’用实线绘制以显示圆柱体的侧面轮廓。可见,现有技术只能以特定视角来区分显示立体图形的轮廓,无法实时变换不同视角下图形轮廓的可见性,用户体验较差。
发明内容
本发明实施例提供立体图形显示的方法、装置及设备,用于解决现有技术只能以特定视角显示立体图形的轮廓,用户体验较差的问题。
根据本发明实施例的第一方面,提供一种立体图形显示的方法,所述立体图形轮廓包括底面轮廓和轮廓母线,所述方法包括:
在图形用户界面上显示所述立体图形;
接收对所述立体图形的旋转操作指令;
根据所述旋转操作指令变换所述立体图形显示的视角;
随所述立体图形显示视角的变化,实时确定所述底面轮廓在当前视角的可见部分与不可见部分、以及所述轮廓母线的位置;
根据所述轮廓母线的位置显示所述轮廓母线,并将所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示。
根据本发明实施例的第二方面,提供一种立体图形显示的装置,所述立体图形轮廓包括 底面轮廓和轮廓母线,所述装置包括:
显示单元,用于在图形用户界面上显示所述立体图形;
接收单元,用于接收对所述立体图形的旋转操作指令;
变换单元,用于根据所述旋转操作指令变换所述立体图形显示的视角;
第一确定单元,用于随所述立体图形显示视角的变化,实时确定所述底面轮廓在当前视角的可见部分与不可见部分;
第二确定单元,用于随所述立体图形显示视角的变化,实时确定所述轮廓母线的位置;
所述显示单元,还用于根据所述轮廓母线的位置显示所述轮廓母线,并将所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示。
根据本发明实施例的第三方面,提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现以下步骤:
在图形用户界面上显示所述立体图形;
接收对所述立体图形的旋转操作指令;
根据所述旋转操作指令变换所述立体图形显示的视角;
随所述立体图形显示视角的变化,实时确定所述立体图形的底面轮廓在当前视角的可见部分与不可见部分、以及所述立体图形的轮廓母线的位置;
根据所述轮廓母线的位置显示所述轮廓母线,并将所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示。
由以上技术方案可见,本发明实施例根据显示视角的变化,实时确定立体图形的底面轮廓在当前视角的可见部分与不可见部分以及立体图形的轮廓母线的位置。实现了在三维旋转操作的任一显示视角中,对立体图形的轮廓母线的显示,以及对立体图形底面轮廓的不可见部分与立体图形轮廓的其它部分的区分显示,其对立体图形的显示更直观,用户体验较好。
附图说明
图1为一圆柱体在特定视角的透视图;
图2为本发明立体图形显示的方法的一个实施例流程图;
图3为本发明立体图形显示的方法的另一个实施例流程图;
图4为一圆柱体在特定视角的另一透视图;
图5为本发明立体图形显示的装置所在设备的一种硬件结构图;
图6为本发明立体图形显示的装置的一个实施例框图。
具体实施方式
为了使本技术领域的人员更好的理解本发明实施例中的技术方案,并使本发明实施例的上述目的、特征和优点能够更加明显易懂,下面结合附图对本发明实施例中的技术方案作进一步详细的说明。
参见图2,图2为本发明立体图形显示的方法的一个实施例流程图,所述立体图形轮廓包括底面轮廓和轮廓母线,所述方法包括以下步骤:
步骤201:在图形用户界面上显示所述立体图形。
本步骤中,上述立体图形可以是圆柱、圆锥以及圆台。
步骤202:接收对所述立体图形的旋转操作指令。
步骤203:根据所述旋转操作指令变换所述立体图形显示的视角。
步骤204:随所述立体图形显示视角的变化,实时确定所述底面轮廓在当前视角的可见部分与不可见部分、以及所述轮廓母线的位置。
在一个可选的例子中,可以预先在上述底面轮廓上按照固定的间隔设置节点,所述节点可将底面轮廓划分为多个轮廓段。如果任一轮廓段两顶点在当前视角均为可见,则判断所述任一轮廓段在当前视角为可见,如果所述任一轮廓段两顶点在当前视角不均为可见,则判断所述任一轮廓段在当前视角为不可见。需要指出的是,上述用于设置节点的固定间隔决定了节点设置的密度,在考虑显示设备图像处理性能的情况下,这个固定间隔应尽量小,一个通常的值为10个像素点。
其中,对上述节点在当前视角可见性判断可以借助当前视角的投影矩阵以及三维引擎提供的命中测试来实现,具体的执行方式可以包括:通过当前视角的投影矩阵,确定上述节点在当前视角所对应投影平面的投影点;通过三维引擎提供的命中测试,确定上述投影点在上述立体图形中的命中点;判断上述命中点与上述节点是否满足预设的近似重合条件;如果是,则判断上述节点在当前视角为可见,如果否,则判断上述节点在当前视角为不可见。
其中,预设的近似重合条件可以是关于命中点与节点在立体图形中距离的一个预设阈值,当命中点与节点在立体图形中的距离小于这个预设阈值时则判定命中点与节点近似重合;预设的近似重合条件也可以是关于命中点与节点在立体图形中的三维坐标的预设误差,当命中点的三维坐标与节点的三维坐标在任一维度的误差小于这个预设误差时则判定命中点与节点近似重合。
需要指出的是,上述关于距离的预设阈值应小于两相邻节点间的间隔距离;上述关于三维坐标的误差阈值,应小于两相邻节点间的坐标差。一个通常的关于距离的预设阈值为1个像素距离。
在另一个可选的例子中,可以将与所述不可见节点相邻的可见节点(以下简称转折节点)与其对应点的连线,确定为所述轮廓母线的位置。需要指出的是,对于圆锥这样仅有一个底面的立体图形,仅需确定圆锥底面的转折节点,该转折节点即为所述轮廓母线的位置,连接转折节点与圆锥的顶点即为所述轮廓母线,这里圆锥的顶点即为上述对应点。对于圆台或圆柱这样有两个底面的立体图形,需分别确定每个底面节点的可见性,若两个底面均存在转折节点,则可以通过从属于上下底面的转折节点来确定轮廓母线的位置,这里上下底面的转折节点互为上述对应点;若仅有一个底面存在转折节点,则可以在另一底面确定转折节点的对应点,连接转折节点及其对应点来确定轮廓母线的位置,其中,上述对应点的确定可以是通过做垂线的方式,以圆柱为例,假设圆柱的上底面完全可见,下底面存在转折节点,下底面转折节点在上底面的对应点的判断方法可以是:在下底面转折节点作该转折节点所在底面的垂线,判定该垂线与上底面的交点为该转折节点的对应点。
步骤205:根据所述轮廓母线的位置显示所述轮廓母线,并将所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示。
本步骤中,上述区分展示可以是:
分别用实线和虚线对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示;
或,分别用不同透明度对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示;
或,分别用不同灰度对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示,其中,上述灰度可以是同一颜色的不同灰度也可以是不同颜色的不同灰度;
或,分别用不同颜色对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分 显示;
或,分别用线条的不同粗细对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示。
由以上技术方案可见,本发明实施例根据显示视角的变化,实时确定立体图形的底面轮廓在当前视角的可见部分与不可见部分以及立体图形的轮廓母线的位置。实现了在三维旋转操作的任一显示视角中,对立体图形的轮廓母线的显示,以及对立体图形底面轮廓的不可见部分与立体图形轮廓的其它部分的区分显示,其对立体图形的显示更直观,用户体验较好。
参见图3,图3为本发明立体图形显示的方法的另一个实施例流程图,该实施例对立体图形轮廓的展示过程进行了详细说明,所述立体图形轮廓包括底面轮廓和轮廓母线,所述方法包括:
步骤301:在图形用户界面上显示该立体图形,接收对该立体图形的旋转操作指令并按上述指令变换上述立体图形的显示视角。
本步骤中,上述立体图形可以是圆柱、圆锥以及圆台。
步骤302:随该立体图形显示视角的变化,通过当前视角的投影矩阵,实时确定每一节点在当前视角所对应投影平面的投影点。
本步骤中,上述节点按照预设间隔设置在上述底面轮廓上,用以将上述底面轮廓划分为多个轮廓段。需要指出的是,上述用于设置节点的固定间隔决定了节点设置的密度,在考虑显示设备图像处理性能的情况下,这个固定间隔应尽量小,一个通常的值为10个像素点。
步骤303:通过三维引擎提供的命中测试,实时确定上述投影点在上述立体图形中的命中点。
下面,通过图4来介绍本步骤301和步骤302中投影平面,投影点,以及命中点的概念。图4中,点E是所示圆柱体预设节点中的一个节点(为便于说明,图4只列出了圆柱底面轮廓中的部分节点),按图中所示展示视角,此时E点为不可见点。点E1为所示圆柱体侧面上的一个点。如果将所示的圆柱体图像看做一个在当前视角的透视图,点E1在当前视角将遮挡点E,其中,上述透视图所在的二维平面即为上述投影平面,点E在该透视图(投影平面)的投影即为点E的投影点,点E1即为点E的投影点的命中点。
步骤304:实时计算上述节点与其对应命中点在立体图形中的距离是否小于预设距离阈值,如果是,则执行步骤305,如果否,则执行步骤306。
本步骤中,上述预设距离阈值可以是固定值;也可以是随立体图形大小变化而变化的一个动态值。需要指出的是,上述关于距离的预设阈值应小于两相邻节点间的间隔距离。一个通常的关于距离的预设阈值为1个像素距离。
步骤305:判定上述节点在当前视角为可见。
步骤306:判定上述节点在当前视角为不可见。
步骤307:将与上述不可见节点相邻的可见节点与其对应点的连线确定为上述轮廓母线的位置。
本步骤中,需要指出的是,如果上述立体图形是圆锥这样仅有一个底面的立体图形,仅需确定圆锥底面的转折节点,该转折节点即为所述轮廓母线的位置,连接转折节点与圆锥的顶点即为所述轮廓母线,这里圆锥的顶点即为上述对应点。
对于圆台或圆柱这样有两个底面的立体图形,需分别确定每个底面节点的可见性,若两个底面均存在转折节点,则可以通过从属于上下底面的转折节点来确定轮廓母线的位置,这里上下底面的转折节点互为上述对应点;若仅有一个底面存在转折节点,则可以在另一底面确定转折节点的对应点,连接转折节点及其对应点来确定轮廓母线的位置,其中,上述对应点的确定可以是通过做垂线的方式,以圆柱为例,假设圆柱的上底面完全可见,下底面存在转折节点,下底面转折节点在上底面的对应点的判断方法可以是:在下底面转折节点作该转折节点所在底面的垂线,判定该垂线与上底面的交点为该转折节点的对应点。
步骤308:判断任一组相邻节点在当前视角是否均为可见,如果是则执行步骤309,如果否则执行步骤310。
步骤309:判定上述任一组相邻节点间的轮廓段在当前视角为可见。
步骤310:判定上述任一组相邻节点间的轮廓段在当前视角为不可见。
步骤311:根据上述轮廓母线的位置显示上述轮廓母线,并分别用实线和虚线对上述底面轮廓的不可见部分与上述立体图形轮廓的其它部分区分显示。
本步骤中,上述区分展示可以是:
分别用实线和虚线对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示;
或,分别用不同透明度对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示;
或,分别用不同灰度对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示,其中,上述灰度可以是同一颜色的不同灰度也可以是不同颜色的不同灰度;
或,分别用不同颜色对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示;
或,分别用线条的不同粗细对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示。
在另一个可选的例子中,除了分别用实线和虚线对上述底面轮廓的不可见部分与上述立体图形轮廓的其它部分区分显示,当用户点击立体图形的任一表面时,还可以通过命中测试实现对用户点击的表面的判断,同时对用户点击的表面与立体图形的其它表面进行区分显示,以图4为例,具体可以包括以下步骤:
接收对图4所示圆柱体的点击操作指令;
通过三维引擎提供的命中测试,确定所述点击操作指令的点击点在所示圆柱体中的点击命中点为E1
在所示圆柱体的中,判断所述点击命中点E1所在的目标面为所示圆柱体的侧面;
将所示圆柱体的侧面进行着色显示。
由以上技术方案可见,本发明实施例根据显示视角的变化,实时确定立体图形的底面轮廓在当前视角的可见部分与不可见部分以及立体图形的轮廓母线的位置。实现了在三维旋转操作的任一显示视角中,对立体图形的轮廓母线的显示,以及对立体图形底面轮廓的不可见部分与立体图形轮廓的其它部分的区分显示,其对立体图形的显示更直观,用户体验较好。
下面通过一个具体的应用实例对本发明实施例进行说明,该应用实例结合图4示出的圆柱体进行描述,其中,假设所示圆柱体可沿任意方向移动或任意轴旋转,需要实时用实线显示其可见轮廓,用虚线显示其不可见轮廓。显示过程如下:
在上述底面轮廓上按照10个像素点的固定的间隔设置节点,所述节点可将底面轮廓划分为多个轮廓段;
在图形用户界面上显示上述圆柱体,接收对该圆柱体的旋转操作指令,根据上述旋转操作指令变换该圆柱体显示的视角;
随所述圆柱体展示视角的变化,通过当前视角的投影矩阵M,实时确定所示圆柱体每一节点在当前视角所对应投影平面的投影点,以图4所示视角以及顶点E为例,其投影点可表 示为E*M;
通过三维引擎(WPF Media3D)提供的命中测试,实时确定所示圆柱体每一节点在当前视角投影点的命中点,以图4所示视角以及投影点E*M为例,通过命中测试,投影点E*M在所述立体图形中的三维命中点为E1
实时、分别计算所示圆柱体每一节点与其对应命中点在所述立体图形中的像素距离是否小于1个像素,若是则判定所述顶点在当前视角为不可见,若否则判定所述顶点在当前视角为可见,以图4所示视角以及顶点E为例,计算EE1的像素距离,在判断EE1的像素距离小于1像素后,所以判定点H为不可见点;
根据所示圆柱体上各节点在当前视角的可见性,分别在圆柱体上底面或下底面判断出与不可见节点相邻的可见节点(以下简称转折节点),确定所示圆柱体在当前视角的轮廓母线,以图4所示视角为例,此时上底面所有节点可见,不存在转折节点,下底面转折节点为F和A,在点F和点A作下底面的垂线1和垂线2,找到垂线1和垂线2分别与上底面的交点F’及A’,F’F以及A’A即为所示圆柱体在当前视角的轮廓母线。
判断每一组相邻节点在当前视角是否均为可见,若是则判定上述任一组相邻节点间的轮廓段在当前视角为可见,若否则判定上述任一组相邻节点间的轮廓段在当前视角为不可见。以图4所示视角以及所示圆柱体的下底面为例,处于弧线ABCDEF间的轮廓段为不可见轮廓段,处于弧线FGHIJA间的轮廓段为可见轮廓;
实时显示所确定的轮廓母线,以图4所示视角为例,此时显示上述轮廓母线F’F以及A’A;
实时、分别用实线和虚线对上述底面轮廓的不可见部分与上述立体图形轮廓的其它部分区分显示,以图4所示视角以及所示圆柱体的下底面为例,弧线FGHIJA以实线显示,弧线ABCDEF以虚线显示。
与前述立体图形显示的方法的实施例相对应,本申请还提供了立体图形显示的装置的实施例。
本申请立体图形显示的装置的实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在设备的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图5所示,为本申请立体图形显示的装置所在设备的一种硬件结构图,除了图5所示的处理器、内存、网络接口、以及非易失性存储器之外,实施例中装置所在的设备通常根据该设备的实际功能,还可以包括其他硬件,对此不再赘述。
请参考图6,为本发明立体图形显示的装置的一个实施例框图,所述立体图形轮廓包括底面轮廓和轮廓母线,所述装置包括:显示单元610,接收单元620,变换单元630,第一确定单元640,第二确定单元650。
显示单元610,用于在图形用户界面上显示所述立体图形;
接收单元620,用于接收对所述立体图形的旋转操作指令;
变换单元630,用于根据所述旋转操作指令变换所述立体图形显示的视角;
第一确定单元640,用于随所述立体图形显示视角的变化,实时确定所述底面轮廓在当前视角的可见部分与不可见部分;
第二确定单元650,用于随所述立体图形显示视角的变化,实时确定所述轮廓母线的位置;
所述显示单元610,还用于根据所述轮廓母线的位置显示所述轮廓母线,并将所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示。
由以上技术方案可见,本发明实施例根据显示视角的变化,实时确定立体图形的底面轮廓在当前视角的可见部分与不可见部分以及立体图形的轮廓母线的位置。实现了在三维旋转操作的任一显示视角中,对立体图形的轮廓母线的显示,以及对立体图形底面轮廓的不可见部分与立体图形轮廓的其它部分的区分显示,其对立体图形的显示更直观,用户体验较好。
在一个可选的例子中,所述第一确定单元640包括(图6中未示出):节点可见性确定子单元,轮廓段可见性判断子单元。
节点可见性确定子单元,用于确定所述底面轮廓上每一节点在当前视角的可见性,所述节点按照预设间隔设置在所述底面轮廓上,用以将所述底面轮廓划分为多个轮廓段;
轮廓段可见性判断子单元,用于当任一轮廓段两顶点在当前视角均为可见时,判断所述任一轮廓段在当前视角为可见,当所述任一轮廓段两顶点在当前视角不均为可见时,判断所述任一轮廓段在当前视角为不可见。
在另一个可选的例子中,所述第二确定单元650包括(图6中未示出):节点可见性确定子单元,轮廓母线位置确定子单元。
节点可见性确定子单元,用于确定所述底面轮廓上每一节点在当前视角的可见性,所述节点按照预设间隔设置在所述底面轮廓上,用以将所述底面轮廓划分为多个轮廓段;
轮廓母线位置确定子单元,用于将与所述不可见节点相邻的可见节点与其对应点的连线确定为所述轮廓母线的位置。
在另一个可选的例子中,所述节点可见性确定子单元包括(图6中未示出):投影点确定子单元,命中点确定子单元,近似重合条件判断子单元,可见性判定子单元。
投影点确定子单元,用于通过当前视角的投影矩阵,确定任一节点在当前视角所对应投影平面的投影点;
命中点确定子单元,用于通过三维引擎提供的命中测试,确定所述投影点在所述立体图形中的命中点;
近似重合条件判断子单元,用于判断所述命中点与所述任一节点是否满足预设的近似重合条件;
可见性判定子单元,用于当所述近似重合条件判断子单元的判断结果为是时,判定所述任一节点在当前视角为可见,当所述近似重合条件判断子单元的判断结果为否时,判定所述任一节点在当前视角为不可见。
在另一个可选的例子中,所述近似重合条件判断子单元,具体用于:
通过计算所述任一节点与所述命中点在所述立体图形中的距离,判断所述命中点与所述任一节点是否满足预设的近似重合条件;
或,
通过计算所述任一节点与所述命中点在所述立体图形中的坐标差,判断所述命中点与所述任一节点是否满足预设的近似重合条件。
在另一个可选的例子中,所述显示单元610,具体用于:
分别用实线和虚线对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示;
或,
分别用不同透明度对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示;
或,
分别用不同灰度对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示。
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现 过程,在此不再赘述。
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。

Claims (14)

  1. 一种立体图形显示的方法,其特征在于,所述立体图形轮廓包括底面轮廓和轮廓母线,所述方法包括:
    在图形用户界面上显示所述立体图形;
    接收对所述立体图形的旋转操作指令;
    根据所述旋转操作指令变换所述立体图形显示的视角;
    随所述立体图形显示视角的变化,实时确定所述底面轮廓在当前视角的可见部分与不可见部分、以及所述轮廓母线的位置;
    根据所述轮廓母线的位置显示所述轮廓母线,并将所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示。
  2. 根据权利要求1所述的方法,其特征在于,所述确定所述底面轮廓在当前视角的可见部分与不可见部分,包括:
    确定所述底面轮廓上每一节点在当前视角的可见性,所述节点按照预设间隔设置在所述底面轮廓上,用以将所述底面轮廓划分为多个轮廓段;
    如果任一轮廓段两顶点在当前视角均为可见,则判断所述任一轮廓段在当前视角为可见,如果所述任一轮廓段两顶点在当前视角不均为可见,则判断所述任一轮廓段在当前视角为不可见。
  3. 据权利要求1所述的方法,其特征在于,所述确定所述轮廓母线的位置,包括:
    确定所述底面轮廓上每一节点在当前视角的可见性,所述节点按照预设间隔设置在所述底面轮廓上,用以将所述底面轮廓划分为多个轮廓段;
    将与所述不可见节点相邻的可见节点与其对应点的连线确定为所述轮廓母线的位置。
  4. 根据权利要求1所述的方法,其特征在于,还包括:
    接收对所述立体图形的点击操作指令;
    通过三维引擎提供的命中测试,确定所述点击操作指令的点击点在所述立体图形中的点击命中点;
    在所述立体图形中,判断所述点击命中点所在的目标面;
    将所述目标面与所述立体图形的其它表面区分显示。
  5. 根据权利要求2或3所述的方法,其特征在于,所述确定所述底面轮廓上每一节点在当前视角的可见性,包括:
    对任一节点:
    通过当前视角的投影矩阵,确定所述任一节点在当前视角所对应投影平面的投影点;
    通过三维引擎提供的命中测试,确定所述投影点在所述立体图形中的命中点;
    判断所述命中点与所述任一节点是否满足预设的近似重合条件;
    如果是,则判断所述任一节点在当前视角为可见,如果否,则判断所述任一节点在当前视角为不可见。
  6. 根据权利要求5所述的方法,其特征在于,所述判断所述命中点与所述任一节点是否满足预设的近似重合条件,包括:
    通过计算所述任一节点与所述命中点在所述立体图形中的距离,判断所述命中点与所述任一节点是否满足预设的近似重合条件;
    或,
    通过计算所述任一节点与所述命中点在所述立体图形中的坐标差,判断所述命中点与所述任一节点是否满足预设的近似重合条件。
  7. 根据权利要求1所述的方法,其特征在于,所述将所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示,包括:
    分别用实线和虚线对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示;
    或,
    分别用不同透明度对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示;
    或,
    分别用不同灰度对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示。
  8. 一种立体图形显示的装置,其特征在于,所述立体图形轮廓包括底面轮廓和轮廓母线,所述装置包括:
    显示单元,用于在图形用户界面上显示所述立体图形;
    接收单元,用于接收对所述立体图形的旋转操作指令;
    变换单元,用于根据所述旋转操作指令变换所述立体图形显示的视角;
    第一确定单元,用于随所述立体图形显示视角的变化,实时确定所述底面轮廓在当前视角的可见部分与不可见部分;
    第二确定单元,用于随所述立体图形显示视角的变化,实时确定所述轮廓母线的位置;
    所述显示单元,还用于根据所述轮廓母线的位置显示所述轮廓母线,并将所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示。
  9. 根据权利要求8所述的装置,其特征在于,所述第一确定单元,包括:
    节点可见性确定子单元,用于确定所述底面轮廓上每一节点在当前视角的可见性,所述节点按照预设间隔设置在所述底面轮廓上,用以将所述底面轮廓划分为多个轮廓段;
    轮廓段可见性判断子单元,用于当任一轮廓段两顶点在当前视角均为可见时,判断所述任一轮廓段在当前视角为可见,当所述任一轮廓段两顶点在当前视角不均为可见时,判断所述任一轮廓段在当前视角为不可见。
  10. 根据权利要求8所述的装置,其特征在于,所述第二确定单元,包括:
    节点可见性确定子单元,用于确定所述底面轮廓上每一节点在当前视角的可见性,所述节点按照预设间隔设置在所述底面轮廓上,用以将所述底面轮廓划分为多个轮廓段;
    轮廓母线位置确定子单元,用于将与所述不可见节点相邻的可见节点与其对应点的连线确定为所述轮廓母线的位置。
  11. 根据权利要求9或10所述的装置,其特征在于,所述节点可见性确定子单元,包括:
    投影点确定子单元,用于通过当前视角的投影矩阵,确定任一节点在当前视角所对应投影平面的投影点;
    命中点确定子单元,用于通过三维引擎提供的命中测试,确定所述投影点在所述立体图形中的命中点;
    近似重合条件判断子单元,用于判断所述命中点与所述任一节点是否满足预设的近似重合条件;
    可见性判定子单元,用于当所述近似重合条件判断子单元的判断结果为是时,判定所述任一节点在当前视角为可见,当所述近似重合条件判断子单元的判断结果为否时,判定所述任一节点在当前视角为不可见。
  12. 根据权利要求11所述的装置,其特征在于,所述近似重合条件判断子单元,具体用于:
    通过计算所述任一节点与所述命中点在所述立体图形中的距离,判断所述命中点与所述任一节点是否满足预设的近似重合条件;
    或,
    通过计算所述任一节点与所述命中点在所述立体图形中的坐标差,判断所述命中点与所述任一节点是否满足预设的近似重合条件。
  13. 根据权利要求8所述的装置,其特征在于,所述显示单元,具体用于:
    分别用实线和虚线对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示;
    或,
    分别用不同透明度对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示;
    或,
    分别用不同灰度对所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示。
  14. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现以下步骤:
    在图形用户界面上显示所述立体图形;
    接收对所述立体图形的旋转操作指令;
    根据所述旋转操作指令变换所述立体图形显示的视角;
    随所述立体图形显示视角的变化,实时确定所述立体图形的底面轮廓在当前视角的可见部分与不可见部分、以及所述立体图形的轮廓母线的位置;
    根据所述轮廓母线的位置显示所述轮廓母线,并将所述底面轮廓的不可见部分与所述立体图形轮廓的其它部分区分显示。
PCT/CN2017/104870 2017-05-04 2017-09-30 一种立体图形显示的方法、装置及设备 Ceased WO2018201664A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710309322.8 2017-05-04
CN201710309322.8A CN107239187B (zh) 2017-05-04 2017-05-04 一种立体图形显示的方法、装置及设备

Publications (1)

Publication Number Publication Date
WO2018201664A1 true WO2018201664A1 (zh) 2018-11-08

Family

ID=59985458

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/104870 Ceased WO2018201664A1 (zh) 2017-05-04 2017-09-30 一种立体图形显示的方法、装置及设备

Country Status (2)

Country Link
CN (1) CN107239187B (zh)
WO (1) WO2018201664A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107798715B (zh) * 2017-10-19 2020-12-29 广州视睿电子科技有限公司 立体图形的对齐吸附方法、装置、计算机设备及存储介质
CN107992253B (zh) * 2017-11-28 2021-01-19 广州视源电子科技股份有限公司 组合立体图形显示状态的调控方法、装置及计算机设备
CN109976614B (zh) * 2019-03-28 2021-04-06 广州视源电子科技股份有限公司 一种立体图形的标注方法、装置、设备及介质
CN110262734A (zh) * 2019-06-19 2019-09-20 北京比利信息技术有限公司 基于智能显示终端的3d交互方法
CN112130712B (zh) * 2019-06-24 2022-04-01 上海博泰悦臻网络技术服务有限公司 一种立方体交互方法及系统、可读存储介质、车机

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1687970A (zh) * 2005-04-27 2005-10-26 蔡涛 三维图像体重建部分体选择的交互控制方法
CN101719057A (zh) * 2009-11-27 2010-06-02 广东威创视讯科技股份有限公司 绘制几何图形的方法及装置
US20140085412A1 (en) * 2011-04-25 2014-03-27 Mitsuo Hayashi Omnidirectional image editing program and omnidirectional image editing apparatus
CN104715452A (zh) * 2013-12-12 2015-06-17 鸿合科技有限公司 正棱柱平面显示方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1687970A (zh) * 2005-04-27 2005-10-26 蔡涛 三维图像体重建部分体选择的交互控制方法
CN101719057A (zh) * 2009-11-27 2010-06-02 广东威创视讯科技股份有限公司 绘制几何图形的方法及装置
US20140085412A1 (en) * 2011-04-25 2014-03-27 Mitsuo Hayashi Omnidirectional image editing program and omnidirectional image editing apparatus
CN104715452A (zh) * 2013-12-12 2015-06-17 鸿合科技有限公司 正棱柱平面显示方法及装置

Also Published As

Publication number Publication date
CN107239187B (zh) 2020-02-21
CN107239187A (zh) 2017-10-10

Similar Documents

Publication Publication Date Title
US11842438B2 (en) Method and terminal device for determining occluded area of virtual object
CN113424224B (zh) 识别并保留优选点的合并点云的方法
WO2018201664A1 (zh) 一种立体图形显示的方法、装置及设备
US20220358694A1 (en) Method and apparatus for generating a floor plan
CN114450717A (zh) 用于增强现实应用的遮挡和碰撞检测
CN108919954B (zh) 一种动态变化场景虚实物体碰撞交互方法
KR20130043663A (ko) 3-d 모델 뷰 조작 장치
CN105825499A (zh) 基准平面的确定方法和确定系统
CN107015654A (zh) 基于增强现实的导航方法及装置
US8896598B2 (en) System and associated methodology for three-dimensional rendering of data containing clipping shapes
EP3594906B1 (en) Method and device for providing augmented reality, and computer program
CN113096254B (zh) 目标物渲染方法及装置、计算机设备和介质
US10460500B1 (en) Glyph rendering in three-dimensional space
CN106570923A (zh) 一种画面渲染方法及装置
CN110209325A (zh) 一种3d场景显示控制方法、系统及设备
KR20110088995A (ko) 3차원 모델 안에서 감시 카메라 영상을 시각화하기 위한 방법 및 시스템, 및 기록 매체
CN106934764A (zh) 一种图像数据处理方法、装置
CN115103134B (zh) 一种led虚拟拍摄切割合成方法
WO2018201663A1 (zh) 一种立体图形显示的方法、装置及设备
JP2001148028A (ja) 図形表示装置及びその方法
US10109102B2 (en) Rendering an infinite plane
JP7455546B2 (ja) 画像処理装置、画像処理方法、及びプログラム
CN107526563B (zh) 三维图形的显示方法、装置、设备及存储介质
CN113223149B (zh) 三维模型纹理生成方法、装置、设备及存储介质
CN119888056A (zh) 投影贴花方法、装置、电子设备及存储介质

Legal Events

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

Ref document number: 17908482

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10.07.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17908482

Country of ref document: EP

Kind code of ref document: A1