Method, device and electronic equipment for identifying a ship structure unit

CN117401114BActive Publication Date: 2026-07-14CHINESE CLASSIFICATION SOC

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINESE CLASSIFICATION SOC
Filing Date
2022-07-07
Publication Date
2026-07-14

Smart Images

  • Figure CN117401114B_ABST
    Figure CN117401114B_ABST
Patent Text Reader

Abstract

The application discloses a ship structure unit identification method and device and electronic equipment. The method comprises the following steps: acquiring a ship model to be identified, wherein the ship model comprises structure lines used for describing a ship structure; determining target boundary lines contained in the ship model according to attributes corresponding to the structure lines and a position relationship between the structure lines; generating one or more target boundary line groups according to a direction relationship between the target boundary lines and an included angle between the target boundary lines according to the target boundary lines; and determining structure units contained in the ship model according to the target boundary line groups. The ship structure unit identification process is realized automatically, and the modeling processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of shipbuilding, and more particularly to a method, apparatus, and electronic device for identifying ship structural units. Background Technology

[0002] In the process of ship design and construction, in order to improve design efficiency and accuracy, a corresponding ship model is usually built for the ship under design to accurately represent its geometric structure and other information.

[0003] In related technologies, the various structures of a ship in a model are typically represented by depicting corresponding structural lines. For subsequent design and manufacturing processes, it is necessary to identify the corresponding structural units, such as unit plates, based on these structural lines in the ship model, so that subsequent workflows can be carried out based on these structural units. However, in current ship design and manufacturing processes, engineers usually need to manually identify the corresponding structural units based on the ship model, resulting in low processing efficiency and adversely affecting the overall efficiency of ship design and construction.

[0004] Therefore, it is urgent to improve the relevant technologies in order to at least partially solve the above-mentioned technical problems. Summary of the Invention

[0005] To address the shortcomings of existing technologies, the main objective of this invention is to provide a method, apparatus, and electronic device for identifying ship structural units, thereby achieving automated identification of ship structural units and improving corresponding processing efficiency.

[0006] To achieve the above objectives, in a first aspect, the present invention provides a method for identifying ship structural units, the method comprising:

[0007] Obtain a ship model to be identified, the ship model including structural lines used to describe the ship's structure;

[0008] Based on the attributes corresponding to the structural lines and the positional relationships between the structural lines, the target edge lines included in the ship model are determined;

[0009] Based on the orientation relationship between the target edges and the included angle between the target edges, generate one or more target edge groups according to the target edges;

[0010] Based on the target edge group, determine the structural units contained in the ship model.

[0011] In some embodiments, determining the target edge lines included in the ship model based on the attributes corresponding to the structural lines and the positional relationships between the structural lines includes:

[0012] Query the first intersection point between the structural lines, and determine the first intersection point where the intersecting structural lines have different attributes as the target intersection point;

[0013] The portion of the structural line located between the two target intersection points is defined as the target edge line.

[0014] In some embodiments, the method further includes:

[0015] Based on the attributes corresponding to the structural lines and the positional relationship between the structural lines, determine the structural lines that need to be segmented and segment them accordingly;

[0016] Based on the segmented structure lines and the structure lines that do not need to be segmented, generate the target structure lines;

[0017] The step of querying the first intersection point between the structural lines and determining the first intersection point with different attributes of the intersecting structural lines as the target intersection point includes:

[0018] Query the first intersection point between the target structure lines, and determine the first intersection point where the intersecting target structure lines have different attributes as the target intersection point.

[0019] In some embodiments, the method includes:

[0020] Generate a starting path, which includes two target edges that it passes through, and the starting point of the starting path is the first endpoint, the middle point is the second endpoint, and the direction point is the third endpoint;

[0021] Generate an endpoint set containing the first endpoint, the second endpoint, and the third endpoint, and a path set containing the target edge lines traversed by the starting path;

[0022] The step of generating one or more target edge group according to the direction relationship between the target edges and the included angle between the target edges includes:

[0023] The first path is defined as the path whose parameters satisfy the first preset condition among the paths in the path set that take the midpoint of the previous path as the starting point, the direction point of the previous path as the midpoint, and contain two target edges. The parameters are determined based on the direction relationship of the paths, the angle between the target edges contained in the path, and the direction relationship of the initial path.

[0024] When the parameters meet the third preset condition, the first path is added to the path set;

[0025] If the direction point of the first path does not exist in the endpoint set, the direction point of the first path is added to the endpoint set.

[0026] The above operations are continuously performed until the endpoint set contains the direction point of the first path, and then the target edge group is generated based on the path set.

[0027] In some embodiments, generating the starting path includes:

[0028] The query finds a path that starts at the initial endpoint of the target intersection and includes both of the target edges;

[0029] The path whose included angle between the corresponding target edges satisfies the second preset condition is the initial path.

[0030] In some embodiments, the method further includes:

[0031] The structural unit whose boundary matches the boundary of the compartment in the ship model is identified by the element attribute of the compartment, and / or

[0032] The element attribute corresponding to the structural element whose boundary coincides with the boundary of the plate row in the ship model is defined as plate row.

[0033] In some embodiments, the target edge line includes yielding stiffeners and buckling stiffeners, and the element attribute corresponding to the structural element whose boundary coincides with the boundary of the plate row in the ship model is the plate row, including:

[0034] The structural element with the element attribute of plate column is identified as the target element;

[0035] Based on the structural unit containing at least the yield ribs, a yield plate grid is generated, and / or

[0036] A buckling lattice is generated based on the structural unit containing at least the buckling stiffener.

[0037] In some embodiments, the method further includes:

[0038] The intersection point between the first structural line and the second structural line is determined as the second intersection point, wherein the attribute corresponding to the first structural line is a yielding tendon or a buckling tendon.

[0039] Generate corresponding reinforcing ribs between every two second intersection points; and / or,

[0040] When the endpoints of at least two connected third structural lines are the second intersection point, corresponding reinforcing ribs are generated according to all the third structural lines, wherein the third structural lines are skeletons.

[0041] Secondly, this application provides a device for identifying ship structural units, the device comprising:

[0042] An acquisition module is used to acquire a ship model to be identified, wherein the ship model includes structural lines used to describe the ship's structure;

[0043] The target edge line generation module is used to determine the target edge lines contained in the ship model based on the attributes corresponding to the structural lines and the positional relationship between the structural lines.

[0044] The target edge group generation module is used to generate one or more target edge groups based on the direction relationship between the target edge lines and the included angle between the target edge lines.

[0045] The identification module is used to determine the structural units contained in the ship model based on the target edge group.

[0046] Thirdly, this application provides an electronic device, the electronic device comprising:

[0047] One or more processors;

[0048] and a memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the following operations:

[0049] Obtain a ship model to be identified, the ship model including structural lines used to describe the ship's structure;

[0050] Based on the attributes corresponding to the structural lines and the positional relationships between the structural lines, the target edge lines included in the ship model are determined;

[0051] Based on the orientation relationship between the target edges and the included angle between the target edges, generate one or more target edge groups based on the target edges;

[0052] Based on the target edge group, determine the structural units contained in the ship model.

[0053] The beneficial effects achieved by this invention are as follows:

[0054] This application provides a method for identifying ship structural units, including acquiring a ship model to be identified, the ship model including structural lines for describing the ship structure; determining target edge lines contained in the ship model according to the attributes corresponding to the structural lines and the positional relationship between the structural lines; generating one or more target edge line groups according to the orientation relationship between the target edge lines and the included angle between the target edge lines; and determining the structural units contained in the ship model according to the target edge line groups. This application achieves automated identification of structural units in the ship model by dividing the structural lines into target edge lines according to their attributes and positional relationships, and further dividing them into target edge line groups according to the orientation relationship and included angle between the target edge lines. By identifying the target edge line groups, the corresponding structural units can be further determined, thus realizing automated identification of structural units in the ship model. This allows subsequent modelers to perform further processing based on the structural units, improving the processing efficiency of ship modeling. Attached Figure Description

[0055] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0056] Figure 1 This is a schematic diagram of the hardware environment for an optional ship structure identification method provided in an embodiment of this application;

[0057] Figure 2 This is a schematic diagram of an optional ship model provided in the embodiment of the application itself;

[0058] Figures 3A-3B This is an optional polyline schematic diagram provided in an embodiment of this application;

[0059] Figure 4 This is a schematic diagram of an optional structural unit identification process provided in an embodiment of this application;

[0060] Figure 5 This is a schematic diagram of an optional target edge group identification process provided in an embodiment of this application;

[0061] Figure 6 This is a schematic diagram of an optional ship model with labeled structural units provided in an embodiment of this application;

[0062] Figure 7 This is a flowchart illustrating an optional method for identifying ship structural units provided in an embodiment of this application;

[0063] Figure 8This is a schematic diagram of an optional ship structural unit identification device provided in an embodiment of this application;

[0064] Figure 9 This is a schematic diagram of an optional electronic device structure provided in an embodiment of this application. Detailed Implementation

[0065] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0066] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0067] According to one aspect of the embodiments of this application, this application provides a method for identifying ship structures. Optionally, in the embodiments of this application, the above-described identification method can be applied to, for example... Figure 1 The hardware environment shown consists of an image acquisition terminal 102 and an image processing terminal 104. For example... Figure 1 As shown, the image acquisition terminal 102 is connected to the image processing terminal 104 via a network to enable interaction between the two.

[0068] The aforementioned network may include, but is not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth, infrared. The ship structural unit identification method of this application embodiment can be executed by the image acquisition terminal 102 or the image processing terminal 104 individually, or by both together.

[0069] Taking the image processing terminal 104 as the sole operator, i.e., the image processing terminal 104 independently acquires the ship model and identifies its structural units, as an example, the above method can include the following steps:

[0070] S2010, Obtain the ship model to be identified;

[0071] Among them, see Figure 2As shown, the aforementioned ship model can be a structural model of a ship, wherein the ship's structure is depicted by structural lines, and the attributes corresponding to each structural line are recorded. In the embodiments of this application, the aforementioned attributes may include structural attributes corresponding to the structural lines, such as yield reinforcement, buckling reinforcement, etc., or may include categories corresponding to the structural lines, such as plate frame, plate, reinforcement, etc., which are not limited in this application.

[0072] Preferably, the ship model may include the ship's transverse bulkheads and transverse frames.

[0073] S2020. Based on the attributes corresponding to the structural lines and the positional relationship between the structural lines, determine the target edge lines included in the ship model;

[0074] Before determining the target edges included in the ship model, the ship model needs to be preprocessed. This preprocessing includes:

[0075] 1. Determine whether the geometric properties of the transverse plates, ribs, and stiffeners in the ship model are all expressed as polylines, i.e., as a set of points ordered along one direction, and whether each is a closed curve. See Figure 3. Figure 3A The polyline representation of the graph is N,[1,2], indicating that it passes through points 1 and 2 and is a non-closed curve; Figure 3B The polyline representation of the graph is Y,[1,2,3,4,5,6], indicating that it passes through points 1,2,3,4,5,6 and is a closed curve.

[0076] 2. Determine whether the endpoints of all transverse ribs in the ship model intersect with the geometric lines of the plate frame or other transverse ribs.

[0077] If either or both of the above conditions are not met, the modeler can issue a corresponding instruction to modify the ship model to meet the preprocessing requirements.

[0078] After the ship model preprocessing is complete, the target edge line identification process can be performed. See some alternative implementations. Figure 4 As shown, the identification process includes steps S2021-S2022 of segmenting lines and assigning type attributes, step S2023 of querying line intersections, step S2024 of generating crossbeam elements, and steps S2028 and S2030 of generating the smallest element, i.e., the target edge line group. Specifically, this process includes:

[0079] S2021. Based on the attributes corresponding to the structural lines and the positional relationship between the structural lines, determine the structural lines that need to be segmented and segment them accordingly.

[0080] The process of determining and segmenting structural lines based on their corresponding attributes and positional relationships includes at least one of the following:

[0081] (1) Check whether the structural lines with the attribute of horizontal panel frame and the structural lines with the attribute of vertical panel frame overlap;

[0082] When there is an overlap and the structural line with the attribute of horizontal frame or the attribute of vertical frame has a free edge at the overlap position, the boundary of the structural line with the attribute of horizontal frame or the structural line with the attribute of vertical frame is segmented into two structural lines, and the attributes of frame intersection line and frame free edge line are assigned respectively.

[0083] Among them, the structural lines corresponding to the intersecting lines of the panels and frames are polylines corresponding to the overlapping parts of the outer boundary of the transverse panel and the longitudinal panel; the structural lines corresponding to the free edge lines of the panels and frames are polylines corresponding to the non-overlapping parts of the outer boundary of the transverse panel and the longitudinal panel, as well as closed polylines that enclose the inner boundary of the transverse panel.

[0084] (2) Check whether there is an intersection point between the structural line with the attribute of intersecting the board and frame, the free edge line of the board and frame, and the projection line of the board and frame. If there is, segment the corresponding structural line at the corresponding intersection point, and the structural line attribute obtained after segmentation is still the original attribute.

[0085] That is, taking the segmentation of a structural line with the attribute of intersecting plate and frame as an example, the corresponding attribute of the two structural lines obtained by segmentation is still intersecting plate and frame.

[0086] Among them, the structural line corresponding to the projection line of the plate frame refers to the longitudinal plate frame line inside the horizontal plate frame, which is a non-closed polyline.

[0087] (3) Check whether there is a turning point in the structure line obtained after segmentation by the above two segmentation rules. If there is, segment at the turning point and the attributes of the structure line obtained after segmentation are still the original attributes.

[0088] A turning point is a point where the slope of the line segment formed by its preceding and following points differs.

[0089] S2022. Generate the target structure line based on the structure line that does not need to be segmented and the structure line obtained by segmentation;

[0090] Depending on the type, there are also structure lines that do not require segmentation. These structure lines need to be assigned corresponding attributes, which include:

[0091] Panel projection lines: including the longitudinal panel lines inside the horizontal panel, which are non-closed polylines;

[0092] Yield reinforcement line: includes a polyline representing the trajectory of transverse reinforcement, with the structural property of yield reinforcement;

[0093] A buckling rib line consists of a multi-segment line representing the trajectory of a transverse member, with the structural property of buckling rib. When a transverse member simultaneously possesses both yielding and buckling rib structural properties, it can be recorded as a single line containing both structural properties.

[0094] Plate array outline: including closed polylines that enclose the transverse plate array boundary;

[0095] Cabin outline: including closed polylines that form the boundaries of the transverse plate array.

[0096] When the ship model does not have any structural lines that need to be segmented, the target structural lines can be all structural lines of the ship model.

[0097] S2023. Query the first intersection point between the target structural lines, and determine the first intersection point with different attributes of the intersecting structural lines as the target intersection point;

[0098] Specifically, you can query the intersection points of the plate frame and the skeleton with line attributes in the target structural line, determine these intersection points as target intersection points, and record the attributes of the two structural lines at each target intersection point.

[0099] S2024. Generate a single-span beam calculation unit;

[0100] Specifically, the process of generating single-span beam calculation elements includes steps S2025-S2027:

[0101] S2025. Determine the intersection point between the first structural line and the second structural line as the second intersection point, wherein the attribute corresponding to the first structural line is yield reinforcement or buckling reinforcement.

[0102] It can query all structural lines that intersect with the first structural line (i.e., the yield reinforcement or buckling reinforcement) and their corresponding intersection points. When there is a structural line among the intersecting structural lines with the attributes of plate-frame intersection line, plate-frame free edge line, or plate-frame projection line, the structural line that intersects with the first structural line and has the above attributes is determined as the second structural line, and the intersection point between the first structural line and the second structural line is determined as the second intersection point.

[0103] S2026. Generate corresponding reinforcing ribs between every two second intersection points;

[0104] Specifically, a Stiffener can be generated at every two second intersection points, where Stiffener.EndPoint1 / 2 represents the coordinates of the two single-span boundary points.

[0105] S2027. When the endpoints of at least two connected third structural lines are second intersections, corresponding reinforcing ribs are generated according to all the third structural lines, wherein the third structural lines are skeletons.

[0106] Specifically, when there are at least two connected skeletons whose first and last endpoints are the second endpoints, a stiffener can be generated for each skeleton, and the first and last endpoints of the skeleton can be taken across the boundary point.

[0107] The above steps enable the automated generation of stiffeners. Furthermore, after determining all single-span boundary points, corresponding single-span beam calculation elements can be generated based on these boundary points for subsequent modeling and calculation processes.

[0108] S2028. The portion of the structure line located between the intersection points of two targets is defined as the target edge line.

[0109] Specifically, a target edge, or minimum edge, can be generated for the portion of each line segment between the intersections of two adjacent lines. This target edge is a new polyline object that references the endpoints of the original structure line. To facilitate subsequent calculations, this target edge can be associated with the original structure line.

[0110] S2030. Based on the orientation relationship between target edges and the included angle between target edges, generate one or more target edge groups according to the target edges.

[0111] Specifically, refer to Figure 5 The process of generating the target edge group described above includes:

[0112] S2031, Generate a list of line intersections, a list of minimum edges, and a list of minimum units;

[0113] The list of line intersections stores all the target intersections mentioned above, i.e., line intersections; the list of minimum edges stores all the target edges mentioned above, i.e., minimum edges; and the list of minimum units stores the target edge groups obtained later, i.e., minimum units.

[0114] Among them, reference Figure 5 As shown, the list of line intersections can be represented as [pi], the list of minimum edges can be represented as [ei], and the list of minimum units can be represented as [mi].

[0115] While generating the list of minimum edges [ei], we can also initialize and generate the minimum edge index k[ei] corresponding to each minimum edge.

[0116] Among them, for the smallest edge with attributes of intersecting line of board and free edge of board, i.e. target edge, its corresponding k[ei] = 1 is 1, and for the smallest edge with other attributes, k[ei] = 2 is 2.

[0117] S2032. Determine if the line intersection point list [pi] is empty. If it is empty, proceed to step S2039. If it is not empty, proceed to step S2033.

[0118] S2033. Select a point from [pi] as the initial endpoint as the starting point p0. Find all the minimum edges associated with the starting point p0 in [ei] and form a list p0.[ei] based on all the associated minimum edges. Delete p0 from [pi].

[0119] Specifically, a point can be randomly selected as the starting point, or the first point in [pi] can be selected as the starting point, etc., and this application does not limit this. In some implementations, all the minimum edges associated with the starting point p0 include all the minimum edges that pass through the starting point p0, i.e., the target edges.

[0120] S2034. When list p0.[ei] is empty, return to step S2032; otherwise, proceed to step S2035.

[0121] That is, if the current starting point does not have an associated minimum edge, then return to step S2032 so that a new point can be selected from the line intersection list [pi] as the initial endpoint.

[0122] S2035. Traverse p0.[ei], find all paths that start from P0 and pass through two target edges; and determine the paths whose included angle between the target edges satisfies the second preset condition as the initial paths.

[0123] Specifically, in some embodiments, the second preset condition may be that the included angle between the target edges exceeds a preset threshold. The preset threshold can be set according to actual needs.

[0124] In other implementations, the second preset condition can be the maximum value of the corresponding function among all paths. The function can be calculated based on the angle to determine the function value for each path, and the path with the largest function value can be identified as the target path.

[0125] The angle calculation function mentioned above can be represented by A(p0, p1, p2), where p0 represents the starting point of the path, p1 represents the midpoint of the path, i.e., the endpoint between the two target edges, and p2 represents the direction point of the path, i.e., the endpoint at the end.

[0126] Specifically, the angle calculation function mentioned above can be:

[0127]

[0128] Where p0.x represents the x-coordinate of p0, p1.x represents the x-coordinate of p1; p2.x represents the x-coordinate of p2; p0.y represents the y-coordinate of p0, p1.y represents the y-coordinate of p1; and p2.y represents the y-coordinate of p2.

[0129] When the angle between the lines connecting points p0, p1, and p2 is 0°, the value of the angle calculation function A is 2.

[0130] When the angle between the lines connecting points p0, p1, and p2 is 90°, the function value of the angle calculation function A is 1.

[0131] When the angle between the lines connecting points p0, p1, and p2 is 180°, the function value of the angle calculation function A is 0.

[0132] Once the initial path is determined, the midpoint of the initial path can be recorded as pc, and the direction point of the initial endpoint can be recorded as pn. That is, pc is the other endpoint of the target edge line connected to the initial endpoint p0 in the initial path, and pn is the other endpoint of the other target edge line, that is, the target edge line connected to pc.

[0133] It can generate a set of endpoints containing the three endpoints of the initial path, and a set of paths containing the target edge of the initial path.

[0134] S2036. Determine the directional relationships corresponding to the initial path;

[0135] Specifically, the function can be calculated based on the positive direction to determine the function value corresponding to the initial path and use it as the corresponding direction relationship, and the function value corresponding to the initial path can be recorded as OB.

[0136] The positive direction calculation function can be represented as 0(p0, p1, p2), where p0 represents the starting point of the path, p1 represents the middle point of the path, i.e., the endpoint between the two target edges, and p2 represents the direction point of the path, i.e., the endpoint at the end.

[0137] The above positive direction calculation function can be:

[0138] O(p0, p1, p2)=sign((p0.x-p1.x)(p2.y-p1.y)-(p0.y-p1.y)(p2.x-p1.x))

[0139] Where p0.x represents the x-coordinate of p0, p1.x represents the x-coordinate of p1, p2.x represents the x-coordinate of p2, p0.y represents the y-coordinate of p0, p1.y represents the y-coordinate of p1, and p2.y represents the y-coordinate of p2.

[0140] When the direction relationship of points p0, p1, and p2 is clockwise, the function value corresponding to the positive direction is 1.

[0141] When the directions of points p0, p1, and p2 form a straight line, the function value corresponding to the positive direction calculation function is 0.

[0142] When the directions of points p0, p1, and p2 are counterclockwise, the function value corresponding to the function calculated in the positive direction is -1.

[0143] S2037. Traverse pi.[ei] and find a path containing two target edges with the midpoint of the previous path as the starting point and the direction point of the previous path as the midpoint. When the direction point of the found path is a point that has appeared in the endpoint set, proceed to step S2038. If none of the found direction points are points that have appeared in the endpoint set, proceed to step S2040.

[0144] S2038. Generate the target edge group and add the generated target edge group to the minimum unit list [mi].

[0145] Specifically, the generated target edge group contains all the target edges included in the corresponding path set, that is, it includes all the target edges traversed during the corresponding traversal. In other words, the target edge group represents the set of target edges traversed by all paths when the points appear in the endpoint set are reached.

[0146] Specifically, after the target edge group is generated, the value of the minimum edge index k[ei] corresponding to all target edges contained in the target edge group can be reduced by 1, and the process can be returned to step S2032.

[0147] S2039. When the minimum edge index k[ei] corresponding to all target edges is 0, determine that the obtained minimum unit list [mi] is a complete list, and end the process;

[0148] If the minimum edge index k[ei] corresponding to the target edge is not 0, put the points contained in the polyline corresponding to the target edge where k[ei] is not 0 into [pi], and return to step 2033;

[0149] S2040. Calculate the parameters corresponding to each path, and determine the path whose parameters satisfy the first preset condition as the first path; and proceed to step S2041.

[0150] Specifically, the above parameter values ​​can be represented by CR, and CR = OB * O(p0, p1, p2) * A(p0, p1, p2), where OB is the orientation relationship corresponding to the initial path, O(p0, p1, p2) represents the positive direction function value corresponding to the path, and A(p0, p1, p2) represents the angle calculation function value corresponding to the path.

[0151] The first preset condition may include determining the path with the largest parameter value among all paths as the first path.

[0152] S2041. When the parameter value does not exceed the preset threshold, return to step S2037. When the parameter value exceeds the preset threshold, take the midpoint of the current path as the starting point p0, query all target edges associated with the new starting point from the minimum edge list [ei] to form a list p0.[ei], delete p0 from the line intersection list, and then return to step S2034.

[0153] Specifically, when the parameter value does not exceed the preset threshold, the direction point corresponding to the first path can be stored in the endpoint set, and the target edge line of the first path can be stored in the path set.

[0154] After the process of creating the target edge group is completed, i.e., after a complete list of minimum units is formed in step S2039, it can be determined that the process of generating one or more target edge groups according to the target edge is complete.

[0155] S2050. Based on the target edge group, generate the corresponding structural elements and determine that the generated structural elements are the structural elements contained in the ship model.

[0156] Specifically, each target edge group can be defined as a structural unit.

[0157] See Figure 6 , Figure 6 A schematic diagram of a ship model labeled with structural units is shown. Each structural unit can represent a surface or plate of the ship. The identification process disclosed in this application enables automated identification of structural units in the ship model, significantly improving the processing efficiency of the corresponding ship modeling.

[0158] To facilitate subsequent modeling processes, after generating structural elements, their corresponding element properties can be determined. Specifically, this determination process may include:

[0159] S2051. Determine the element attribute of the structural element whose boundary matches the boundary of the compartment in the ship model as a compartment, and / or,

[0160] Specifically, the boundaries of each compartment in the ship model can be identified based on the ship model. When the boundary of any structural unit matches all or at least partially the boundary of the corresponding compartment, the unit attribute of that structural unit can be determined as a compartment.

[0161] S2052. Determine the element attribute of the structural element whose boundary coincides with the boundary of the plate row in the ship model as the plate row;

[0162] Specifically, the boundaries of each plate row in the ship model can be identified based on the ship model. When the boundary of any structural unit matches all or at least partially the boundary of the corresponding plate row, the element attribute of that structural unit can be determined as a plate row.

[0163] Specifically, for structural elements with the element attribute of plate array, the corresponding EPP can be generated.

[0164] For structural elements with the element property of plate array, their properties can be further determined, i.e. Figure 4 The process of generating yield lattices and buckling lattices, as shown, specifically includes:

[0165] S2053. Determine the structural element with the element attribute of plate row as the target element;

[0166] S2054. Determine that the structural unit containing at least yield ribs is a yield plate grid.

[0167] S2055. Determine that the structural unit containing at least buckling stiffeners is a buckling plate grid.

[0168] Specifically, yielding slabs can include structural lines such as yielding stiffener lines, slab-frame intersection lines, slab-frame free edge lines, and slab-frame projection lines. Buckling slabs can include structural lines such as buckling stiffener lines, slab-frame intersection lines, slab-frame free edge lines, and slab-frame projection lines.

[0169] Based on the unit attributes of the identified structural units, modelers can perform further modeling operations, which further saves the manpower required for ship modeling and processing and improves the corresponding processing efficiency.

[0170] According to another aspect of the embodiments of this application, this application provides a method for identifying ship structural units, such as... Figure 7 As shown, the method includes:

[0171] 710. Obtain the ship model to be identified, wherein the ship model includes structural lines used to describe the ship's structure;

[0172] 720. Based on the attributes corresponding to the structural lines and the positional relationships between the structural lines, determine the target edge lines included in the ship model;

[0173] 730. Based on the orientation relationship between the target edges and the included angle between the target edges, generate one or more target edge groups according to the target edges;

[0174] 740. Based on the target edge group, determine the structural units contained in the ship model.

[0175] In some implementations, determining the target edge lines included in the ship model based on the attributes corresponding to the structural lines and the positional relationships between the structural lines includes:

[0176] Query the first intersection point between the structural lines, and determine the first intersection point where the intersecting structural lines have different attributes as the target intersection point;

[0177] The portion of the structural line located between the two target intersection points is defined as the target edge line.

[0178] In some embodiments, the method further includes:

[0179] Based on the attributes corresponding to the structural lines and the positional relationship between the structural lines, determine the structural lines that need to be segmented and segment them accordingly;

[0180] Based on the segmented structure lines and the structure lines that do not need to be segmented, generate the target structure lines;

[0181] The step of querying the first intersection point between the structural lines and determining the first intersection point with different attributes of the intersecting structural lines as the target intersection point includes:

[0182] Query the first intersection point between the target structure lines, and determine the first intersection point where the intersecting target structure lines have different attributes as the target intersection point.

[0183] In some embodiments, the method includes:

[0184] Generate a starting path, which includes two target edges that it passes through, and the starting point of the starting path is the first endpoint, the middle point is the second endpoint, and the direction point is the third endpoint;

[0185] Generate an endpoint set containing the first endpoint, the second endpoint, and the third endpoint, and a path set containing the target edge lines traversed by the starting path;

[0186] The step of generating one or more target edge group according to the direction relationship between the target edges and the included angle between the target edges includes:

[0187] The first path is defined as the path whose parameters satisfy the first preset condition among the paths in the path set that take the midpoint of the previous path as the starting point, the direction point of the previous path as the midpoint, and contain two target edges. The parameters are determined based on the direction relationship of the paths, the angle between the target edges contained in the path, and the direction relationship of the initial path.

[0188] When the parameters meet the third preset condition, the first path is added to the path set;

[0189] If the direction point of the first path does not exist in the endpoint set, the direction point of the first path is added to the endpoint set.

[0190] The above operations are continuously performed until the endpoint set contains the direction point of the first path, and then the target edge group is generated based on the path set.

[0191] In some implementations, generating the starting path includes:

[0192] The query finds a path that starts at the initial endpoint of the target intersection and includes both of the target edges;

[0193] The path whose included angle between the corresponding target edges satisfies the second preset condition is the initial path.

[0194] In some embodiments, the method further includes:

[0195] The structural unit whose boundary matches the boundary of the compartment in the ship model is identified by the element attribute of the compartment, and / or

[0196] The element attribute corresponding to the structural element whose boundary coincides with the boundary of the plate row in the ship model is defined as plate row.

[0197] In some embodiments, the target edge line includes yielding stiffeners and buckling stiffeners, and the element attribute corresponding to the structural element whose boundary coincides with the boundary of the plate row in the ship model is a plate row, including:

[0198] The structural element with the element attribute of plate column is identified as the target element;

[0199] Based on the structural unit containing at least the yield ribs, a yield plate grid is generated, and / or

[0200] A buckling lattice is generated based on the structural unit containing at least the buckling stiffener.

[0201] In some embodiments, the method further includes:

[0202] The intersection point between the first structural line and the second structural line is determined as the second intersection point, wherein the attribute corresponding to the first structural line is a yielding tendon or a buckling tendon.

[0203] Generate corresponding reinforcing ribs between every two second intersection points; and / or,

[0204] When the endpoints of at least two connected third structural lines are the second intersection point, corresponding reinforcing ribs are generated according to all the third structural lines, wherein the third structural lines are skeletons.

[0205] In another aspect of the embodiments of this application, a device for identifying ship structural units is also provided, see [link to relevant documentation]. Figure 8 As shown, the device includes:

[0206] The acquisition module 810 is used to acquire a ship model to be identified, wherein the ship model includes structural lines used to describe the ship structure;

[0207] The target edge line generation module 820 is used to determine the target edge line contained in the ship model based on the attributes corresponding to the structural lines and the positional relationship between the structural lines.

[0208] The target edge group generation module 830 is used to generate one or more target edge groups based on the direction relationship between the target edge lines and the included angle between the target edge lines.

[0209] The identification module 840 is used to determine the structural units contained in the ship model based on the target edge group.

[0210] In some implementations, the target edge generation module is also used to query the first intersection point between the structural lines and determine the first intersection point with different attributes of the intersecting structural lines as the target intersection point;

[0211] The portion of the structural line located between the two target intersection points is defined as the target edge line.

[0212] In some implementations, the target edge line generation module is further configured to determine the structural lines that need to be segmented and segment them based on the attributes corresponding to the structural lines and the positional relationship between the structural lines.

[0213] Based on the segmented structure lines and the structure lines that do not need to be segmented, generate the target structure lines;

[0214] Query the first intersection point between the target structure lines, and determine the first intersection point where the intersecting target structure lines have different attributes as the target intersection point.

[0215] In some implementations, the target edge group generation module is also used for

[0216] Generate a starting path, which includes two target edges that it passes through, and the starting point of the starting path is the first endpoint, the middle point is the second endpoint, and the direction point is the third endpoint;

[0217] Generate an endpoint set containing the first endpoint, the second endpoint, and the third endpoint, and a path set containing the target edge lines traversed by the starting path;

[0218] The first path is defined as the path whose parameters satisfy the first preset condition among the paths in the path set that take the midpoint of the previous path as the starting point, the direction point of the previous path as the midpoint, and contain two target edges. The parameters are determined based on the direction relationship of the paths, the angle between the target edges contained in the path, and the direction relationship of the initial path.

[0219] When the parameters meet the third preset condition, the first path is added to the path set;

[0220] If the direction point of the first path does not exist in the endpoint set, the direction point of the first path is added to the endpoint set.

[0221] The above operations are continuously performed until the endpoint set contains the direction point of the first path, and then the target edge group is generated based on the path set.

[0222] In some embodiments, the target edge group generation module is further used for

[0223] The query finds a path that starts at the initial endpoint of the target intersection and includes both of the target edges;

[0224] The path whose included angle between the corresponding target edges satisfies the second preset condition is the initial path.

[0225] In some embodiments, the identification module is further configured to determine that the structural unit whose boundary matches the boundary of a compartment in the ship model has the corresponding unit attribute as a compartment, and / or

[0226] The element attribute corresponding to the structural element whose boundary coincides with the boundary of the plate row in the ship model is defined as plate row.

[0227] In some embodiments, the target edge line includes yield ribs and buckling ribs, and the identification module is further configured to generate a yield plate grid based on the structural unit containing at least the yield ribs, and / or

[0228] A buckling lattice is generated based on the structural unit containing at least the buckling stiffener.

[0229] In some embodiments, the identification module is further configured to determine the intersection point between the first structural line and the second structural line as the second intersection point, wherein the attribute corresponding to the first structural line is a yielding tendon or a buckling tendon;

[0230] Generate corresponding reinforcing ribs between every two second intersection points; and / or,

[0231] When the endpoints of at least two connected third structural lines are the second intersection point, corresponding reinforcing ribs are generated according to all the third structural lines, wherein the third structural lines are skeletons.

[0232] In another aspect of this application, an electronic device is provided, including: one or more processors; and a memory associated with the one or more processors, the memory storing program instructions, which, when read and executed by the one or more processors, perform the following operations:

[0233] Obtain a ship model to be identified, the ship model including structural lines used to describe the ship's structure;

[0234] Based on the attributes corresponding to the structural lines and the positional relationships between the structural lines, the target edge lines included in the ship model are determined;

[0235] Based on the orientation relationship between the target edges and the included angle between the target edges, generate one or more target edge groups based on the target edges;

[0236] Based on the target edge group, determine the structural units contained in the ship model.

[0237] in, Figure 9 An exemplary architecture of an electronic device is shown, which may include a processor 1510, a video display adapter 1511, a disk drive 1512, an input / output interface 1513, a network interface 1514, and a memory 1520. The processor 1510, video display adapter 1511, disk drive 1512, input / output interface 1513, network interface 1514, and memory 1520 can communicate with each other via a bus 1530.

[0238] The processor 1510 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solution provided in this application.

[0239] The memory 1520 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1520 can store the operating system 1521 for controlling the operation of the electronic device 1500, and the basic input / output system (BIOS) 1522 for controlling the low-level operations of the electronic device 1500. Additionally, it can store a web browser 1523, a data storage management system 1524, and an icon font processing system 1525, etc. The aforementioned icon font processing system 1525 can be the application program that specifically implements the aforementioned steps in this embodiment. In summary, when the technical solution provided in this application is implemented through software or firmware, the relevant program code is stored in the memory 1520 and is called and executed by the processor 1510.

[0240] Input / output interface 1513 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touch screens, microphones, various sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, etc.

[0241] Network interface 1514 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0242] Bus 1530 includes a pathway for transmitting information between various components of the device, such as processor 1510, video display adapter 1511, disk drive 1512, input / output interface 1513, network interface 1514, and memory 1520.

[0243] In addition, the electronic device 1500 can also obtain information on specific claim conditions from the virtual resource object claim condition information database for use in condition judgment, etc.

[0244] It should be noted that although the above-described device only shows the processor 1510, video display adapter 1511, disk drive 1512, input / output interface 1513, network interface 1514, memory 1520, bus 1530, etc., in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the solution of this application, and does not necessarily include all the components shown in the figures.

[0245] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, cloud server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.

[0246] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the descriptions in the method embodiments. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0247] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for identifying ship structural units, characterized in that, The method includes: Obtain a ship model to be identified, the ship model including structural lines used to describe the ship's structure; Based on the attributes corresponding to the structural lines and the positional relationships between the structural lines, the target edge lines included in the ship model are determined; Based on the orientation relationship between the target edges and the included angle between the target edges, generate one or more target edge groups according to the target edges; Based on the target edge group, determine the structural units contained in the ship model; The step of determining the target edge lines included in the ship model based on the attributes corresponding to the structural lines and the positional relationships between the structural lines includes: Query the first intersection point between the structural lines, and determine the first intersection point where the intersecting structural lines have different attributes as the target intersection point; The portion of the structural line located between the two target intersection points is defined as the target edge line; The method further includes: Generate a starting path, which includes two target edges that it passes through, and the starting point of the starting path is the first endpoint, the middle point is the second endpoint, and the direction point is the third endpoint; Generate an endpoint set containing the first endpoint, the second endpoint, and the third endpoint, and a path set containing the target edge lines traversed by the starting path; The step of generating one or more target edge group according to the direction relationship between the target edges and the included angle between the target edges includes: The first path is defined as the path whose parameters satisfy the first preset condition among the paths in the path set that take the midpoint of the previous path as the starting point, the direction point of the previous path as the midpoint, and contain two target edges. The parameters are determined based on the direction relationship of the paths, the angle between the target edges contained in the path, and the direction relationship of the initial path. When the parameters meet the third preset condition, the first path is added to the path set; If the direction point of the first path does not exist in the endpoint set, the direction point of the first path is added to the endpoint set. The target edge group is generated based on the path set until the endpoint set contains the direction point of the first path. The method further includes: The structural unit whose boundary matches the boundary of the compartment in the ship model is identified by the element attribute of the compartment, and / or The element attribute corresponding to the structural element whose boundary coincides with the boundary of the plate row in the ship model is defined as plate row.

2. The identification method according to claim 1, characterized in that, The method further includes: Based on the attributes corresponding to the structural lines and the positional relationship between the structural lines, determine the structural lines that need to be segmented and segment them accordingly; Based on the segmented structure lines and the structure lines that do not need to be segmented, generate the target structure lines; The step of querying the first intersection point between the structural lines and determining the first intersection point with different attributes of the intersecting structural lines as the target intersection point includes: Query the first intersection point between the target structure lines, and determine the first intersection point where the intersecting target structure lines have different attributes as the target intersection point.

3. The identification method according to claim 1, characterized in that, The generation of the starting path includes: The query finds a path that starts at the initial endpoint of the target intersection and includes both of the target edges; The path whose included angle between the corresponding target edges satisfies the second preset condition is the initial path.

4. The identification method according to claim 1, characterized in that, The target edge line includes yielding stiffeners and buckling stiffeners. The element attribute corresponding to the structural element whose defined boundary coincides with the boundary of the plate row in the ship model is the plate row, including: The structural element with the element attribute of plate column is identified as the target element; Based on the structural unit containing at least the yield ribs, a yield plate grid is generated, and / or A buckling lattice is generated based on the structural unit containing at least the buckling stiffener.

5. The identification method according to claim 1, characterized in that, The method further includes: The intersection point between the first structural line and the second structural line is determined as the second intersection point, wherein the attribute corresponding to the first structural line is a yielding tendon or a buckling tendon. Generate corresponding reinforcing ribs between every two second intersection points; and / or, When the endpoints of at least two connected third structural lines are the second intersection point, corresponding reinforcing ribs are generated according to all the third structural lines, wherein the third structural lines are skeletons.

6. A device for identifying ship structural units, employing the method for identifying ship structural units as described in any one of claims 1-5, characterized in that, The device includes: An acquisition module is used to acquire a ship model to be identified, wherein the ship model includes structural lines used to describe the ship's structure; The target edge line generation module is used to determine the target edge lines contained in the ship model based on the attributes corresponding to the structural lines and the positional relationship between the structural lines. The target edge group generation module is used to generate one or more target edge groups based on the direction relationship between the target edge lines and the included angle between the target edge lines. The identification module is used to determine the structural units contained in the ship model based on the target edge group.

7. An electronic device employing the identification device for a ship structural unit as described in claim 6, characterized in that, The electronic device includes: One or more processors; and a memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the following operations: Obtain a ship model to be identified, the ship model including structural lines used to describe the ship's structure; Based on the attributes corresponding to the structural lines and the positional relationships between the structural lines, the target edge lines included in the ship model are determined; Based on the orientation relationship between the target edges and the included angle between the target edges, generate one or more target edge groups based on the target edges; Based on the target edge group, determine the structural units contained in the ship model.