CN108171804B - Method and device for determining three-dimensional model sectioning plane - Google Patents

Method and device for determining three-dimensional model sectioning plane Download PDF

Info

Publication number
CN108171804B
CN108171804B CN201711342571.3A CN201711342571A CN108171804B CN 108171804 B CN108171804 B CN 108171804B CN 201711342571 A CN201711342571 A CN 201711342571A CN 108171804 B CN108171804 B CN 108171804B
Authority
CN
China
Prior art keywords
plane
dimensional model
sectioning
determining
normal vector
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711342571.3A
Other languages
Chinese (zh)
Other versions
CN108171804A (en
Inventor
魏朝凌
冉体松
徐琛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Bimernet Technology Co ltd
Original Assignee
Shenzhen Bimernet Technology 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 Shenzhen Bimernet Technology Co ltd filed Critical Shenzhen Bimernet Technology Co ltd
Priority to CN201711342571.3A priority Critical patent/CN108171804B/en
Publication of CN108171804A publication Critical patent/CN108171804A/en
Application granted granted Critical
Publication of CN108171804B publication Critical patent/CN108171804B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Abstract

The invention discloses a method and a device for determining a three-dimensional model cutting plane, relates to the technical field of drawing, and mainly aims to solve the problems that when the section of a three-dimensional model is drawn at a web port in the prior art, the specific position needing cutting cannot be accurately indicated when a mouse is dragged, and the normal vector in a single direction cannot meet the requirements of a user on the cutting planes of the three-dimensional model in different directions. The main technical scheme is as follows: after a user selects a construction plane of a three-dimensional model to be cut and starts cutting operation, determining normal vector parameters in any direction according to a click event triggered by the user, wherein the click event carries the normal vector direction of the plane to be cut of the three-dimensional model; determining a displacement parameter according to the received moving distance; and establishing a sectioning plane equation according to the normal vector parameters and the displacement parameters, generating a three-dimensional model sectioning plane according to the sectioning plane equation, and displaying.

Description

Method and device for determining three-dimensional model sectioning plane
Technical Field
The invention relates to the technical field of drawing, in particular to a method and a device for determining a three-dimensional model sectioning plane.
Background
With the continuous development of internet technology, the combination of web end and applications in different industries is more and more common. In the method, a browsing engineering model for realizing light weight by using a web end becomes a common drawing means for working technicians, so that a cutting plane of an engineering three-dimensional model is browsed.
At present, the existing cross section drawing of a three-dimensional model on a web port is to establish normal vectors in six directions of + x, -x, + y, -y, + z and-z and then construct a corresponding cutting plane according to the position of a user dragging a mouse, but because the specific position needing to be cut cannot be accurately indicated when the mouse is dragged, and the normal vector in a single direction cannot meet the requirements of the user on the cutting planes of the three-dimensional model in different directions, the research and analysis of the three-dimensional model are influenced, and the accuracy of the cutting plane of the three-dimensional model is reduced.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for determining a three-dimensional model cutting plane, and mainly aims to solve the problems that when a web port draws a section of a three-dimensional model, a specific position to be cut cannot be accurately indicated when a mouse is dragged, and a normal vector in a single direction cannot meet the requirements of a user on the three-dimensional model cutting planes in different directions, so that research and analysis on the three-dimensional model are influenced, and the accuracy of the three-dimensional model cutting plane is reduced.
According to an aspect of the present invention, there is provided a method for determining a cutting plane of a three-dimensional model, including:
after a user selects a construction plane of a three-dimensional model to be cut and starts cutting operation, determining normal vector parameters in any direction according to a click event triggered by the user, wherein the click event carries the normal vector direction of the plane to be cut of the three-dimensional model;
determining a displacement parameter according to the received moving distance;
and establishing a sectioning plane equation according to the normal vector parameters and the displacement parameters, generating a three-dimensional model sectioning plane according to the sectioning plane equation, and displaying.
Further, the determining a displacement parameter according to the received moving distance includes:
receiving a moving distance input by a user through a digital frame to determine a displacement parameter; and/or the presence of a gas in the gas,
and determining a displacement parameter according to a dragging event triggered by a user, wherein the dragging event carries a moving distance with a preset distance interval.
Further, after the user selects a construction plane of the three-dimensional model to be cut and starts cutting operation, the determining of normal vector parameters in any direction according to the click event triggered by the user comprises:
after a user selects a construction plane of a three-dimensional model to be sectioned and starts sectioning operation, calculating normal vector parameters of each display plane in the three-dimensional model respectively, and configuring trigger events corresponding to the directions of the normal vector parameters respectively;
and selecting a plane to be cut of the three-dimensional model according to a click event triggered by a user, and marking and displaying the plane.
Further, before determining the displacement parameter according to the received moving distance, the method further includes:
and configuring a reference coordinate system according to a preset position of the three-dimensional model to be cut in the building plane, and configuring a preset distance interval according to the attribute parameters of the three-dimensional model.
Further, the establishing a sectioning plane equation according to the normal vector parameter and the displacement parameter, generating a three-dimensional model sectioning plane according to the sectioning plane equation, and displaying the sectioning plane comprises:
and establishing a sectioning plane equation according to the normal vector parameters and the displacement parameters, and performing coloring display on a plane corresponding to the sectioning plane equation through a preset coloring device until a user determines a final sectioning plane according to the displacement parameters and storing the final sectioning plane.
Further, a sectioning plane equation is established according to the normal vector parameters and the displacement parameters, a three-dimensional model sectioning plane is generated according to the sectioning plane equation, and after the three-dimensional model sectioning plane is displayed, the method further comprises the following steps:
and acquiring all three-dimensional model sectioning planes generated in the construction plane, and combining and displaying the three-dimensional model sectioning planes selected by the user.
Further, the acquiring all three-dimensional model sectioning planes generated in the construction plane, and displaying the three-dimensional model sectioning planes selected by the user in a combined manner includes:
and determining the intersection point of the generated three-dimensional model sectioning plane selected by the user and the grid of the construction plane, generating a filling surface according to the closed area after the intersection point is connected, and displaying the filling surface.
According to an aspect of the present invention, there is provided an apparatus for determining a cutting plane of a three-dimensional model, comprising:
the device comprises a first determining unit, a second determining unit and a control unit, wherein the first determining unit is used for determining normal vector parameters in any direction according to a click event triggered by a user after the user selects a construction plane of a three-dimensional model to be cut and starts cutting operation, and the click event carries the normal vector direction of the plane to be cut of the three-dimensional model;
the second determining unit is used for determining the displacement parameter according to the received moving distance;
and the generating unit is used for establishing a sectioning plane equation according to the normal vector parameters and the displacement parameters, generating a three-dimensional model sectioning plane according to the sectioning plane equation and displaying the three-dimensional model sectioning plane.
Further, the second determination unit includes:
the first determining module is used for receiving the moving distance input by the user through the digital frame to determine a displacement parameter; and/or the presence of a gas in the gas,
and the second determining module is used for determining the displacement parameter according to a dragging event triggered by a user, wherein the dragging event carries a moving distance with a preset distance interval.
Further, the first determination unit includes:
the calculation module is used for respectively calculating normal vector parameters of all display planes in the three-dimensional model after a user selects a construction plane of the three-dimensional model to be cut and starts cutting operation, and configuring trigger events corresponding to the directions of the normal vector parameters;
and the selection module is used for selecting the plane to be cut of the three-dimensional model according to the click event triggered by the user and displaying the mark.
Further, the apparatus further comprises:
and the configuration unit is used for configuring a reference coordinate system at a preset position of the three-dimensional model to be cut in the building plane and configuring a preset distance interval according to the attribute parameters of the three-dimensional model.
Further, the generating unit is specifically configured to establish a sectioning plane equation according to the normal vector parameter and the displacement parameter, and color and display a plane corresponding to the sectioning plane equation through a preset color shader until a user determines a final sectioning plane according to the displacement parameter, and store the final sectioning plane.
Further, the apparatus further comprises:
and the display unit is used for acquiring all three-dimensional model sectioning planes generated in the construction plane and combining and displaying the three-dimensional model sectioning planes selected by the user.
Further, the display unit is specifically configured to determine an intersection point of a generated three-dimensional model sectioning plane selected by a user and a grid of the building plane, generate a filling surface according to a closed region after the intersection point is connected, and display the filling surface.
According to a further aspect of the present invention, there is provided a storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to execute operations corresponding to the method for determining a plane of section of a three-dimensional model as described above.
According to still another aspect of the present invention, there is provided a terminal including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the determination method of the three-dimensional model cutting plane.
By the technical scheme, the technical scheme provided by the embodiment of the invention at least has the following advantages:
the invention provides a method and a device for determining a sectioning plane of a three-dimensional model, which are characterized in that firstly, after a user selects a construction plane of the three-dimensional model to be sectioned and starts sectioning operation, normal vector parameters in any direction are determined according to a click event triggered by the user, the click event carries the normal vector direction of the plane to be sectioned of the three-dimensional model, then, displacement parameters are determined according to a received moving distance, a sectioning plane equation is established according to the normal vector parameters and the displacement parameters, and the sectioning plane of the three-dimensional model is generated according to the sectioning plane equation and displayed. Compared with the prior art that when the section of the three-dimensional model is drawn on the web end, the specific position needing to be cut can not be accurately indicated when the mouse is dragged, and the normal vector in a single direction can not meet the requirements of a user on the cutting planes of the three-dimensional model in different directions, the embodiment of the invention establishes the cutting plane equation according to the normal vector parameter and the displacement parameter in any direction input by the user, and then generates the corresponding cutting plane, thereby realizing the display of the cutting plane in any direction and improving the display diversity of the cutting plane.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart of a method for determining a cutting plane of a three-dimensional model according to an embodiment of the invention;
FIG. 2 is a flow chart of another method for determining a sectioning plane of a three-dimensional model according to an embodiment of the present invention;
FIG. 3 is a first schematic sectional plane view of a three-dimensional model provided by an embodiment of the invention;
FIG. 4 is a schematic diagram of a cross-sectional plane of a three-dimensional model according to an embodiment of the present invention;
fig. 5 is a block diagram illustrating a device for determining a cutting plane of a three-dimensional model according to an embodiment of the present invention;
FIG. 6 is a block diagram of another device for determining a cutting plane of a three-dimensional model according to an embodiment of the present invention;
fig. 7 shows a schematic diagram of a terminal according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The embodiment of the invention provides a method for determining a sectioning plane of a three-dimensional model, which comprises the following steps of:
101. and after the user selects a construction plane of the three-dimensional model to be cut and starts cutting operation, determining normal vector parameters in any direction according to a click event triggered by the user.
The click event carries the normal vector direction of the plane to be cut of the three-dimensional model, the construction plane of the three-dimensional model to be cut is the only plane determined from the multiple display directions of the three-dimensional model when the three-dimensional model is cut, and the construction plane is used as the front view direction of the three-dimensional model. Since a user can select any one surface of a three-dimensional model in a building plane to click a mouse according to the self requirement, for example, a slope in each direction triggers a click event, so as to determine the normal vector direction of the plane, generally, in a three-dimensional drawing application, the three-dimensional model can be displayed in a space with ± x, ± y, ± z coordinates, therefore, the normal vector direction carried in the click event triggered by the user can determine only one normal vector parameter, for example, (2, 3, 4), and the embodiment of the present invention is not particularly limited.
It should be noted that the three-dimensional model in the embodiment of the present invention is built by engineering simulation software based on a web end, and the basic codes of the steps in the embodiment of the present invention are configured in the engineering model software, such as Building Information Model (BIM) software, in an open compiling manner, and the embodiment of the present invention is not limited specifically.
102. And determining a displacement parameter according to the received moving distance.
The moving distance is a distance at which the user moves in the determined normal vector direction to determine the position of the sectioning plane, and the received moving distance may include a moving distance obtained by dragging by the user through a mouse, or may be a specific moving distance value input by the user.
It should be noted that, since the determined normal vector can be displayed in the perspective view of the three-dimensional model, when the user inputs the movement distance, i.e. moves according to the direction of the normal vector, or inputs the movement distance value in the direction of the normal vector, so as to determine the displacement parameter.
103. And establishing a sectioning plane equation according to the normal vector parameters and the displacement parameters, generating a three-dimensional model sectioning plane according to the sectioning plane equation, and displaying.
The sectioning plane equation is a plane equation established according to a functional relation between normal vector parameters and displacement parameters, and the specific sectioning plane equation is as follows: and ax + by + cz + d is 0, wherein a is a normal vector parameter in the x-axis direction, b is a normal vector parameter in the y-axis direction, c is a normal vector parameter in the z-axis direction, and d is a moving distance after the normal vector is determined.
The invention provides a method for determining a sectioning plane of a three-dimensional model, which is characterized in that compared with the prior method that when the section of the three-dimensional model is drawn at a web port, the specific position to be sectioned cannot be accurately indicated when a mouse is dragged, and the normal vector in a single direction cannot meet the requirements of a user on sectioning planes of the three-dimensional model in different directions, the method provided by the embodiment of the invention establishes a sectioning plane equation according to normal vector parameters and displacement parameters in any direction input by the user, and then generates a corresponding sectioning plane, thereby realizing the display of the sectioning plane in any direction and improving the display diversity of the sectioning plane.
The embodiment of the invention provides another method for determining a sectioning plane of a three-dimensional model, as shown in fig. 2, the method comprises the following steps:
201. when a user selects a construction plane of a three-dimensional model to be sectioned and starts sectioning operation, normal vector parameters of each display plane in the three-dimensional model are respectively calculated, and trigger events corresponding to the directions of the normal vector parameters are configured.
For the embodiment of the invention, in order to facilitate the user to determine which plane of the planes of the three-dimensional model is the plane to be cut, and to provide the normal vector of each plane of the three-dimensional model for the user to select conveniently, the normal vector parameters of each plane of the selected three-dimensional model need to be performed in advance. For example, as shown in fig. 3, if the center of the three-dimensional model is taken as the origin of the three-dimensional space coordinate system, the parameter of the normal vector of the upper plane is (a, 0, 0), and the embodiment of the present invention is not limited specifically.
It should be noted that, in order to enable a user to select directions of normal vectors of different planes as directions of normal vectors of a cutting plane through movement of a mouse, a corresponding trigger event is configured for a normal vector parameter of each plane, which may generally be a click trigger time of the mouse or a trigger event that the mouse is located in a plane, and the click event is configured to determine that a direction of a current normal vector parameter is a direction of a normal vector to be cut.
202. And selecting a plane to be cut of the three-dimensional model according to a click event triggered by a user, and marking and displaying the plane.
Corresponding to the embodiment of the invention, in order to facilitate the user to observe and reselect the plane to be cut selected by clicking the event, the plane to be cut in the normal vector direction of the selected cutting plane is displayed. The mark display can be used for coloring the plane to be cut, and after the user moves again or clicks a mouse, if the normal vector direction of other planes is selected as the vector emitting direction of the plane to be cut, the newly selected plane to be cut is colored and displayed, so that the display of the plane to be cut is flexibly provided for the user.
203. And configuring a reference coordinate system according to a preset position of the three-dimensional model to be cut in the building plane, and configuring a preset distance interval according to the attribute parameters of the three-dimensional model.
The preset position may be a center position of the three-dimensional model or any edge angle, the embodiment of the present invention is not limited specifically, the reference coordinate system is a three-dimensional space coordinate system, and normal vector parameters of each plane may be determined according to x, y, and z. The attribute parameters are length, width and height data of the three-dimensional model, so that preset distance intervals are configured according to the length, width and height, display proportions exist in engineering simulation software due to the shape and size of the three-dimensional model, generally, display units with the display proportions being not accurate and small are displayed, a display plane in the moving process of the mouse is matched through the preset distance intervals, so that the accuracy of the distance is improved, for example, the preset distance intervals are plus or minus 5 centimeters, and when each single mouse moves, each unit moves, the corresponding distance is within 5, so that a user can determine a required approximate position by moving the mouse.
204a, receiving the moving distance input by the user through the number box to determine a displacement parameter.
For the embodiment of the invention, in order to provide a plurality of different input modes of the displacement parameters for a user, the moving distance input by the user can be received by displaying the digital frame, so that the displacement parameters are accurately determined. For example, as shown in fig. 4, the user inputs a displacement parameter to be cut through a number box beside the cut button so as to obtain a cut plane.
For the embodiment of the present invention, step 204b, which is parallel to step 204a, determines the displacement parameter according to the drag event triggered by the user.
For the embodiment of the present invention, in order to provide a plurality of different input modes of displacement parameters for a user, the displacement parameters determined by the user may be received through a position dragged by a mouse, where the dragging event carries a moving distance of a preset distance interval, generally, the preset distance interval may be set to an interval matching the size of the three-dimensional model for three-dimensional models of different sizes, and may also be set according to a specific distance interval of 5 centimeters, 7 centimeters, and the like, which is not specifically limited in the embodiment of the present invention. In addition, the dragging event can be configured by adopting a scissors icon in a display picture, so that the dragging position of the mouse can be cut.
It should be noted that, the above steps 204a and 204b may be executed only one, or may be executed simultaneously, for example, the user may select an approximate position in the three-dimensional model by dragging the mouse, and then input an accurate displacement parameter through the number box in order to accurately cut the moving distance of the plane.
205. And establishing a sectioning plane equation according to the normal vector parameters and the displacement parameters, and performing coloring display on a plane corresponding to the sectioning plane equation through a preset coloring device until a user determines a final sectioning plane according to the displacement parameters and storing the final sectioning plane.
It should be noted that, because it is a process that the user inputs the displacement parameter and adjusts the displacement parameter, in this process, in order to display each sectioning plane selected by the user, a sectioning plane equation of each normal vector parameter and the displacement parameter needs to be established, in order to facilitate the user to check and determine the final sectioning plane, each sectioning plane generated in the process of adjusting the displacement parameter is colored by a preset shader until the user determines the final sectioning plane, and the final sectioning plane is stored so as to be displayed in a combined manner.
206. And acquiring all three-dimensional model sectioning planes generated in the construction plane, and combining and displaying the three-dimensional model sectioning planes selected by the user.
The combined display is to simultaneously display the sectioning planes determined by the normal vectors and the displacement parameters in each direction selected by the user, as shown in fig. 4, each sectioning plane correspondingly displays the corresponding normal vector parameter and the corresponding displacement parameter, and the embodiment of the present invention is not particularly limited. The shader is an application program for coloring a plane, and may be a Fragment shader, the four-bit array of the plane is determined by the determined sectioning plane equation, and the coloring is performed according to the sectioning plane equation transmitted into the shader and the corresponding four-bit array, and the specific color is not specifically limited in the embodiment of the present invention.
For the embodiment of the present invention, step 206 may specifically be: and determining the intersection point of the generated three-dimensional model sectioning plane selected by the user and the grid of the construction plane, generating a filling surface according to the closed area after the intersection point is connected, and displaying the filling surface.
For the embodiment of the invention, in order to accurately combine and display each plane selected by a user and avoid coloring of each cutting plane beyond the surface of the three-dimensional model, the generated cutting plane is intersected with the grid of the construction plane, the closed area after intersection connection is the plane obtained by cutting the three-dimensional model in the cutting plane direction, then the closed area is filled, and the filling surface is the cutting plane. For example, the intersection points of the meshes of the whole scene and the sectioning planes of the sectioning plane equation are connected to generate Outline, and then triangular tiling is performed on a closed polygon enclosed by the Outline to generate a filling surface.
The invention provides another method for determining a sectioning plane of a three-dimensional model, which comprises the steps of establishing a sectioning plane equation according to a normal vector parameter in any direction of a user and an input specific moving distance, generating a corresponding sectioning plane, realizing sectioning of any direction surface of the model, quickly sectioning to a position needing sectioning by the user, realizing simultaneous coloring and displaying combination of a plurality of sectioning planes by storing the plurality of sectioning planes, facilitating the user to accurately analyze the sectioning planes, and improving the display diversity of the sectioning planes by displaying information such as the distance of each sectioning plane and the like.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention provides an apparatus for determining a cutting plane of a three-dimensional model, as shown in fig. 5, the apparatus includes: a first determining unit 31, a second determining unit 32, a generating unit 33.
The first determining unit 31 is configured to determine a normal vector parameter in any direction according to a click event triggered by a user after the user selects a construction plane of a three-dimensional model to be cut and starts a cutting operation, where the click event carries a normal vector direction of the plane to be cut of the three-dimensional model; the first determining unit 31 is a program module of a determining device for a three-dimensional model sectioning plane, which determines normal vector parameters in any direction according to a click event triggered by a user after the user selects a construction plane of a three-dimensional model to be sectioned and starts sectioning operation.
A second determining unit 32, configured to determine a displacement parameter according to the received moving distance; the second determination unit 32 executes a program module for determining displacement parameters for the determination means of the sectioning planes of the three-dimensional model from the received movement distances.
And the generating unit 33 is configured to establish a sectioning plane equation according to the normal vector parameter and the displacement parameter, generate a three-dimensional model sectioning plane according to the sectioning plane equation, and display the three-dimensional model sectioning plane. The generating unit 33 is a program module executed by the determination device for the sectioning plane of the three-dimensional model.
The invention provides a device for determining a sectioning plane of a three-dimensional model, which is characterized in that compared with the prior art that when the section of the three-dimensional model is drawn at a web port, the specific position to be sectioned cannot be accurately indicated when a mouse is dragged, and the normal vector in a single direction cannot meet the requirements of a user on sectioning planes of the three-dimensional model in different directions, the embodiment of the invention establishes a sectioning plane equation according to normal vector parameters and displacement parameters in any direction input by the user, and then generates a corresponding sectioning plane, thereby realizing the display of the sectioning plane in any direction and improving the display diversity of the sectioning plane.
Further, as an implementation of the method shown in fig. 2, another apparatus for determining a cutting plane of a three-dimensional model is provided in an embodiment of the present invention, as shown in fig. 6, the apparatus includes: a first determining unit 41, a second determining unit 42, a generating unit 43, a configuring unit 44, a displaying unit 45.
The first determining unit 41 is configured to determine a normal vector parameter in any direction according to a click event triggered by a user after the user selects a construction plane of a three-dimensional model to be cut and starts a cutting operation, where the click event carries a normal vector direction of the plane to be cut of the three-dimensional model;
a second determining unit 42, configured to determine a displacement parameter according to the received moving distance;
and the generating unit 43 is configured to establish a sectioning plane equation according to the normal vector parameter and the displacement parameter, generate a three-dimensional model sectioning plane according to the sectioning plane equation, and display the three-dimensional model sectioning plane.
Further, the second determination unit 42 includes:
a first determining module 4201, configured to receive, through the number box, the moving distance input by the user to determine a displacement parameter; and/or the presence of a gas in the gas,
a second determining module 4202, configured to determine a displacement parameter according to a dragging event triggered by a user, where the dragging event carries a moving distance of a preset distance interval.
Further, the first determination unit 41 includes:
a calculating module 4101, configured to respectively calculate normal vector parameters of each display plane in the three-dimensional model after a user selects a building plane of the three-dimensional model to be cut and starts a cutting operation, and configure trigger events respectively corresponding to directions of the normal vector parameters;
a selecting module 4102, configured to select a plane to be cut of the three-dimensional model according to a click event triggered by a user, and perform mark display.
Further, the apparatus further comprises:
and the configuration unit 44 is used for configuring a reference coordinate system at a preset position of the three-dimensional model to be cut in the building plane and configuring a preset distance interval according to the attribute parameters of the three-dimensional model.
Further, the generating unit 43 is specifically configured to establish a sectioning plane equation according to the normal vector parameter and the displacement parameter, and color and display a plane corresponding to the sectioning plane equation through a preset shader until a user determines a final sectioning plane according to the displacement parameter, and store the final sectioning plane.
Further, the apparatus further comprises:
and the display unit 45 is used for acquiring all three-dimensional model sectioning planes generated in the construction plane and combining and displaying the three-dimensional model sectioning planes selected by the user.
Further, the display unit 45 is specifically configured to determine an intersection point of a generated three-dimensional model sectioning plane selected by the user and a grid of the building plane, generate a filling surface according to a closed region after the intersection point is connected, and display the filling surface.
The invention provides another device for determining a sectioning plane of a three-dimensional model, which is characterized in that a sectioning plane equation is established according to normal vector parameters in any direction of a user and input specific moving distance, then a corresponding sectioning plane is generated, sectioning of any direction surface of the model is realized, the model is quickly sectioned to a position needing to be sectioned by the user, and the combination of a plurality of sectioning planes is realized by storing the plurality of sectioning planes and simultaneously colored and displayed, so that the user can accurately analyze the sectioning planes, and the displayed information such as the distance of each sectioning plane can also improve the display diversity of the sectioning planes.
According to an embodiment of the present invention, there is provided a storage medium storing at least one executable instruction, where the computer executable instruction is capable of executing the method for determining the three-dimensional model cutting plane in any of the method embodiments described above.
Fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the terminal.
As shown in fig. 7, the terminal may include: a processor (processor)502, a Communications Interface 504, a memory 506, and a communication bus 508.
Wherein: the processor 502, communication interface 504, and memory 506 communicate with one another via a communication bus 508.
A communication interface 504 for communicating with network elements of other devices, such as clients or other servers.
The processor 502 is configured to execute the program 510, and may specifically execute relevant steps in the above-described method for determining a cutting plane of a three-dimensional model.
In particular, program 510 may include program code that includes computer operating instructions.
The processor 502 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The terminal comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 506 for storing a program 510. The memory 506 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 510 may specifically be used to cause the processor 502 to perform the following operations:
after a user selects a construction plane of a three-dimensional model to be cut and starts cutting operation, determining normal vector parameters in any direction according to a click event triggered by the user, wherein the click event carries the normal vector direction of the plane to be cut of the three-dimensional model;
determining a displacement parameter according to the received moving distance;
and establishing a sectioning plane equation according to the normal vector parameters and the displacement parameters, generating a three-dimensional model sectioning plane according to the sectioning plane equation, and displaying.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the method and apparatus for determining a three-dimensional model cut plane according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (9)

1. A method for determining a three-dimensional model sectioning plane is characterized by comprising the following steps:
after a user selects a construction plane of a three-dimensional model to be cut and starts cutting operation, determining normal vector parameters in any direction according to a click event triggered by the user, wherein the click event carries the normal vector direction of the plane to be cut of the three-dimensional model;
determining a displacement parameter according to the received moving distance;
establishing a sectioning plane equation according to the normal vector parameters and the displacement parameters, generating a three-dimensional model sectioning plane according to the sectioning plane equation, and displaying the three-dimensional model sectioning plane;
after the user selects a construction plane of the three-dimensional model to be cut and starts cutting operation, the step of determining normal vector parameters in any direction according to a click event triggered by the user comprises the following steps:
after a user selects a construction plane of a three-dimensional model to be sectioned and starts sectioning operation, calculating normal vector parameters of each display plane in the three-dimensional model respectively, and configuring trigger events corresponding to the directions of the normal vector parameters respectively;
and selecting a plane to be cut of the three-dimensional model according to a click event triggered by a user, and marking and displaying the plane.
2. The method of claim 1, wherein determining a displacement parameter based on the received movement distance comprises:
receiving a moving distance input by a user through a digital frame to determine a displacement parameter; and/or the presence of a gas in the gas,
and determining a displacement parameter according to a dragging event triggered by a user, wherein the dragging event carries a moving distance with a preset distance interval.
3. The method of claim 1, wherein prior to determining the displacement parameter based on the received movement distance, the method further comprises:
and configuring a reference coordinate system according to a preset position of the three-dimensional model to be cut in the building plane, and configuring a preset distance interval according to the attribute parameters of the three-dimensional model.
4. The method according to any one of claims 1-3, wherein the establishing a sectioning plane equation according to the normal vector parameter and the displacement parameter, and generating and displaying a three-dimensional model sectioning plane according to the sectioning plane equation comprises:
and establishing a sectioning plane equation according to the normal vector parameters and the displacement parameters, and performing coloring display on a plane corresponding to the sectioning plane equation through a preset coloring device until a user determines a final sectioning plane according to the displacement parameters and storing the final sectioning plane.
5. The method of claim 4, wherein after establishing a sectioning plane equation according to the normal vector parameter and the displacement parameter, generating a three-dimensional model sectioning plane according to the sectioning plane equation, and displaying, the method further comprises:
and acquiring all three-dimensional model sectioning planes generated in the construction plane, and combining and displaying the three-dimensional model sectioning planes selected by the user.
6. The method of claim 5, wherein the obtaining all three-dimensional model cut planes generated in the build plane and displaying in combination the user-selected three-dimensional model cut planes comprises:
and determining the intersection point of the generated three-dimensional model sectioning plane selected by the user and the grid of the construction plane, generating a filling surface according to the closed area after the intersection point is connected, and displaying the filling surface.
7. An apparatus for determining a plane of section of a three-dimensional model, comprising:
the device comprises a first determining unit, a second determining unit and a control unit, wherein the first determining unit is used for determining normal vector parameters in any direction according to a click event triggered by a user after the user selects a construction plane of a three-dimensional model to be cut and starts cutting operation, and the click event carries the normal vector direction of the plane to be cut of the three-dimensional model;
the second determining unit is used for determining the displacement parameter according to the received moving distance;
the generating unit is used for establishing a sectioning plane equation according to the normal vector parameter and the displacement parameter, generating a three-dimensional model sectioning plane according to the sectioning plane equation and displaying the three-dimensional model sectioning plane;
the first determining unit is used for determining normal vector parameters in any direction according to a click event triggered by a user after the user selects a construction plane of a three-dimensional model to be cut and starts cutting operation, and the step comprises the following steps:
the device comprises a first determining unit, a second determining unit and a third determining unit, wherein the first determining unit is used for respectively calculating normal vector parameters of all display planes in a three-dimensional model after a user selects a construction plane of the three-dimensional model to be cut and starts cutting operation, and configuring triggering events corresponding to the directions of the normal vector parameters;
and the first determining unit is used for selecting a plane to be cut of the three-dimensional model according to a click event triggered by a user and displaying a mark.
8. A storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the method for determining a plane of section of a three-dimensional model according to any one of claims 1 to 6.
9. A terminal, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction which causes the processor to execute the operation corresponding to the method for determining the cutting plane of the three-dimensional model according to any one of claims 1 to 6.
CN201711342571.3A 2017-12-14 2017-12-14 Method and device for determining three-dimensional model sectioning plane Active CN108171804B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711342571.3A CN108171804B (en) 2017-12-14 2017-12-14 Method and device for determining three-dimensional model sectioning plane

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711342571.3A CN108171804B (en) 2017-12-14 2017-12-14 Method and device for determining three-dimensional model sectioning plane

Publications (2)

Publication Number Publication Date
CN108171804A CN108171804A (en) 2018-06-15
CN108171804B true CN108171804B (en) 2021-10-19

Family

ID=62525342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711342571.3A Active CN108171804B (en) 2017-12-14 2017-12-14 Method and device for determining three-dimensional model sectioning plane

Country Status (1)

Country Link
CN (1) CN108171804B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109902387B (en) * 2019-03-01 2023-06-09 广联达科技股份有限公司 Method and device for sectioning or isolating based on small map
CN110009729B (en) * 2019-03-21 2023-07-07 深圳点猫科技有限公司 Three-dimensional voxel modeling method and system based on artificial intelligence
CN110428506B (en) * 2019-08-09 2023-04-25 成都景中教育软件有限公司 Method for realizing dynamic geometric three-dimensional graph cutting based on parameters
CN111179430B (en) * 2019-12-16 2023-11-14 苏交科集团股份有限公司 Method for displaying linear engineering BIM model at webpage end
CN111710026B (en) * 2020-05-11 2022-06-21 中国电建集团西北勘测设计研究院有限公司 Method for analyzing internal structure of three-dimensional model
CN113487718B (en) * 2021-07-05 2022-07-26 重庆比特数图科技有限公司 Dynamic sectioning and section filling method for three-dimensional geological model at Web end

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10338690A1 (en) * 2003-08-22 2004-12-16 Siemens Ag Method for reconstructing 3D image data records from endo-lumen recorded 3D images of hollow channel e.g. for cardiac blood vessels, involves determining 3D profile of central axis of hollow channel from 3D image
CN1858803A (en) * 2006-04-04 2006-11-08 天津大学 Three dimension uniform model construction method of water conservancy hydropower engineering geological information
CN101216863A (en) * 2008-01-16 2008-07-09 中山大学 Three-dimensional visualized method for processing garments thermal comfort degree
CN101373543A (en) * 2008-09-28 2009-02-25 武汉大学 Method for rapidly cutting three-dimensional gridding model
CN104318009A (en) * 2014-10-20 2015-01-28 北京航空航天大学 Method for designing personalized interbody fusion cage
CN105574932A (en) * 2015-12-17 2016-05-11 北京科技大学 Geological three-dimensional model random sectioning method capable of reflecting stratigraphic structure

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7359539B2 (en) * 2003-06-11 2008-04-15 Chung Yuan Christian University Method for herniated inter-vertebral disc diagnosis based on image analysis of transverse sections

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10338690A1 (en) * 2003-08-22 2004-12-16 Siemens Ag Method for reconstructing 3D image data records from endo-lumen recorded 3D images of hollow channel e.g. for cardiac blood vessels, involves determining 3D profile of central axis of hollow channel from 3D image
CN1858803A (en) * 2006-04-04 2006-11-08 天津大学 Three dimension uniform model construction method of water conservancy hydropower engineering geological information
CN101216863A (en) * 2008-01-16 2008-07-09 中山大学 Three-dimensional visualized method for processing garments thermal comfort degree
CN101373543A (en) * 2008-09-28 2009-02-25 武汉大学 Method for rapidly cutting three-dimensional gridding model
CN104318009A (en) * 2014-10-20 2015-01-28 北京航空航天大学 Method for designing personalized interbody fusion cage
CN105574932A (en) * 2015-12-17 2016-05-11 北京科技大学 Geological three-dimensional model random sectioning method capable of reflecting stratigraphic structure

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Estimating dense cardiac 3D motion using sparse 2D tagged MRI cross-sections;Siamak Ardekani 等;《2014 36th Annual International Conference of the IEEE Engineering in Medicine and Biology Society》;20141106;第5101-5104页 *
基于剖面约束的区域地质体隐式三维建模方法研究;傅由甲 等;《计算机应用研究》;20090930;第26卷(第9期);第3548-3549,3565页 *

Also Published As

Publication number Publication date
CN108171804A (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN108171804B (en) Method and device for determining three-dimensional model sectioning plane
US8970586B2 (en) Building controllable clairvoyance device in virtual world
JP6266873B2 (en) Apparatus, system and method for simulating materials
US20150134302A1 (en) 3-dimensional digital garment creation from planar garment photographs
CN109544702A (en) Three-dimension varying processing method, device, electronic equipment and storage medium
EP3594906B1 (en) Method and device for providing augmented reality, and computer program
CN115847384B (en) Mechanical arm safety plane information display method and related products
CN111429587A (en) Display method, terminal and storage medium of three-dimensional design model
CN116484487A (en) Wallboard reinforcement method, device, equipment and storage medium
CN109427084B (en) Map display method, device, terminal and storage medium
Dong et al. A web-based 3D virtual display framework for warp-knitted seamless garment design
KR101919085B1 (en) Apparatus and method for simplification of 3D mesh data
CN114564526A (en) Three-dimensional earth data display method, device, equipment and storage medium
US8963921B1 (en) Technique for enhanced perception of 3-D structure in point clouds
CN107038176B (en) Method, device and equipment for rendering web graph page
US10078801B2 (en) System, method and software for representing decision trees
JP6127331B2 (en) Reinforcement verification support device and program thereof
CN108122240B (en) Method, device and equipment for determining target area in three-dimensional image
JP2020013390A (en) Information processing apparatus, information processing program, and information processing method
JP2575803B2 (en) Three-dimensional object interference check method and apparatus
JP2013196648A (en) Information processing device, information processing method, program and computer readable storage medium
US20220012379A1 (en) Systems and methods for modelling interactions of physical assets within a workspace
JP2011134165A (en) Mesh change device, mesh change method and program
JP2004038502A (en) Display method of three-dimensional shape, computer program and computer-readable storage medium
US9454283B1 (en) Three-dimensional visualization

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant