Method for automatically calculating size of intermediate product

The size of the products in the middle of the hull is extracted through automatic calculation methods, which solves the problem that it is difficult to obtain data accurately by manual operation, realizes precise production and data support, and simplifies the design process.

CN119293951APending Publication Date: 2025-01-10JIANGNAN SHIPYARD (GRP) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411305042.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-19
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

In ship design, due to the large number of parts and irregular edges, it is difficult to obtain the process and quantity information of intermediate products accurately by manual labor, making it difficult to achieve accurate production scheduling.

Method used

An automatic calculation method is used to calculate the intermediate product by determining the substrate and base surface of the intermediate product, extracting the profile and envelope profile projected on the base surface, discrete parts projection points, and calculating the reference projection straight line and its geometric relationship to calculate the intermediate product. size.

Benefits of technology

This method can accurately extract relevant data from the intermediate products of the hull, reduce the workload of designers to manually extract model data, and provide data support and machine learning training data sets. It is simple to operate and has wide applicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119293951A_ABST
    Figure CN119293951A_ABST
Patent Text Reader

Abstract

The invention provides an automatic calculation method for the size of an intermediate product, and the method specifically comprises the steps: determining a substrate of the intermediate product, and determining a base plane based on the substrate, the intermediate product comprising the substrate and a part disposed on the substrate; extracting the outline of the substrate projected on the base plane, and obtaining an envelope outline of the outline based on the outline; projecting the part on the base plane, dispersing the projected contour into projection points, and extracting the projection points outside the envelope contour range; obtaining a reference projection straight line through the projection points, and calculating the size of the intermediate product based on the geometrical relationship between the projection points and the reference projection straight line. The method is simple and convenient to operate and wide in applicability, and the workload of manually extracting data by designers is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of ship hull structure design and construction, and in particular to an automatic calculation method for the size of an intermediate product. Background Art

[0002] With the rapid development of digital design technology in the shipbuilding industry, digital design technology based on three-dimensional models has been widely used in the shipbuilding field. In the hull structure, the number of ship product parts is huge and the types are complex. At present, due to the large number of hull parts and irregular edges in production design, it is difficult to manually obtain the process and quantity information of intermediate products accurately, making it difficult to provide accurate input for production scheduling, and thus difficult to achieve precise production. Summary of the invention

[0003] In view of the above-mentioned shortcomings of the related art, an object of the present invention is to provide an automatic calculation method for the size of an intermediate product, so as to solve the problem of manual data extraction.

[0004] To achieve the above-mentioned and other related purposes, the present invention provides a method for automatically calculating the size of an intermediate product, the specific steps of the method comprising:

[0005] Determine a substrate of an intermediate product and determine a base surface based on the substrate, wherein the intermediate product includes the substrate and a part disposed on the substrate;

[0006] Extracting the outer contour of the substrate projected on the base surface, and obtaining the envelope contour of the envelope outer contour based on the outer contour;

[0007] Project the part onto the base surface and discretize the projected contour into projection points, and extract the projection points outside the envelope contour range;

[0008] The reference projection line is obtained through the projection point, and the size of the intermediate product is calculated based on the geometric relationship between the projection point and the reference projection line.

[0009] Optionally, the step of determining the substrate of the intermediate product is: searching for the intermediate product and extracting the substrate through the structure tree hierarchical relationship and structure name.

[0010] Optionally, the step of determining the base surface based on the substrate is: based on the extracted substrate, if the substrate is a curved surface, establishing a plane approximate to the curved surface as the base surface.

[0011] Optionally, the step of obtaining the envelope contour of the envelope contour based on the outer contour is: find four contour points on the outer contour in two mutually perpendicular directions, connect the four contour points in sequence to form a closed contour, and take the closed contour that encloses the outer contour and has the smallest enclosed area as the envelope contour.

[0012] Optionally, the step of projecting the part onto the base surface and discretizing the projected contour into projection points is: projecting the part onto the base surface and extracting points at turning points of the projection contour as projection points.

[0013] Optionally, the step of extracting the projection point outside the envelope contour is: successively determining whether the angle between the vector from the projection point to the envelope contour and the vector from the base surface center point to the projection point is greater than a predetermined value; if the angle is greater than the predetermined value, extracting the projection point.

[0014] Optionally, the step of obtaining a reference projection line through projection points is: randomly select two projection points to connect into a projection line, and if the remaining projection lines are all on the same side of a projection line, then the projection line is taken as the reference projection line.

[0015] Optionally, the calculating the size of the intermediate product based on the geometric relationship between the projection point and the reference projection line includes calculating the width and length of the intermediate product, and the specific steps of calculating the width are: if there is only one reference projection line, calculating the distances between the remaining projection points and the reference projection line, and taking the maximum distance as the width of the intermediate product; if there are multiple reference projection lines, obtaining the maximum distance between each reference projection line and the corresponding remaining projection points, and taking the minimum value of the maximum distances as the width of the intermediate product;

[0016] The specific steps for calculating the length are: projecting the distance between each projection point and the origin along the extension direction of the reference projection line and taking the difference between the maximum projection distance and the minimum projection distance as the length of the intermediate product.

[0017] Optionally, calculating the size of the intermediate product based on the geometric relationship between the projection points and the reference projection line includes calculating the height of the intermediate product, and the specific steps for calculating the height are: sequentially obtaining the projection distance of the distance from each projection point to the origin in the normal direction of the base surface, and taking the difference between the maximum projection distance and the minimum projection distance as the height of the intermediate product.

[0018] Optionally, the calculation of the size of the intermediate product based on the geometric relationship between the projection point and the reference projection line includes calculating the projection area of ​​the intermediate product, and the specific steps of calculating the projection area are: projecting the substrate onto the base surface and discretizing the projection contour of the substrate into projection points, extracting the projection points of the substrate and the projection points of the parts, randomly taking a reference line passing through the center point of the base surface on the base surface, rotating the reference line around the center point of the base surface by a certain angle, obtaining the projection point farthest from the center point of the base surface in the sector area, calculating the sector area with the projection point as the radius, and so on, summing up all the sector areas obtained after the reference line rotates one circle.

[0019] As described above, the automatic calculation method of the intermediate product size of the present invention has the following beneficial effects: the method can extract the relevant data of the intermediate product of the hull and store it in the database, providing data support for subsequent production management and providing a training data set for machine learning. The method is simple and convenient to operate, has wide applicability, and reduces the workload of designers to manually extract model data. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 Shown is a flow chart of a method for calculating the size of an intermediate product in an embodiment of the present invention.

[0021] Figure 2 Shown is a schematic diagram of calculating the assembly width in an embodiment of the present invention.

[0022] Figure 3 Shown is a schematic diagram of calculating the assembly projection area in an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.

[0024] For example, when describing the embodiments of the present invention in detail, for the sake of convenience, the cross-sectional view showing the device structure will not be partially enlarged according to the general scale, and the schematic view is only an example, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional space dimensions of length, width and depth should be included.

[0025] For ease of description, spatial relational terms such as "under", "below", "below", "below", "above", "on", etc. may be used herein to describe the relationship of one element or feature shown in the drawings to other elements or features. It will be understood that these spatial relational terms are intended to include other directions of the device in use or operation in addition to the directions depicted in the drawings. In addition, when a layer is referred to as being "between" two layers, it can be the only layer between the two layers, or there can be one or more intervening layers. As used herein, "between..." means including the end point values.

[0026] In the context of the present application, a structure in which a first feature is described as being "above" a second feature may include embodiments in which the first and second features are formed in direct contact, and may also include embodiments in which additional features are formed between the first and second features, such that the first and second features may not be in direct contact.

[0027] It should be noted that the illustrations provided in this embodiment are only used to illustrate the basic concept of the present invention in a schematic manner, and therefore the illustrations only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0028] like Figure 1 As shown, this embodiment provides a method for automatically calculating the size of an intermediate product, and the specific steps of the method include:

[0029] S1. Determine a substrate of an intermediate product and determine a base surface based on the substrate. The intermediate product includes the substrate and parts disposed on the substrate.

[0030] Specifically, the intermediate product of this embodiment can be, but is not limited to, an assembly. The entire hull model is first found through a structure tree, and then the specific assembly structure is found according to the hierarchical relationship and the structure name, and then the base plate and the parts built on the base plate are determined in the assembly model. After the base plate is determined, the assembly type can be determined according to the base plate, such as a plane assembly or a curved surface assembly; if the base plate is a straight plate, the base plate has a top surface and a bottom surface, and either the top surface or the bottom surface can be selected as the base surface; if the base plate is a curved surface, a plane similar to the curved surface is established as the base surface. Specifically, the determination of the base surface can be automatically obtained through the program. After the base surface is determined, the center point of the base surface can be extracted and stored in the form of three-dimensional coordinates.

[0031] After finding the assembled model through the structure tree, the process information such as the center of gravity and cross section of the assembly can be obtained based on the 3D model. All parts in the assembly can also be obtained based on the 3D model, and then the proportion of parts on both sides of the top and bottom surfaces of the substrate can be determined based on the obtained substrate, so as to determine the front and back information and the construction direction, thereby providing accurate management for production. The construction direction is represented in the form of a vector and stored in the form of 3D coordinates.

[0032] S2. Extracting the outer contour of the substrate projected onto the base surface, and obtaining an envelope contour of the envelope outer contour based on the outer contour.

[0033] Specifically, after determining the base surface, the contour of the substrate is projected onto the base surface. The substrate contour on the base surface includes not only the outer contour of the substrate, but also the contours of various holes and grooves on the substrate. At this time, the outer contour of the substrate is extracted (the outer contour is the contour located at the outermost circle of the contour line of the substrate projection).

[0034] Find four contour points on two mutually perpendicular directions on the contour. For example, two mutually perpendicular cross lines can be drawn. The four points where the cross lines intersect with the contour are contour points. By searching in this way, an infinite number of groups of contour points can be obtained. Each group of contour points is connected in sequence using straight lines to form a closed contour, and closed contours that cannot envelop the contour are excluded. Then, by comparing the area of ​​the closed area enclosed by the closed contours, the closed contour with the smallest area is taken as the enveloping contour. At this time, the contour points can be stored in the form of three-dimensional coordinates.

[0035] S3. Project the part onto the base surface and discretize the projected contour into projection points, and extract the projection points outside the envelope contour.

[0036] Specifically, the parts in the assembly are projected onto the base surface, the contour projected onto the base surface is discretized, and the turning points in the projection contour are extracted as projection points. At this time, only the projection points of the parts are retained on the base surface. All the projection points on the base surface can be divided into two categories, one is the projection points within the envelope contour range, and the other is the projection points outside the envelope contour range. In order to calculate the size of the assembly, the projection points outside the envelope contour range need to be extracted. The specific extraction steps are: take the vector from the projection point to the envelope contour and the vector from the center point of the base surface to the projection point to see if the angle is greater than a predetermined value. If the angle is greater than the predetermined value, it is judged that the projection point is outside the envelope contour range, and then the projection point is extracted. It should be noted that a vertical line perpendicular to the envelope contour is made from the projection point, and the vertical line is the vector from the projection point to the envelope contour. By repeating the above steps, each projection point is calculated and judged in turn, so as to extract all the projection points outside the envelope contour range.

[0037] S4. Obtain a reference projection line through the projection point, and calculate the size of the intermediate product based on the geometric relationship between the projection point and the reference projection line.

[0038] Specifically, take any two projection points to make a projection line. At this time, multiple projection lines can be obtained. Select one of the projection lines as the reference. If the other projection lines are on the same side of the projection line, the projection line can be selected as the reference projection line. Repeat the above steps to obtain multiple reference projection lines that meet the conditions. For example, as shown in the figure, point A, point B, point C and point D are all projection points, and line AB, line AC, line BD and line CD can all be used as reference projection lines that meet the conditions.

[0039] When calculating the width of the assembly, calculate the distance between the remaining projection points and the reference projection line, and take the maximum distance as the width of the intermediate product. For example, if there is only one reference projection line, when line AB is used as the reference projection line, calculate the distances from point C and point D to line AB respectively. The distance from point C to line AB is the largest, and take the distance from point C to line AB as the width of the assembly.

[0040] If there are multiple reference projection lines, it is necessary to use line AC, line BD and line CD as reference projection lines to calculate the distances of the remaining projection points from the corresponding reference projection lines. For example, when line AC is used as the reference projection line, the distance from point B to line AC is the largest. When line BD is used as the reference projection line, the distance from point A to line BD is the largest. When line CD is used as the reference projection line, the distance from point A to line CD is the largest. At this time, four maximum values ​​can be obtained, and then the minimum value of the four values ​​is taken as the width of the group.

[0041] When calculating the length of the assembly, the distance between each projection point and the origin is projected along the extension direction of the reference projection line and the difference between the maximum projection distance and the minimum projection distance is taken as the length of the intermediate product.

[0042] For example, straight line AB is used as the reference projection line. At this time, the extension direction of straight line AB is the direction of length. Then, the projection distances between each projection point and the origin on straight line AB are calculated. At this time, the difference between the maximum projection distance and the minimum projection distance is the length of the intermediate product.

[0043] When calculating the height of the assembly, obtain the projection distance of each projection point to the origin in the normal direction of the base surface in turn, and take the difference between the maximum projection distance and the minimum projection distance as the height of the intermediate product. The specific steps are: obtain the vector from each projection point to the origin in turn and multiply it with the base surface normal vector, obtain the maximum and minimum values, and take the difference as the height of the intermediate product.

[0044] When calculating the projection area of ​​the intermediate product, the substrate is projected onto the base surface and the projection contour of the substrate is discretized into projection points, that is, the substrate is projected onto the base surface, and the points at the turning points of the substrate contour are extracted as projection points. The projection points of the substrate and the projection points of the parts are extracted. A reference line passing through the center point of the base surface is randomly selected on the base surface. The reference line rotates around the center point of the base surface at a certain angle (for example, 2°). At this time, the sector area contains multiple projection points. The projection point farthest from the center point of the base surface in the sector area is obtained, and then the swept sector area is calculated with the distance between the projection point and the center point of the base surface as the radius. Repeat the above steps, and multiple sector areas will be obtained after the reference line rotates one circle. By summing up the multiple sector areas, the assembled projection area is obtained. For example, the reference line rotates 2° from OM to OP. At this time, the sector area contains multiple projection points, among which ON has the largest distance, so the projection point N is extracted, and then the sector area with a central angle of 2° is calculated with ON as the radius; then the reference line continues to rotate 2° from the OP position, and the same steps are repeated to calculate the next sector area. When the reference line rotates one circle, multiple sector-shaped areas will be obtained, and the sum of all sector-shaped areas will be calculated to get the projection area.

[0045] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A method for automatically calculating the size of an intermediate product, characterized in that: The specific steps of the method include: Determine a substrate of an intermediate product and determine a base surface based on the substrate, wherein the intermediate product includes the substrate and a part disposed on the substrate; Extracting the outer contour of the substrate projected on the base surface, and obtaining the envelope contour of the envelope outer contour based on the outer contour; Project the part onto the base surface and discretize the projected contour into projection points, and extract the projection points outside the envelope contour range; The reference projection line is obtained through the projection point, and the size of the intermediate product is calculated based on the geometric relationship between the projection point and the reference projection line.

2. The method for automatically calculating the size of an intermediate product according to claim 1, characterized in that: The step of determining the substrate of the intermediate product is: searching for the intermediate product and extracting the substrate through the structure tree hierarchical relationship and structure name.

3. The method for automatically calculating the size of an intermediate product according to claim 2, characterized in that: The step of determining the base surface based on the substrate is: based on the extracted substrate, if the substrate is a curved surface, a plane approximating the curved surface is established as the base surface.

4. The method for automatically calculating the size of an intermediate product according to claim 1, characterized in that: The step of obtaining the envelope contour of the envelope contour based on the outer contour is: find four contour points on two mutually perpendicular directions on the outer contour, connect the four contour points in sequence to form a closed contour, and take the closed contour that envelops the outer contour and has the smallest enclosed area as the envelope contour.

5. The method for automatically calculating the size of an intermediate product according to claim 1, characterized in that: The steps of projecting the part onto the base surface and discretizing the projected contour into projection points are: projecting the part onto the base surface and extracting points at turning points of the projection contour as projection points.

6. The method for automatically calculating the size of an intermediate product according to claim 1, characterized in that: The step of extracting the projection point outside the envelope contour range is: sequentially determining whether the angle between the vector from the projection point to the envelope contour and the vector from the base surface center point to the projection point is greater than a predetermined value; if the angle is greater than the predetermined value, extracting the projection point.

7. The method for automatically calculating the size of an intermediate product according to claim 1, characterized in that: The step of obtaining the reference projection line through the projection points is: randomly select two projection points to connect into a projection line, and if the remaining projection lines are all on the same side of a projection line, then the projection line is taken as the reference projection line.

8. The method for automatically calculating the size of an intermediate product according to claim 1, characterized in that: The calculation of the size of the intermediate product based on the geometric relationship between the projection point and the reference projection line includes calculating the width and length of the intermediate product. The specific steps of calculating the width are: if there is only one reference projection line, calculating the distances between the remaining projection points and the reference projection line, and taking the maximum distance as the width of the intermediate product; if there are multiple reference projection lines, obtaining the maximum distance between each reference projection line and the corresponding remaining projection points, and taking the minimum value of the maximum distances as the width of the intermediate product; The specific steps for calculating the length are: projecting the distance between each projection point and the origin along the extension direction of the reference projection line and taking the difference between the maximum projection distance and the minimum projection distance as the length of the intermediate product.

9. The method for automatically calculating the size of an intermediate product according to claim 1, characterized in that: The method of calculating the size of the intermediate product based on the geometric relationship between the projection points and the reference projection line includes calculating the height of the intermediate product. The specific steps of calculating the height are: sequentially obtaining the projection distance of the distance from each projection point to the origin in the normal direction of the base surface, and taking the difference between the maximum projection distance and the minimum projection distance as the height of the intermediate product.

10. The method for automatically calculating the size of an intermediate product according to claim 1, characterized in that: The method of calculating the size of the intermediate product based on the geometric relationship between the projection point and the reference projection line includes calculating the projection area of ​​the intermediate product. The specific steps of calculating the projection area are: projecting the substrate onto the base surface and discretizing the projection contour of the substrate into projection points, extracting the projection points of the substrate and the projection points of the parts, randomly selecting a reference line passing through the center point of the base surface on the base surface, rotating the reference line around the center point of the base surface by a certain angle, obtaining the projection point farthest from the center point of the base surface in the sector area, calculating the sector area with the projection point as the radius, and so on, summing up all the sector areas obtained after the reference line rotates one circle.