A method, device, storage medium and equipment for automatic lofting of guide plates
By obtaining the control point data of the deflector boundary control point, drawing three-dimensional graphics and calculating the deflector data, the problem of inefficient deflector stake is solved, and an efficient and accurate automatic deflector process is realized.
Patent Information
- Application Number
- CN202210031019.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-12
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2042-01-12
AI Technical Summary
The existing deflector stake technology is inefficient and has low data accuracy, requiring a lot of manual drawing and measurement, making it difficult to ensure the accuracy of the stake data.
By obtaining the control point data of the two boundaries of the deflector, drawing three-dimensional figures and calculating the lofting data, the plan expansion diagram of the deflector is automatically generated using aliquot processing and arc intersection calculation methods.
Improve the efficiency and data accuracy of the deflector stake, reduce manual operation, and ensure the accuracy and completeness of the staked data.
Smart Images

Figure CN114462142B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of ship design and manufacturing, and in particular to a method, device, storage medium and equipment for automatically setting out a deflector. Background Art
[0002] With the continuous development of ship engineering technology, in order to improve the maneuverability of ships, thrusters are widely used in the modern shipbuilding industry. The thruster guide vane is a curved surface structure connecting the thruster cylinder and the hull outer plate. Since the curved surface structure has complex linear shapes and there are huge differences between different ship types, in the actual ship production and construction process, designers are often required to perform a large amount of guide vane lofting processing work to obtain the lofting data. At present, the existing side thruster guide vane lofting technology mainly adopts the traditional manual lofting method for lofting. Since this method requires designers to perform a large amount of manual drawing and measurement work, and then process it, and finally obtain the lofting data of the side thruster guide vane, its lofting efficiency is very low, and in the lofting process, it is often necessary to add sufficient margin to ensure the accuracy of the lofting data.
[0003] Therefore, people are in urgent need of an automatic guide plate lofting method to solve the problems of low lofting efficiency and low precision of lofting data in the existing guide plate lofting. Summary of the Invention
[0004] The present invention provides a guide plate automatic lofting method, device, storage medium and equipment, which can improve the lofting efficiency and data accuracy in the existing guide plate lofting process.
[0005] An embodiment of the present invention provides a method for automatically setting out a guide plate, the steps of which include:
[0006] Obtain the control point data of the two boundaries of the guide plate;
[0007] Draw a three-dimensional graph according to the control point data to obtain a first curve and a second curve;
[0008] Calculating the lofting data of the guide plate according to the first curve and the second curve;
[0009] A two-dimensional graph is drawn according to the lofting data to obtain a planar unfolded graph of the guide plate.
[0010] As a preferred solution, the step of calculating the lofting data of the guide plate according to the first curve and the second curve is specifically as follows:
[0011] Selecting any point on the first curve as the starting point of the first curve, and selecting the point on the second curve that is closest to the starting point of the first curve as the starting point of the second curve, wherein the distance between the starting point of the first curve and the starting point of the second curve is a first length;
[0012] Select any point on the two-dimensional plane as the lofting starting point of the first curve, and move the lofting starting point of the first curve along the negative direction of the Y axis by the first length to obtain the lofting starting point of the second curve;
[0013] According to the equal division value, the first curve and the second curve are respectively divided into equal parts to obtain a first equal division point set of the first curve and a second equal division point set of the second curve;
[0014] executing a lofting data calculation step to obtain coordinate data of the next lofting point of the first curve based on the starting point of the first curve, the starting point of the second curve, the next equally divided point of the first equally divided point set, the lofting starting point of the first curve, and the lofting starting point of the second curve, and use the next lofting point of the first curve as the lofting starting point of the first curve, and the next equally divided point of the first equally divided point set as the starting point of the first curve;
[0015] Obtaining coordinate data of the next stakeout point of the second curve based on the starting point of the second curve, the starting point of the first curve, the next equally divided point of the second equally divided point set, the stakeout starting point of the first curve, and the stakeout starting point of the second curve, and using the next stakeout point of the second curve as the stakeout starting point of the second curve, and the next equally divided point of the second equally divided point set as the starting point of the second curve;
[0016] Saving the coordinate data of the next stakeout point of the first curve in a first coordinate set, and saving the coordinate data of the next stakeout point of the second curve in a second coordinate set, to obtain the first coordinate set and the second coordinate set;
[0017] Determine whether the next equally divided point of the first equally divided point set is the last point of the first equally divided point set. If so, obtain the lofting data of the guide plate based on the first coordinate set and the second coordinate set; if not, continue to execute the lofting data calculation step.
[0018] As a preferred solution, the step of obtaining the coordinate data of the next stakeout point of the first curve based on the starting point of the first curve, the starting point of the second curve, the next equally divided point of the first equally divided point set, the stakeout starting point of the first curve, and the stakeout starting point of the second curve is specifically:
[0019] With the lofting starting point of the first curve as the center of the circle and the distance between the starting point of the first curve and the next equally divided point of the first equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a first arc line;
[0020] With the lofting starting point of the second curve as the center of the circle and the distance between the starting point of the second curve and the next equally divided point of the first equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a second arc line;
[0021] According to the first arc and the second arc, the intersection point of the first arc and the second arc is calculated to obtain coordinate data of the next lofting point of the first curve.
[0022] As a preferred solution, the step of obtaining the coordinate data of the next stakeout point of the second curve according to the starting point of the second curve, the starting point of the first curve, the next equally divided point of the second equally divided point set, the stakeout starting point of the first curve, and the stakeout starting point of the second curve is specifically:
[0023] With the lofting starting point of the second curve as the center of the circle and the distance between the starting point of the second curve and the next equally divided point of the second equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a third arc line;
[0024] With the lofting starting point of the first curve as the center of the circle and the distance between the starting point of the first curve and the next equally divided point of the second equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a fourth arc line;
[0025] According to the third arc and the fourth arc, the intersection point of the third arc and the fourth arc is calculated to obtain the coordinate data of the next lofting point of the second curve.
[0026] Accordingly, another embodiment of the present invention further provides a guide plate automatic lofting device, comprising: a data acquisition module, a three-dimensional drawing module, a lofting calculation module and a two-dimensional drawing module;
[0027] The data acquisition module is used to acquire the control point data of the two boundaries of the guide plate;
[0028] The three-dimensional drawing module is used to draw a three-dimensional graph according to the control point data to obtain a first curve and a second curve;
[0029] The lofting calculation module is used to calculate the lofting data of the guide plate according to the first curve and the second curve;
[0030] The two-dimensional drawing module is used to draw a two-dimensional graph according to the lofting data to obtain a planar unfolded view of the guide plate.
[0031] As a preferred solution, the lofting calculation module includes: a starting point selection unit, a lofting starting point selection unit, a curve equal division unit, a first curve lofting unit, a second curve lofting unit, a coordinate set generation unit and a judgment unit;
[0032] The starting point selection unit is configured to select any point on the first curve as the starting point of the first curve, and select a point on the second curve that is closest to the starting point of the first curve as the starting point of the second curve, wherein the distance between the starting point of the first curve and the starting point of the second curve is a first length;
[0033] The lofting starting point selection unit is used to select any point on the two-dimensional plane as the lofting starting point of the first curve, and move the lofting starting point of the first curve along the negative direction of the Y axis by the first length to obtain the lofting starting point of the second curve;
[0034] The curve dividing unit is used to divide the first curve and the second curve into equal parts according to the dividing value, to obtain a first equal-division point set for the first curve and a second equal-division point set for the second curve;
[0035] The first curve lofting unit is configured to obtain coordinate data of a next lofting point of the first curve based on the starting point of the first curve, the starting point of the second curve, the next equally divided point of the first equally divided point set, the lofting starting point of the first curve, and the lofting starting point of the second curve, and use the next lofting point of the first curve as the lofting starting point of the first curve, and the next equally divided point of the first equally divided point set as the starting point of the first curve;
[0036] The second curve lofting unit is configured to obtain coordinate data of a next lofting point of the second curve based on the starting point of the second curve, the starting point of the first curve, the next equally divided point of the second equally divided point set, the lofting starting point of the first curve, and the lofting starting point of the second curve, and use the next lofting point of the second curve as the lofting starting point of the second curve, and the next equally divided point of the second equally divided point set as the starting point of the second curve;
[0037] The coordinate set generating unit is configured to save the coordinate data of the next stakeout point of the first curve in a first coordinate set, and save the coordinate data of the next stakeout point of the second curve in a second coordinate set, to obtain the first coordinate set and the second coordinate set;
[0038] The judgment unit is used to determine whether the next equally divided point of the first equally divided point set is the last point of the first equally divided point set. If so, the lofting data of the guide plate is obtained according to the first coordinate set and the second coordinate set; if not, the process returns to the first curve lofting unit to continue execution.
[0039] As a preferred solution, the first curve lofting unit is further specifically configured to:
[0040] With the lofting starting point of the first curve as the center of the circle and the distance between the starting point of the first curve and the next equally divided point of the first equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a first arc line;
[0041] With the lofting starting point of the second curve as the center of the circle and the distance between the starting point of the second curve and the next equally divided point of the first equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a second arc line;
[0042] According to the first arc and the second arc, the intersection point of the first arc and the second arc is calculated to obtain coordinate data of the next lofting point of the first curve.
[0043] As a preferred solution, the second curve lofting unit is further specifically configured to:
[0044] With the lofting starting point of the second curve as the center of the circle and the distance between the starting point of the second curve and the next equally divided point of the second equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a third arc line;
[0045] With the lofting starting point of the first curve as the center of the circle and the distance between the starting point of the first curve and the next equally divided point of the second equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a fourth arc line;
[0046] According to the third arc and the fourth arc, the intersection point of the third arc and the fourth arc is calculated to obtain the coordinate data of the next lofting point of the second curve.
[0047] An embodiment of the present invention further provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute a guide plate automatic lofting method as described in any one of the above items.
[0048] An embodiment of the present invention also provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements a guide plate automatic lofting method as described in any one of the above items when executing the computer program.
[0049] Compared with the prior art, the invention provides a method, device, storage medium and equipment for automatic lofting of guide plates, which has the following beneficial effects: through the two sets of 3D point data input by the user, the data of the two boundaries of the guide plate can be obtained, so as to prepare for the subsequent 3D graphics drawing; by drawing a 3D curve, the point data other than the point data provided by the user can be obtained, so as to prepare for the subsequent lofting calculation; by selecting the point closest to the starting point of the 3D curve on the 3D curve as the starting point, preparations can be made for the subsequent selection of the lofting starting point of the curve and on the 2D plane; by moving the lofting starting point of the first curve along the y-axis La The second curve lofting starting point is obtained from the distance b, preparing for the calculation of subsequent lofting data to improve calculation efficiency; the first and second equally divided point sets are obtained by equally dividing the curve and to prepare for subsequent lofting calculations, providing equally divided point coordinate data for the lofting calculations, and at the same time, increasing the preset equally divided value to improve the lofting accuracy; the coordinate data of the next lofting point is calculated by utilizing the relationship between the starting point, the next equally divided point, and the lofting starting point, so that the coordinate data of the lofting point can be accurately obtained, improving the lofting efficiency and data accuracy; a two-dimensional graph is drawn using the lofting data to obtain a planar unfolded view of the guide plate. Through the embodiments of the present invention, the lofting efficiency and data accuracy can be improved in the existing lofting process of the guide plate. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 : A schematic flow chart of a method for automatically setting out guide plates according to an embodiment of the present invention;
[0051] Figure 2 : A schematic diagram of the structure of a ship side thrust deflector in a method for automatically setting out a deflector according to an embodiment of the present invention;
[0052] Figure 3 : A schematic diagram of a layout process of an automated guide plate layout method according to an embodiment of the present invention;
[0053] Figure 4 : It is a structural schematic diagram of an automatic lofting device for guide plates according to an embodiment of the present invention.
[0054] The reference numerals of the drawings in the specification are as follows: data acquisition module 41 , three-dimensional drawing module 42 , lofting calculation module 43 and two-dimensional drawing module 44 . DETAILED DESCRIPTION
[0055] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0056] Example 1
[0057] Please refer to Figure 1 , an embodiment of the present invention provides a method for automatically setting out a guide plate, the steps of which include:
[0058] Step S11: Acquire control point data of two boundaries of the guide plate.
[0059] Specifically, the user inputs the control point data of the two boundaries of the guide plate that he needs to lay out on the display interface, where the control point data of the two boundaries are two groups of three-dimensional point data, and one boundary corresponds to one group of three-dimensional point data; through the two groups of three-dimensional point data entered by the user, the data of the two boundaries of the guide plate can be obtained, which prepares for the subsequent three-dimensional graphics drawing and also prepares for the subsequent layout calculation.
[0060] Step S12: Draw a three-dimensional graph according to the control point data to obtain a first curve and a second curve.
[0061] Specifically, according to the two sets of three-dimensional point data input by the user on the display interface, the two sets of three-dimensional data are plotted. First, one set of three-dimensional point data is marked in the three-dimensional space, and then these points are connected in sequence through smooth curves to obtain a three-dimensional curve Sa, that is, the first curve; similarly, another set of three-dimensional point data is marked in the three-dimensional space, and then these points are connected in sequence through smooth curves to obtain another three-dimensional curve Sb, that is, the second curve; by drawing the three-dimensional curve, point data other than the point data provided by the user can be obtained, in preparation for subsequent layout calculations.
[0062] Step S13: Calculate the lofting data of the guide plate according to the first curve and the second curve.
[0063] Specifically, the three-dimensional curve Sa and the three-dimensional curve Sb are divided into equal parts to obtain the equal-division set an of the three-dimensional curve Sa and the equal-division point set bn of the three-dimensional curve Sb. Then, based on the relationship between the equal-division points of the two three-dimensional curves, two sets of two-dimensional point data are calculated, namely, the lofting data of the guide plate. One three-dimensional curve corresponds to one set of two-dimensional point data. By utilizing the relationship between the starting point, the next equal-division point and the lofting starting point, the coordinate data of the next lofting point is calculated. The coordinate data of the lofting point can be accurately obtained, thereby improving the lofting efficiency and data accuracy, and preparing for subsequent two-dimensional graphics drawing.
[0064] Step S14: Draw a two-dimensional graph based on the lofting data to obtain a planar unfolded view of the guide plate.
[0065] Specifically, based on the two sets of two-dimensional point data obtained by calculation, a drawing is performed on a two-dimensional plane. One set of two-dimensional point data is marked, and then these points are connected once by a smooth curve to obtain a two-dimensional curve SA. Similarly, the other set of two-dimensional point data is marked, and then these points are connected once by a smooth curve to obtain another two-dimensional curve SB. The two-dimensional curves SA and SB are the plane unfolding drawings of the guide plate, wherein the curve corresponding to the lofting of the three-dimensional curve Sa is the two-dimensional curve SA, and the curve corresponding to the lofting of the three-dimensional curve Sb is the two-dimensional curve SB.
[0066] In an embodiment of the present invention, a method for automatically setting out a guide plate is provided, which has the following beneficial effects: by using two sets of three-dimensional point data input by the user, the data of the two boundaries of the guide plate can be obtained, preparing for the subsequent three-dimensional graphics drawing and also preparing for the subsequent setting out calculation; by drawing a three-dimensional curve, point data other than the point data provided by the user can be obtained, preparing for the subsequent setting out calculation; by using the relationship between the starting point, the next equal division point, and the setting out starting point, the coordinate data of the next setting out point is calculated, and the coordinate data of the setting out point can be accurately obtained, thereby improving the setting out efficiency and data accuracy, preparing for the subsequent two-dimensional graphics drawing, and drawing a two-dimensional graphics by the setting out data to obtain a planar unfolded view of the guide plate. Through the embodiment of the present invention, the setting out efficiency and data accuracy can be improved in the existing guide plate setting out process.
[0067] Please refer to Figure 2 In another embodiment of the present invention, in a method for automatically setting out a guide plate, the step of calculating the setting out data of the guide plate based on the first curve and the second curve is specifically as follows:
[0068] An arbitrary point on the first curve is selected as the starting point of the first curve, and a point on the second curve that is closest to the starting point of the first curve is selected as the starting point of the second curve, wherein the distance between the starting point of the first curve and the starting point of the second curve is a first length.
[0069] Specifically, a point a0 is randomly selected on the 3D curve Sa as the starting point of the 3D curve Sa, i.e., the starting point of the first curve. Then, the point b0 closest to point a0 is selected on the 3D curve Sb as the starting point of the 3D curve Sb, i.e., the starting point of the second curve. The distance from point a0 to point b0 is Lab, i.e., the first length. By selecting the point b0 closest to point a0 on the 3D curve Sb, preparation is made for selecting the starting point for the subsequent stakeout of curves Sa and Sb on the 2D plane, facilitating the calculation of subsequent stakeout data and improving the efficiency of the stakeout calculation.
[0070] An arbitrary point on a two-dimensional plane is selected as a lofting starting point of a first curve, and the lofting starting point of the first curve is moved along the negative direction of the Y axis by the first length to obtain a lofting starting point of a second curve.
[0071] Specifically, a point A0 is randomly selected on the two-dimensional plane as the lofting starting point for the three-dimensional curve Sa, i.e., the lofting starting point for the first curve. Point A0 is then moved along the negative y-axis by a distance of Lab to obtain point B0, which becomes the lofting starting point for the three-dimensional curve Sb, i.e., the lofting starting point for the second curve. This process of moving point A0 along the y-axis by a distance of Lab prepares for and facilitates the calculation of subsequent lofting data, improving the efficiency of the calculation.
[0072] According to the equal division value, the first curve and the second curve are divided equally respectively to obtain a first equal division point set of the first curve and a second equal division point set of the second curve.
[0073] Specifically, based on preset equal division values, using a0 and b0 as the starting points for equal division, the three-dimensional curve Sa and the three-dimensional curve Sb are equally divided, respectively. This yields the equally divided point set an for the three-dimensional curve Sa and the equally divided point set bn for the three-dimensional curve Sb, i.e., the first and second equally divided point sets. The equally divided point set an includes points a0, a1, ..., an, and the equally divided point set bn includes points b0, b1, ..., bn, where n is the sequence number of the equally divided points. By equally dividing the curves Sa and Sb, the equally divided point sets an and bn are obtained, preparing for the subsequent stakeout calculations and providing coordinate data for the equally divided points. Furthermore, increasing the preset equal division values improves stakeout accuracy.
[0074] A lofting data calculation step is executed to obtain coordinate data of the next lofting point of the first curve based on the starting point of the first curve, the starting point of the second curve, the next equally divided point of the first equally divided point set, the lofting starting point of the first curve, and the lofting starting point of the second curve. The next lofting point of the first curve is used as the lofting starting point of the first curve, and the next equally divided point of the first equally divided point set is used as the starting point of the first curve.
[0075] Specifically, the steps for calculating the lofting data are as follows: the coordinate data of the next lofting point An+1 of the three-dimensional curve Sa is calculated according to the relationship between the starting point an, the starting point bn, the next equally divided point an+1, the lofting point An and the lofting point Bn, and then the lofting point An+1 is used as the current lofting point An of the three-dimensional curve Sa, and the starting point an+1 is used as the current starting point an of the three-dimensional curve Sa.
[0076] Coordinate data of the next stakeout point of the second curve is obtained based on the starting point of the second curve, the starting point of the first curve, the next equally divided point of the second equally divided point set, the stakeout starting point of the first curve, and the stakeout starting point of the second curve. The next stakeout point of the second curve is used as the stakeout starting point of the second curve, and the next equally divided point of the second equally divided point set is used as the starting point of the second curve.
[0077] Specifically, the lofting data of the three-dimensional curve Sb is calculated as follows: according to the relationship between the starting point bn, the starting point an+1, the next equally divided point bn+1, the lofting point Bn and the lofting point An+1, the coordinate data of the next lofting point Bn+1 of the three-dimensional curve Sb is calculated, and then the lofting point Bn+1 is used as the current lofting point Bn of the three-dimensional curve Sb, and the starting point bn+1 is used as the current starting point bn of the three-dimensional curve Sb.
[0078] The coordinate data of the next setout point of the first curve is saved in a first coordinate set, and the coordinate data of the next setout point of the second curve is saved in a second coordinate set, to obtain the first coordinate set and the second coordinate set.
[0079] Specifically, after calculating the stakeout points An+1 and Bn+1 for the three-dimensional curves Sa and Sb, the coordinate data for stakeout point An+1 is saved in the two-dimensional point coordinate set A, i.e., the first coordinate set; the coordinate data for stakeout point Bn+1 is saved in the two-dimensional point coordinate set B, i.e., the second coordinate set. By storing the stakeout point coordinate data in sets, the coordinate data obtained from each stakeout calculation is preserved, allowing the stakeout point coordinate data for the guide vane to be obtained after the stakeout calculation is completed.
[0080] Determine whether the next equally divided point of the first equally divided point set is the last point of the first equally divided point set. If so, obtain the lofting data of the guide plate based on the first coordinate set and the second coordinate set; if not, continue to execute the lofting data calculation step.
[0081] Specifically, after calculating the coordinate data for the stakeout points An+1 and Bn+1, a determination is made as to whether the next equally divided point an+1 is the last point in the equally divided point set an of the three-dimensional curve Sa. If so, the calculation is stopped, and the two-dimensional point coordinate set A is the set of two-dimensional point data obtained after the stakeout of the three-dimensional curve Sa, and the two-dimensional point coordinate set B is the set of two-dimensional point data obtained after the stakeout of the three-dimensional curve Sb. If not, the calculation returns to the stakeout data calculation step to continue the stakeout calculation. By determining the result, whether the stakeout calculation is stopped or continued, a complete set of stakeout coordinate data can be obtained, avoiding loop calculations or incomplete calculation steps, and improving calculation efficiency.
[0082] By selecting the point closest to the starting point of the three-dimensional curve as the starting point, preparation is made for the subsequent selection of the curve's lofting starting point on the two-dimensional plane, which facilitates the calculation of subsequent lofting data and improves the efficiency of lofting calculations; by moving the first curve lofting starting point along the y-axis by the Lab distance to obtain the second curve lofting starting point, preparation is made for the calculation of subsequent lofting data, which also facilitates the calculation of subsequent lofting data and improves the efficiency of lofting calculations; by equally dividing the curve and obtaining the first and second equally divided point sets, preparation is made for the subsequent lofting calculation, providing equally divided point coordinate data for the lofting calculation, and at the same time, by increasing the preset The equal division value is used to improve the accuracy of the layout; by using the relationship between the starting point, the next equal division point, and the layout starting point, the coordinate data of the next layout point is calculated, and the coordinate data of the layout point can be accurately obtained, thereby improving the layout efficiency and data accuracy; by saving the layout point coordinate data in a set, the coordinate data obtained from each layout calculation can be saved, so that after the layout data calculation is completed, the layout point coordinate data of the guide plate can be obtained; by judging the result, stopping or continuing the layout calculation, a complete set of layout coordinate data can be obtained, avoiding circular calculations or incomplete calculation steps, and improving calculation efficiency. Through the embodiments of the present invention, it is possible to improve the layout efficiency and data accuracy in the existing guide plate layout process.
[0083] In addition, please refer to Figure 3 In a method for automatically staking out a guide plate provided in another embodiment of the present invention, the step of obtaining coordinate data of the next staking-out point of the first curve based on the starting point of the first curve, the starting point of the second curve, the next equally divided point of the first equally divided point set, the staking-out starting point of the first curve, and the staking-out starting point of the second curve is specifically as follows:
[0084] With the lofting starting point of the first curve as the center of the circle and the distance between the starting point of the first curve and the next equally divided point of the first equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a first arc line.
[0085] Specifically, with the lofting start point An of the 2D curve SA as the center and the distance from the starting point an of the 3D curve Sa to the next bisecting point an+1 as the radius, an arc is drawn to obtain arc arc1, the first arc. Drawing arc arc1 prepares the way for obtaining the intersection of the two arcs.
[0086] With the lofting starting point of the second curve as the center of the circle and the distance between the starting point of the second curve and the next equally divided point of the first equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a second arc line.
[0087] Specifically, draw an arc with the starting point Bn of the 2D curve SB as the center and the distance from the starting point bn of the 3D curve Sb to the next bisecting point an+1 of the 3D curve Sa as the radius, resulting in arc arc2, the second arc. Drawing arc arc2 prepares the coordinate data for the subsequent intersection of the two arcs.
[0088] According to the first arc and the second arc, the intersection point of the first arc and the second arc is calculated to obtain coordinate data of the next lofting point of the first curve.
[0089] Specifically, the coordinate data of the intersection of arcs arc1 and arc2 is calculated. The obtained intersection coordinate data is the coordinate data of the next set-out point An+1 on the two-dimensional curve SA. By calculating the intersection of the two arcs, the coordinate data of the next set-out point An+1 on the two-dimensional curve SA can be accurately obtained, thereby improving the accuracy of the set-out data.
[0090] By drawing the first arc, we prepare for obtaining the intersection of the two arcs; by drawing the second arc, we prepare for calculating the coordinate data of the intersection of the two arcs; by calculating the intersection of the two arcs, we can accurately obtain the coordinate data of the next stakeout point on the first curve, thereby improving the accuracy of the stakeout data.
[0091] In addition, please refer to Figure 3 In an automatic guide plate lofting method provided by another embodiment of the present invention, the step of obtaining coordinate data of the next lofting point of the second curve based on the starting point of the second curve, the starting point of the first curve, the next equally divided point of the second equally divided point set, the lofting starting point of the first curve, and the lofting starting point of the second curve is specifically:
[0092] With the lofting starting point of the second curve as the center of the circle and the distance between the starting point of the second curve and the next equally divided point of the second equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a third arc.
[0093] Specifically, draw an arc with the lofting point Bn of the 2D curve SB as the center and the distance from the starting point bn of the 3D curve Sb to the next bisection point bn+1 as the radius, resulting in arc arc3, the third arc. Drawing arc acr3 prepares us for the subsequent intersection of the two arcs.
[0094] With the lofting starting point of the first curve as the center of the circle and the distance between the starting point of the first curve and the next equally divided point of the second equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a fourth arc line.
[0095] Specifically, draw an arc with the starting point Bn of the 3D curve SA as the center and the distance from the starting point an+1 of the 3D curve Sa to the next bisecting point bn+1 of the 3D curve Sb as the radius, resulting in arc arc3, the fourth arc. Drawing arc arc4 prepares the coordinate data for the subsequent intersection of the two arcs.
[0096] According to the third arc and the fourth arc, the intersection point of the third arc and the fourth arc is calculated to obtain the coordinate data of the next lofting point of the second curve.
[0097] Specifically, the coordinate data of the intersection of arcs arc3 and arc4 is calculated. The resulting intersection coordinate data is the coordinate data of the next set-out point Bn+1 on the two-dimensional curve SB. By calculating the intersection of the two arcs, the coordinate data of the next set-out point Bn+1 on the two-dimensional curve SB can be accurately obtained, thereby improving the accuracy of the set-out data.
[0098] By drawing the third arc, we prepare for obtaining the intersection of the two arcs; by drawing the fourth arc, we prepare for calculating the coordinate data of the intersection of the two arcs; by calculating the intersection of the two arcs, we can accurately obtain the coordinate data of the next stakeout point on the second curve, thereby improving the accuracy of the stakeout data.
[0099] Example 2
[0100] Accordingly, please refer to Figure 4 , an automatic guide plate lofting device provided by an embodiment of the present invention includes: a data acquisition module 41, a three-dimensional drawing module 42, a lofting calculation module 43 and a two-dimensional drawing module 44.
[0101] The data acquisition module 41 is used to acquire control point data of two boundaries of the guide plate.
[0102] The three-dimensional drawing module 42 is used to draw a three-dimensional graph according to the control point data to obtain a first curve and a second curve.
[0103] The lofting calculation module 43 is used to calculate the lofting data of the guide plate according to the first curve and the second curve.
[0104] The two-dimensional drawing module 44 is used to draw a two-dimensional graph according to the lofting data to obtain a planar unfolded view of the guide plate.
[0105] By using two sets of three-dimensional point data input by the user, the data of the two boundaries of the deflector can be obtained, preparing for the subsequent three-dimensional graphics drawing and also preparing for the subsequent lofting calculation. By drawing a three-dimensional curve, point data other than the point data provided by the user can be obtained, preparing for the subsequent lofting calculation. By using the relationship between the starting point, the next equal division point, and the lofting starting point, the coordinate data of the next lofting point can be calculated, and the coordinate data of the lofting point can be accurately obtained, improving the lofting efficiency and data accuracy, preparing for the subsequent two-dimensional graphics drawing. The two-dimensional graphics are drawn using the lofting data to obtain the planar unfolding diagram of the deflector. Through the embodiments of the present invention, the lofting efficiency and data accuracy can be improved in the existing lofting process of the deflector.
[0106] Among them, in an automatic lofting device for a guide plate provided in another embodiment of the present invention, the lofting calculation module 43 includes: a starting point selection unit, a lofting starting point selection unit, a curve dividing unit, a first curve lofting unit, a second curve lofting unit, a coordinate set generation unit and a judgment unit.
[0107] The starting point selection unit is used to select any point on the first curve as the starting point of the first curve, and select the point on the second curve that is closest to the starting point of the first curve as the starting point of the second curve, wherein the distance between the starting point of the first curve and the starting point of the second curve is a first length.
[0108] The lofting starting point selection unit is used to select any point on the two-dimensional plane as the lofting starting point of the first curve, and move the lofting starting point of the first curve along the negative direction of the Y axis by the first length to obtain the lofting starting point of the second curve.
[0109] The curve dividing unit is used to divide the first curve and the second curve into equal parts according to the dividing value, so as to obtain a first equal-division point set of the first curve and a second equal-division point set of the second curve.
[0110] The first curve lofting unit is configured to obtain coordinate data of a next lofting point of the first curve based on the starting point of the first curve, the starting point of the second curve, the next equally divided point of the first equally divided point set, the lofting starting point of the first curve, and the lofting starting point of the second curve, and use the next lofting point of the first curve as the lofting starting point of the first curve, and the next equally divided point of the first equally divided point set as the starting point of the first curve.
[0111] The second curve lofting unit is configured to obtain coordinate data of a next lofting point of the second curve based on the starting point of the second curve, the starting point of the first curve, the next equally divided point of the second equally divided point set, the lofting starting point of the first curve, and the lofting starting point of the second curve, and use the next lofting point of the second curve as the lofting starting point of the second curve, and the next equally divided point of the second equally divided point set as the starting point of the second curve.
[0112] The coordinate set generating unit is used to save the coordinate data of the next stakeout point of the first curve in a first coordinate set, and save the coordinate data of the next stakeout point of the second curve in a second coordinate set, to obtain the first coordinate set and the second coordinate set.
[0113] The judgment unit is used to determine whether the next equally divided point of the first equally divided point set is the last point of the first equally divided point set. If so, the lofting data of the guide plate is obtained according to the first coordinate set and the second coordinate set; if not, the process returns to the first curve lofting unit to continue execution.
[0114] By selecting the point closest to the starting point of the three-dimensional curve as the starting point, preparation is made for the subsequent selection of the curve's lofting starting point on the two-dimensional plane, which facilitates the calculation of subsequent lofting data and improves the efficiency of lofting calculations; by moving the first curve lofting starting point along the y-axis by the Lab distance to obtain the second curve lofting starting point, preparation is made for the calculation of subsequent lofting data, which also facilitates the calculation of subsequent lofting data and improves the efficiency of lofting calculations; by equally dividing the curve and obtaining the first and second equally divided point sets, preparation is made for the subsequent lofting calculation, providing equally divided point coordinate data for the lofting calculation, and at the same time, by increasing the preset The equal division value is used to improve the accuracy of the layout; by using the relationship between the starting point, the next equal division point, and the layout starting point, the coordinate data of the next layout point is calculated, and the coordinate data of the layout point can be accurately obtained, thereby improving the layout efficiency and data accuracy; by saving the layout point coordinate data in a set, the coordinate data obtained from each layout calculation can be saved, so that after the layout data calculation is completed, the layout point coordinate data of the guide plate can be obtained; by judging the result, stopping or continuing the layout calculation, a complete set of layout coordinate data can be obtained, avoiding circular calculations or incomplete calculation steps, and improving calculation efficiency. Through the embodiments of the present invention, it is possible to improve the layout efficiency and data accuracy in the existing guide plate layout process.
[0115] In addition, in an automatic lofting device for a guide plate provided in another embodiment of the present invention, the first curve lofting unit is further specifically configured to:
[0116] With the lofting starting point of the first curve as the center of the circle and the distance between the starting point of the first curve and the next equally divided point of the first equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a first arc line.
[0117] With the lofting starting point of the second curve as the center of the circle and the distance between the starting point of the second curve and the next equally divided point of the first equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a second arc line.
[0118] According to the first arc and the second arc, the intersection point of the first arc and the second arc is calculated to obtain coordinate data of the next lofting point of the first curve.
[0119] By drawing the first arc, we prepare for obtaining the intersection of the two arcs; by drawing the second arc, we prepare for calculating the coordinate data of the intersection of the two arcs; by calculating the intersection of the two arcs, we can accurately obtain the coordinate data of the next stakeout point on the first curve, thereby improving the accuracy of the stakeout data.
[0120] In addition, in an automatic lofting device for a guide plate provided in another embodiment of the present invention, the second curve lofting unit is further specifically configured to:
[0121] With the lofting starting point of the second curve as the center of the circle and the distance between the starting point of the second curve and the next equally divided point of the second equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a third arc.
[0122] With the lofting starting point of the first curve as the center of the circle and the distance between the starting point of the first curve and the next equally divided point of the second equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a fourth arc line.
[0123] According to the third arc and the fourth arc, the intersection point of the third arc and the fourth arc is calculated to obtain the coordinate data of the next lofting point of the second curve.
[0124] By drawing the third arc, we prepare for obtaining the intersection of the two arcs; by drawing the fourth arc, we prepare for calculating the coordinate data of the intersection of the two arcs; by calculating the intersection of the two arcs, we can accurately obtain the coordinate data of the next stakeout point on the second curve, thereby improving the accuracy of the stakeout data.
[0125] Example 3
[0126] An embodiment of the present invention further provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute a guide plate automatic lofting method described in any of the above embodiments.
[0127] Example 4
[0128] An embodiment of the present invention also provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the automatic lofting method of a guide plate described in any of the above embodiments.
[0129] Preferably, the computer program can be divided into one or more modules / units (e.g., computer program, computer program), which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units can be a series of computer program instruction segments that can perform specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.
[0130] The processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, or the processor can be any conventional processor. The processor is the control center of the terminal device, and uses various interfaces and lines to connect the various parts of the terminal device.
[0131] The memory mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application program required for at least one function, etc., and the data storage area can store related data, etc. In addition, the memory can be a high-speed random access memory, or a non-volatile memory, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, and a flash card, etc., or the memory can also be other volatile solid-state storage devices.
[0132] It should be noted that the above-mentioned terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that the above-mentioned terminal device is merely an example and does not constitute a limitation on the terminal device. It may include more or fewer components, or a combination of certain components, or different components.
[0133] The specific embodiments described above further illustrate the objectives, technical solutions, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.
Claims
1. A method for automatically setting out a guide plate, characterized in that: include: Obtain the control point data of the two boundaries of the guide plate; Draw a three-dimensional graph according to the control point data to obtain a first curve and a second curve; Calculating the lofting data of the guide plate according to the first curve and the second curve; The calculation of the lofting data of the guide plate according to the first curve and the second curve includes: taking any point on the first curve as the starting point of the first curve, and taking the point on the second curve that is closest to the starting point of the first curve as the starting point of the second curve, wherein the distance between the starting point of the first curve and the starting point of the second curve is a first length; taking any point on the two-dimensional plane as the lofting starting point of the first curve, moving the lofting starting point of the first curve by the first length along the negative direction of the Y axis to obtain the lofting starting point of the second curve; dividing the first curve and the second curve into equal parts according to the equal division value to obtain the first equal division point set of the first curve and the second equal division point set of the second curve; executing the lofting data calculation step, according to the starting point of the first curve, the starting point of the second curve, the next equal division point of the first equal division point set, the lofting starting point of the first curve and the lofting starting point of the second curve, and obtaining the coordinate data of the next lofting point of the first curve the next lofted point of the line as the lofting starting point of the first curve, and the next equally divided point of the first equally divided point set as the starting point of the first curve; according to the starting point of the second curve, the starting point of the first curve, the next equally divided point of the second equally divided point set, the lofting starting point of the first curve and the lofting starting point of the second curve, the coordinate data of the next lofted point of the second curve is obtained, and the next lofted point of the second curve is used as the lofting starting point of the second curve, and the next equally divided point of the second equally divided point set is used as the starting point of the second curve; the coordinate data of the next lofted point of the first curve is saved in the first coordinate set, and the coordinate data of the next lofted point of the second curve is saved in the second coordinate set, to obtain the first coordinate set and the second coordinate set; it is determined whether the next equally divided point of the first equally divided point set is the last point of the first equally divided point set, and if so, the lofting data of the guide plate is obtained according to the first coordinate set and the second coordinate set; if not, the lofting data calculation step is continued; A two-dimensional graph is drawn according to the lofting data to obtain a planar unfolded graph of the guide plate.
2. The method for automatically setting out a guide plate according to claim 1, wherein: The step of obtaining the coordinate data of the next stakeout point of the first curve according to the starting point of the first curve, the starting point of the second curve, the next equally divided point of the first equally divided point set, the stakeout starting point of the first curve, and the stakeout starting point of the second curve is specifically: With the lofting starting point of the first curve as the center of the circle and the distance between the starting point of the first curve and the next equally divided point of the first equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a first arc line; With the lofting starting point of the second curve as the center of the circle and the distance between the starting point of the second curve and the next equally divided point of the first equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a second arc line; According to the first arc and the second arc, the intersection point of the first arc and the second arc is calculated to obtain coordinate data of the next lofting point of the first curve.
3. The automatic lofting method for guide plates according to claim 1, characterized in that: The step of obtaining the coordinate data of the next stakeout point of the second curve according to the starting point of the second curve, the starting point of the first curve, the next equally divided point of the second equally divided point set, the stakeout starting point of the first curve, and the stakeout starting point of the second curve is specifically: With the lofting starting point of the second curve as the center of the circle and the distance between the starting point of the second curve and the next equally divided point of the second equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a third arc line; With the lofting starting point of the first curve as the center of the circle and the distance between the starting point of the first curve and the next equally divided point of the second equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a fourth arc line; According to the third arc and the fourth arc, the intersection point of the third arc and the fourth arc is calculated to obtain the coordinate data of the next lofting point of the second curve.
4. An automatic lofting device for guide plates, characterized in that: include: Data acquisition module, 3D drawing module, lofting calculation module and 2D drawing module; The data acquisition module is used to acquire the control point data of the two boundaries of the guide plate; The three-dimensional drawing module is used to draw a three-dimensional graph according to the control point data to obtain a first curve and a second curve; The lofting calculation module is used to calculate the lofting data of the guide plate according to the first curve and the second curve; the lofting calculation module includes: a starting point selection unit, a lofting starting point selection unit, a curve equalization unit, a first curve lofting unit, a second curve lofting unit, a coordinate set generation unit and a judgment unit; the starting point selection unit is used to select any point on the first curve as the starting point of the first curve, and select the point on the second curve that is closest to the starting point of the first curve as the starting point of the second curve, wherein the distance between the starting point of the first curve and the starting point of the second curve is the first starting point. a length; the lofting starting point selection unit is used to select any point on the two-dimensional plane as the lofting starting point of the first curve, and move the lofting starting point of the first curve along the negative direction of the Y axis by the first length to obtain the lofting starting point of the second curve; the curve equal division unit is used to divide the first curve and the second curve into equal parts according to the equal division value, respectively, to obtain a first equal division point set of the first curve and a second equal division point set of the second curve; the first curve lofting unit is used to select a point on the two-dimensional plane as the lofting starting point of the first curve, the starting point of the second curve, the next equal division point of the first equal division point set, the lofting starting point of the first curve, and the The second curve lofting unit is configured to obtain the coordinate data of the next lofting point of the first curve according to the starting point of the second curve, the starting point of the first curve, the next equally divided point of the second equally divided point set, the lofting starting point of the first curve, and the coordinate data of the next lofting point of the first curve, and use the next lofting point of the first curve as the lofting starting point of the first curve, and the next equally divided point of the first equally divided point set as the starting point of the first curve; the second curve lofting unit is configured to obtain the coordinate data of the next lofting point of the second curve according to the starting point of the second curve, the starting point of the first curve, the next equally divided point of the second equally divided point set, the lofting starting point of the first curve, and the lofting starting point of the second curve, and use the next lofting point of the second curve as the lofting starting point of the second curve, and the next equally divided point of the second equally divided point set. The next equally divided point of the point set is used as the starting point of the second curve; the coordinate set generation unit is used to save the coordinate data of the next lofted point of the first curve in the first coordinate set, and save the coordinate data of the next lofted point of the second curve in the second coordinate set, to obtain the first coordinate set and the second coordinate set; the judgment unit is used to judge whether the next equally divided point of the first equally divided point set is the last point of the first equally divided point set; if so, obtain the lofting data of the guide plate according to the first coordinate set and the second coordinate set; if not, return to the first curve lofting unit to continue execution; The two-dimensional drawing module is used to draw a two-dimensional graph according to the lofting data to obtain a planar unfolded view of the guide plate.
5. The automatic lofting device for guide plates according to claim 4, characterized in that: The first curve lofting unit is further specifically configured to: With the lofting starting point of the first curve as the center of the circle and the distance between the starting point of the first curve and the next equally divided point of the first equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a first arc line; With the lofting starting point of the second curve as the center of the circle and the distance between the starting point of the second curve and the next equally divided point of the first equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a second arc line; According to the first arc and the second arc, the intersection point of the first arc and the second arc is calculated to obtain coordinate data of the next lofting point of the first curve.
6. The automatic lofting device for guide plates according to claim 4, characterized in that: The second curve lofting unit is further specifically configured to: With the lofting starting point of the second curve as the center of the circle and the distance between the starting point of the second curve and the next equally divided point of the second equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a third arc line; With the lofting starting point of the first curve as the center of the circle and the distance between the starting point of the first curve and the next equally divided point of the second equally divided point set as the radius, an arc is drawn on the two-dimensional plane to obtain a fourth arc line; According to the third arc and the fourth arc, the intersection point of the third arc and the fourth arc is calculated to obtain the coordinate data of the next setting out point of the second curve.
7. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored computer program; wherein, when the computer program is run, it controls the device where the computer-readable storage medium is located to execute the automatic lofting method for guide plates according to any one of claims 1 to 3.
8. A terminal device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements an automatic lofting method for a guide plate according to any one of claims 1 to 3 when executing the computer program.
Citation Information
Patent Citations
Construction drawing deepening design method for curved steel box bridge
CN108536973A