A ship CAD system structural plate model groove modeling system and method
By extending the bevel path curve and calculating the cutting plane in the ship CAD system, a BREP body model was constructed, which solved the problems of incomplete cutting and bevel errors, and improved design efficiency and accuracy.
Patent Information
- Application Number
- CN202411280884.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-09-13
AI Technical Summary
Existing ship CAD systems suffer from incomplete cutting and incorrect bevel settings when generating bevels for structural plate models, affecting design efficiency and accuracy.
The bevel information parsing module obtains the plate data, extends the bevel path curve and calculates the cutting plane, constructs the BREP body model, generates the plate model with bevel, avoids incomplete cutting and checks the bevel settings.
It improves the accuracy of the beveling process and the efficiency of designers, reduces beveling errors, and ensures the correctness of beveling settings.
Smart Images

Figure CN118797820B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of digital ship design, and in particular to a ship CAD system structure plate model groove modeling system and method. Background Art
[0002] Dongxin Ship CAD system is a 3D ship production design software system. The system establishes ship products through engineering project management and multi-professional parallel collaborative design, including 3D design models of structures, piping, ducts, electrical, outer and inner outfitting, etc. It can also define product process information such as processing, assembly, welding, painting, outfitting, etc., generate various drawings and reports required for ship manufacturing, and output cutting instructions and pipe processing data.
[0003] Parts usually need to have different welding grooves (hereinafter referred to as grooves) according to different welding methods and plate thicknesses. The groove refers to a groove that is processed and assembled into a certain geometric shape at the welded part according to design and process requirements to facilitate welding of the workpiece and ensure welding degree. Common groove forms include V-shaped groove, X-shaped groove, U-shaped groove, etc.
[0004] Structural plates include flat plate parts and curved plate parts. Generating a model of a structural plate with a bevel can improve the precision of CAD modeling. Designers can intuitively view the appearance of the plate after the bevel is opened, which helps designers check whether the bevel setting is correct, reduces the occurrence of bevel errors, and improves the design efficiency and accuracy of the personnel involved.
[0005] By constructing a BREP body model (boundary representation), it can be exported to IGES or STEP format and imported into heterogeneous CAD or CAE systems to provide support for CAD or CAD software collaboration. Summary of the invention
[0006] In order to improve the refined modeling capability of a ship CAD system and enhance the design efficiency and accuracy of designers, the present invention provides a ship CAD system structural plate model section modeling system and method.
[0007] The technical objectives of the present invention are achieved through the following technical solutions:
[0008] A ship CAD system structural plate model groove modeling system, comprising:
[0009] Groove information analysis module, used to obtain plate data from the ship CAD system, analyze the groove information, convert macro grooves, slopes, and segmented grooves into regular grooves. Regular grooves are grooves with certain groove parameters, and generate cross-sectional splines of the grooves.
[0010] Bevel processing module, used to transform the bevel BREP body, extend the bevel path curve and calculate the cutting plane; including bevel processing of flat plate parts and bevel processing of curved plate parts;
[0011] When processing the groove of a plane plate part, if there is no adjacent groove on the boundary adjacent to the boundary where the starting point or the ending point of the groove of the plane plate part is located, the groove path curve is extended at the starting point or the ending point of the groove of the plane plate part to calculate the angle α; if there is an adjacent groove on the boundary adjacent to the boundary where the starting point or the ending point of the groove of the plane plate part is located, the angle α is calculated; if α≤90°, the angle bisector of the angle on the groove path is calculated as the cutting plane; if α≥180°, the angle bisector of the angle on the groove path is calculated as the cutting plane after extending the groove path curve;
[0012] When performing groove processing on a curved panel part, if it is determined that there is no adjacent groove on the adjacent boundary of the boundary where the starting point or ending point of the groove of the curved panel part is located, then at the starting point and ending point of the groove of the curved panel part, the u-axis and w-axis of the local coordinate system of the starting point of the groove of the curved panel part are combined with the origin of the local coordinate system, and the u-axis and w-axis of the local coordinate system of the ending point of the groove of the curved panel part are combined with the origin of the local coordinate system to calculate the u-axis plane and the w-axis plane respectively; the w-axis represents the direction of the tangent vector at the starting point and the end point of the groove, the v-axis represents the direction of the normal vector at the starting point and the end point of the groove, and the u-axis is perpendicular to the w-axis and the v-axis; if there is an adjacent groove, the u-axis plane and the w-axis plane are calculated after extending the groove path curve at the starting point or the end point of the groove of the curved panel part; take the curved panel part as the starting point and the end point of the groove Adjacent curves on the boundary at the starting point or the ending point of the groove of the panel part, judge the positional relationship between the adjacent curves and the u-axis plane and the w-axis plane: if the adjacent curve is on the u-axis plane and is located above the w-axis plane, then extend the groove path curve at the starting point or the ending point of the groove of the curved panel part, calculate the tangent vector angle a at the starting point and the ending point of the groove of the curved panel part, otherwise directly calculate the tangent vector angle a at the starting point and the ending point of the groove of the curved panel part; judge whether the tangent vector angle a is between 179°-180°, and save the judgment result; when there is an adjacent groove on the adjacent boundary of the boundary where the starting point or the ending point of the groove of the curved panel part is located and the tangent vector angle a is between 179°-180°, calculate the angle bisector plane of the tangent vector angle a as the cutting plane;
[0013] Groove BREP body construction module, used to construct the BREP body model of each groove of the plate part;
[0014] The groove cutting module is used to perform Boolean subtraction of the plate BREP body without groove and all groove BEP bodies one by one to generate a plate BREP body model with groove.
[0015] The present invention also provides a ship CAD system structural plate model groove modeling method, the method comprising:
[0016] Step 1, obtain plate data from the ship CAD system, parse the plate data according to the groove string of the plate seam and convert it to generate a groove code, extract the groove parameters from the groove standard library according to the groove code, and then generate the cross-sectional spline of the groove according to the plate thickness, adjacent plate thickness, slope angle, and frame surface information;
[0017] Step 2: Beveling of plate parts, including beveling of flat plate parts and curved plate parts, extending the bevel BREP body to avoid incomplete bevel cutting;
[0018] When performing groove processing on flat plate parts, it includes:
[0019] Step 2.11, if there is no adjacent groove in the adjacent boundary of the boundary where the starting point or the ending point of the groove of the plane plate part is located, then the groove path curve is extended at the starting point or the ending point of the groove of the plane plate part, otherwise, execute step 2.12;
[0020] Step 2.12, calculate the bend angle α, if α≤90°, calculate the angle bisector plane of the bevel path as the cutting plane, otherwise execute step 2.13;
[0021] Step 2.13, if α≥180°, extend the groove path curve and calculate the angle bisector of the angle on the groove path as the cutting plane;
[0022] When processing the groove of curved panel parts, it includes:
[0023] Step 2.21: If it is determined that there is no adjacent groove at the boundary where the starting point or the ending point of the groove of the curved panel part is located, the groove path curve is extended at the starting point or the ending point of the groove of the curved panel part, and step 2.22 is executed; otherwise, step 2.22 is directly executed;
[0024] Step 2.22, at the starting point and the ending point of the groove of the curved plate part, the u-axis and w-axis of the local coordinate system of the starting point of the groove of the curved plate part are combined with the origin of the local coordinate system, and the u-axis and w-axis of the local coordinate system of the ending point of the groove of the curved plate part are combined with the origin of the local coordinate system, respectively, to calculate the u-axis plane and the w-axis plane;
[0025] Step 2.23, take the adjacent curve on the boundary of the starting point or the ending point of the groove of the curved panel part, and determine the positional relationship between the adjacent curve and the u-axis plane and the w-axis plane:
[0026] If the adjacent curve is on the u-axis plane and above the w-axis plane, extend the groove path curve at the starting point or the ending point of the groove of the curved panel part and execute step 2.24; otherwise, directly execute step 2.24;
[0027] Step 2.24, calculate the angle a of the tangent vector at the starting point and the ending point of the groove of the curved panel part;
[0028] Step 2.25, determine whether the tangent vector angle a is between 179° and 180°, and save the determination result;
[0029] Step 2.26, when there is an adjacent groove on the adjacent boundary of the boundary where the groove starting point or ending point of the curved panel part is located and the tangent vector angle a is between 179° and 180°, calculate the angle bisector plane of the tangent vector angle a as the cutting plane;
[0030] Step 3, constructing a groove BREP body of a plate part, including a groove BREP body construction of a plane plate part and a groove BEP body construction of a curved plate part, and after the groove BREP body is generated, the groove BREP body is cut by a cutting plane;
[0031] Step 4: Perform Boolean subtraction on the plate BREP body without groove and all the BEP bodies with grooves one by one to generate a plate BREP body model with grooves.
[0032] Furthermore, step 1 includes:
[0033] Step 1.1, input the groove data, extract the position information of the starting point and the ending point of each section of the segment groove, and convert the segment groove into several grooves;
[0034] Step 1.2, parsing the converted groove information, and converting the macro groove and slope into a conventional groove;
[0035] Step 1.3, according to the hull standard, parse the groove string to obtain the specific parameters of the groove definition;
[0036] Step 1.4: Obtain the groove section spline according to the specific parameters of the groove definition.
[0037] Furthermore, when constructing the groove BREP body of the flat plate part, it includes:
[0038] Step 3.11, determine whether there is a slope angle, if yes, go to step 3.12, otherwise go to step 3.14;
[0039] Step 3.12, convert the cross-sectional curves at the start and end positions of the groove of the plane plate part to the plane plate part coordinate system, and execute step 3.13;
[0040] Step 3.13, combining the groove sweep path, construct the groove BREP body by driving the curve lofting, and execute step 3.15;
[0041] Step 3.14, fix the v-axis of the local coordinate system of the cross section to the z-axis, sweep and generate a BREP body with a groove according to the cross-section curve and the groove path, and execute step 3.15;
[0042] Step 3.15: Use the cutting plane to cut the groove BREP body.
[0043] Furthermore, the BREP body construction of the groove of the curved panel part includes:
[0044] Step 3.21, calculate the number of sampling points on the groove path of the curved panel part, calculate the tangent vector w and the normal vector v at the sampling point starting from the first sampling point, use the tangent vector w as the w-axis of the local coordinate system, use the normal vector v as the v-axis of the local coordinate system, and obtain the u-axis by cross-product of the w-axis and the v-axis;
[0045] Step 3.22, calculate one by one the point of the local coordinate system of each sampling point on the u-axis that deviates from the sampling point and put it into the point set;
[0046] Step 3.23, after all sampling points are calculated, the points in the interpolation point set obtain the u-axis curve;
[0047] Step 3.24, convert the groove spline at the starting point and the ending point of the groove of the curved panel part to the global coordinate system through the local coordinate system at the starting point and the ending point of the groove;
[0048] Step 3.25, combined with the curved panel groove path, the groove BREP body of the curved panel part is constructed by driving the curve lofting. After the groove BREP body is constructed, the groove BREP body is trimmed by the cutting plane.
[0049] Compared with the prior art, the present invention has the following beneficial effects:
[0050] (1) The present invention adjusts the groove BREP body by extending the groove path curve and calculating the cutting plane, thereby improving the accuracy of the groove cutting process; specifically, by extending the groove path curve, incomplete groove cutting is avoided, and by using the cutting plane, cutting of areas that should not be cut is avoided, and cutting between adjacent grooves is coordinated.
[0051] (2) The BREP body model constructed by the present invention can be exported to the IGES or STEP format and imported into a heterogeneous CAD or CAE system, which helps designers to check whether the groove setting is correct, reduce the groove errors, and improve the design efficiency and correctness of designers. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 It is a schematic flow chart of the groove modeling method of the ship CAD system structure plate model in the present invention.
[0053] Figure 2 It is a schematic diagram of the process of analyzing the groove information in the present invention.
[0054] Figure 3 It is a schematic diagram of the groove processing process of the flat plate part in the present invention.
[0055] Figure 4 It is a schematic diagram of the groove processing process of the curved panel part in the present invention.
[0056] Figure 5 It is a schematic diagram of the construction process of the groove BREP body of a flat plate part in the present invention.
[0057] Figure 6 It is a schematic diagram of the BREP body construction process of the curved panel part groove in the present invention.
[0058] Figure 7 It is a schematic diagram of the groove cutting process in the present invention.
[0059] Figure 8 It is a schematic diagram showing the overlap of the starting point of the groove and the endpoints at the adjacent boundary of the present invention.
[0060] Fig. 9 It is a schematic diagram showing the overlap of the termination point of the groove of the present invention and the endpoint at the adjacent boundary. DETAILED DESCRIPTION
[0061] The technical solution of the present invention is further described below in conjunction with specific embodiments:
[0062] A ship CAD system structural plate model groove modeling system, comprising:
[0063] The groove information parsing module is connected to the ship CAD system through the groove information parsing module to obtain the plate data from the ship CAD system. The plate data includes the BREP body solid model of the plate without groove. The macro groove, slope, and segment groove in the groove are parsed according to the groove string of the plate seam, and the macro groove, slope, and segment groove are converted into conventional groove codes. The cross-sectional spline of the groove is generated according to the groove code, the current plate thickness, the adjacent plate thickness, the slope angle, and the frame surface information. More specifically, the groove information parsing module executes the process of step 1.
[0064] Macro groove is a special groove form, which is a groove code form that gives the welding method and position but does not clearly specify the frame surface and positioning surface. Different from macro groove, conventional groove has standard parameters, that is, it has certain groove parameters, including groove code, groove gap, front groove angle, front root, back groove, back root, front and back large groove angles and other parameters.
[0065] The groove processing module is used to transform the groove BREP body, extend the groove path curve and calculate the cutting plane; the groove processing module extends the groove BREP body by appropriately extending the sweep path to avoid incomplete groove cutting; when there are grooves on adjacent boundaries of the plate, a cutting plane is constructed to cut the end of the groove BREP body to avoid excessive cutting of the plate. More specifically, the groove processing module executes the process of step 2.
[0066] The groove BREP body construction module is used to construct the BREP body model of each groove section of the plate part; specifically, according to the starting point and ending point information of each groove section, the contour line of the plate between the starting point and the ending point is intercepted as the sweep path of the groove:
[0067] For plane plate parts, the v-axis of the local coordinate system of the fixed section curve is the z-axis, and the w-axis is the path tangent. The groove BREP body of the plane plate part is generated by sweeping the section spline of the groove or lofting the driving curve. When there is a slope, the shapes of the section curves at the beginning and end of the groove are inconsistent, and the BREP body cannot be constructed by sweeping. It is necessary to construct the BREP body by lofting the driving curve.
[0068] For curved panel parts, the u-axis curve is generated according to the surface normal and the path tangent, and the cross-sectional curves at the start and end positions of the sweep path are generated according to the slope angle. The groove BREP body of the curved panel part is generated by driving the curve lofting. For curved panel parts, since the surface normal of the local coordinate system of the cross-sectional curve on the groove path is variable, and if there is a slope angle, the shape of the cross-sectional curve at the beginning and end of the groove is also different, it is necessary to construct the BREP body by driving the curve lofting. More specifically, the groove BREP body construction module executes the steps of step 3.
[0069] The groove cutting module is used to perform Boolean subtraction of the plate BREP body without groove and all groove BEP bodies one by one to generate a plate BREP body model with groove. More specifically, the groove cutting module executes the steps of step 4.
[0070] On the other hand, the present invention also provides a ship CAD system structure plate model groove modeling method, the method comprising:
[0071] Step 1: Get the plate data from the ship CAD system. The plate data input by the designer may contain macro grooves, slopes and segment grooves, so it is necessary to parse and convert them into regular groove information. Specifically, convert the macro groove into regular groove, convert the slope into slope angle, and obtain the starting and ending positions of the segment groove according to the segment groove definition;
[0072] The plate data is parsed according to the groove character string of the plate seam and converted to generate the groove code. The groove parameters are extracted from the groove standard library according to the groove code, and then the groove section spline is generated according to the plate thickness, adjacent plate thickness, slope angle, and frame surface information; when there is a slope angle, the groove section shape at the starting position and the ending position of the groove is different, and the section spline has two sections, namely the groove section spline at the starting position and the ending position.
[0073] Step 2: Beveling of plate parts, including beveling of flat plate parts and curved plate parts, extending the bevel BREP body to avoid incomplete bevel cutting;
[0074] Step 3, constructing a groove BREP body of a plate part, including a groove BREP body construction of a plane plate part and a groove BEP body construction of a curved plate part, and after the groove BREP body is generated, the groove BREP body is cut by a cutting plane;
[0075] Step 4: Perform Boolean subtraction on the plate BREP body without groove and all the BEP bodies with grooves one by one to generate a plate BREP body model with grooves.
[0076] like Figure 1 As shown, after obtaining the plate data, the groove information is parsed, and the number of general grooves obtained by the analysis is n. The plate part groove processing and the plate part groove BREP body structure are performed on the i-th groove in turn. After the plate part groove processing and the plate part groove BREP body structure of n grooves are completed, the groove cutting operation is performed.
[0077] More specifically, Figure 2 As shown, step 1 specifically includes the following steps:
[0078] Step 1.1, input the groove data in the plate data, extract the position information of the starting point and the ending point of each section of the segment groove, and convert the segment groove into several grooves;
[0079] Step 1.2, parsing the converted groove information, and converting the macro groove and slope into a conventional groove;
[0080] Step 1.3, according to the hull standard, parse the groove string to obtain the specific parameters of the groove definition;
[0081] Step 1.4: Obtain the groove section spline according to the specific parameters of the groove definition.
[0082] More specifically, Figure 3 As shown in the figure, when the flat plate parts are grooved, it includes:
[0083] Step 2.11, if there is no adjacent groove at the boundary where the starting point or the ending point of the groove of the plane plate part is located, then at the starting point or the ending point of the groove of the plane plate part, the groove path curve is extended in the tangent direction of the boundary at the point, and the extension distance is the farthest distance from the local adjacent boundary to the tangent plane above the point, otherwise, execute step 2.12;
[0084] Step 2.12, calculate the angle α. There are several sub-curves on the groove path curve. The angle between two adjacent sub-curves is the angle α. If α≤90°, calculate the angle bisector of the angle on the groove path as the cutting plane. Otherwise, execute step 2.13.
[0085] Step 2.13, if α≥180°, extend the groove path curve tangently according to the groove path curve at that point, the extension distance is the groove width*tan(α / 2), and calculate the angle bisector of the bevel on the groove path as the cutting plane.
[0086] More specifically, Figure 4 As shown in the figure, when processing the groove of the curved panel parts:
[0087] Step 2.21, determine whether there is no adjacent groove at the adjacent boundary of the boundary where the groove starting point or the end point of the curved panel part is located, and save the situation of whether there is a groove at the adjacent boundary of the groove boundary in the variable NBevel;
[0088] Step 2.22, at the starting point and the ending point of the groove of the curved plate part, the u-axis and w-axis of the local coordinate system of the starting point of the groove of the curved plate part are combined with the origin of the local coordinate system, and the u-axis and w-axis of the local coordinate system of the ending point of the groove of the curved plate part are combined with the origin of the local coordinate system, respectively, to calculate the u-axis plane and the w-axis plane;
[0089] Step 2.23, take the adjacent curve on the boundary at the starting point or the ending point of the groove of the curved panel part, determine the positional relationship between the adjacent curve and the u-axis plane and the w-axis plane, and save the determination results of the adjacent curve and the u-axis plane and the w-axis plane in uponU and uponW respectively:
[0090] If the adjacent curves are on the u-axis plane and on the w-axis plane, that is, uponU&&uponW is true, the end of the groove path curve at the groove starting point or ending point of the curved panel part is tangentially extended according to the groove path curve at that point, and the extension distance is the farthest distance from the adjacent boundary to the tangent plane above that point, and step 2.24 is executed; otherwise, step 2.24 is executed directly;
[0091] Step 2.24, calculate the angle a between the tangent vectors at the starting and ending points of the groove of the curved panel part and the adjacent boundary at that point, as Figure 8 and Fig. 9 As shown, 1 is the groove curve, 3 is the boundary, Figure 8 The starting point 2 of the middle groove coincides with the endpoint of the adjacent boundary. Fig. 9 The end point 4 of the middle groove coincides with the adjacent boundary endpoint;
[0092] Step 2.25, determine whether the tangent vector angle a is close to 180°, and save the determination result in the variable almost180;
[0093] Step 2.26, if NBevel (!uponUPlane||almost180) is true, then the end of the groove path curve at the starting point or ending point of the groove of the curved panel part is tangently extended by the groove path curve at that point, the groove width is *tan(a), and the angle bisector plane of the tangent vector angle a is calculated as the cutting plane.
[0094] In one embodiment, the value of the tangent vector angle a is close to 180° within a range of 179°-180°.
[0095] It should be noted that the above processing is only required when the first endpoint of the groove curve coincides with the boundary endpoint, or the end point of the groove curve coincides with the boundary endpoint. If the first endpoint or the end point of the groove curve is inside the boundary, no processing is required.
[0096] More specifically, Figure 5 As shown in the figure, when constructing the groove BREP body of a plane plate part, the groove path curve is intercepted according to the groove definition, and the BREP body is first generated in the local coordinate system of the plane plate part, and the appropriate thickness of the groove BREP body is calculated, so that there will be no hanging parts left when the plate BREP body model without groove is subjected to Boolean subtraction. According to the calculated thickness of the groove BREP body, the obtained groove section curve is transformed into a closed curve, the local coordinate system v axis of the section curve is fixed as the z axis, and the w axis is the path tangent, and the groove BREP body of the plane plate part is generated by sweeping the groove section spline, and then converted to the coordinate system of the plane plate part.
[0097] Specifically include:
[0098] Step 3.11, determine whether there is a slope angle at the groove, if yes, go to step 3.12, otherwise go to step 3.14;
[0099] Step 3.12, convert the cross-sectional curves at the start and end positions of the groove of the plane plate part to the plane plate part coordinate system, and execute step 3.13;
[0100] Step 3.13, combining the groove sweep path, construct the groove BREP body by driving the curve lofting, and execute step 3.15;
[0101] Step 3.14, fix the v-axis of the local coordinate system of the cross section to the z-axis, sweep and generate a BREP body with a groove according to the cross-section curve and the groove path, and execute step 3.15;
[0102] Step 3.15: Use the cutting plane to cut the groove BREP body.
[0103] More specifically, the BREP body construction of the groove of the curved panel part includes:
[0104] Step 3.21. Calculate the number of sampling points num on the groove path of the curved panel part, calculate the tangent vector w and normal vector v at the sampling point starting from the first sampling point, take the tangent vector w as the w-axis of the local coordinate system, take the normal vector v as the v-axis of the local coordinate system, and cross-product the w-axis and the v-axis to get the u-axis; it should be noted that the u-axis and the v-axis represent two axes perpendicular to each other in the horizontal plane, the w-axis is the axis perpendicular to the horizontal plane, and the u-axis, v-axis and w-axis constitute a three-dimensional coordinate system in space, such as the u-axis represents the direction of the ship's length, the v-axis represents the direction of the ship's width, and the w-axis represents the direction of the ship's height.
[0105] Step 3.22, calculate the distance of each sampling point on the u-axis from the local coordinate system of the sampling point one by one, and put it into the point set (upts). In this embodiment, the distance value of the offset local coordinate system is 10 units, such as 10cm, 10mm, etc.;
[0106] Step 3.23, after all sampling points are calculated, the points in the interpolation point set obtain the u-axis curve;
[0107] Step 3.24, convert the groove spline at the starting point and the ending point of the groove of the curved panel part to the global coordinate system through the local coordinate system at the starting point and the ending point of the groove;
[0108] Step 3.25, combined with the curved panel groove path, the groove BREP body of the curved panel part is constructed by driving the curve lofting. After the groove BREP body is constructed, the groove BREP body is trimmed by the cutting plane.
[0109] More specifically, when constructing the groove BREP body of a curved panel part, Figure 6 As shown, the number of sampling points num is calculated, and the starting value of i is 0; the tangent vector w and normal vector v at the first sampling point are calculated, and the u axis is obtained by the cross product of the w axis and the v axis. A point is taken at an appropriate position on the u axis and put into the point set upts, and then i=i+1 is used to calculate the second, third, ..., and num-th sampling points according to the first sampling point.
[0110] In step 4, if Figure 7As shown, for the starboard side part, the groove BREP body needs to be mirrored to the starboard side, and then the plate BREP body and the groove BREP body are Boolean subtracted in the local coordinate system. If it is a flat plate part, it is also necessary to convert from the local coordinate system to the global coordinate system after the Boolean subtraction operation.
[0111] This embodiment is only a further explanation of the present invention, not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to this embodiment as needed, but as long as it is within the scope of the claims of the present invention, it will be protected by the patent law.
Claims
1. A ship CAD system structural plate model groove modeling system, characterized in that: include: Groove information analysis module, used to obtain plate data from the ship CAD system, analyze the groove information, convert macro grooves, slopes, and segmented grooves into regular grooves. Regular grooves are grooves with certain groove parameters, and generate cross-sectional splines of the grooves. Bevel processing module, used to transform the bevel BREP body, extend the bevel path curve and calculate the cutting plane; including bevel processing of flat plate parts and bevel processing of curved plate parts; When processing the groove of a plane plate part, if there is no adjacent groove on the boundary adjacent to the boundary where the starting point or the ending point of the groove of the plane plate part is located, the groove path curve is extended at the starting point or the ending point of the groove of the plane plate part to calculate the angle α; if there is an adjacent groove on the boundary adjacent to the boundary where the starting point or the ending point of the groove of the plane plate part is located, the angle α is calculated; if α≤90°, the angle bisector of the angle on the groove path is calculated as the cutting plane; if α≥180°, the angle bisector of the angle on the groove path is calculated as the cutting plane after extending the groove path curve; When performing groove processing on a curved panel part, if it is determined that there is no adjacent groove on the adjacent boundary of the boundary where the starting point or ending point of the groove of the curved panel part is located, then at the starting point and ending point of the groove of the curved panel part, the u-axis and w-axis of the local coordinate system of the starting point of the groove of the curved panel part are combined with the origin of the local coordinate system, and the u-axis and w-axis of the local coordinate system of the ending point of the groove of the curved panel part are combined with the origin of the local coordinate system to calculate the u-axis plane and the w-axis plane respectively; the w-axis represents the direction of the tangent vector at the starting point and the end point of the groove, the v-axis represents the direction of the normal vector at the starting point and the end point of the groove, and the u-axis is perpendicular to the w-axis and the v-axis; if there is an adjacent groove, the u-axis plane and the w-axis plane are calculated after extending the groove path curve at the starting point or the end point of the groove of the curved panel part; take the curved panel part as the starting point and the end point of the groove Adjacent curves on the boundary at the starting point or the ending point of the groove of the panel part, judge the positional relationship between the adjacent curves and the u-axis plane and the w-axis plane: if the adjacent curve is on the u-axis plane and is located above the w-axis plane, then extend the groove path curve at the starting point or the ending point of the groove of the curved panel part, calculate the tangent vector angle a at the starting point and the ending point of the groove of the curved panel part, otherwise directly calculate the tangent vector angle a at the starting point and the ending point of the groove of the curved panel part; judge whether the tangent vector angle a is between 179°-180°, and save the judgment result; when there is an adjacent groove on the adjacent boundary of the boundary where the starting point or the ending point of the groove of the curved panel part is located and the tangent vector angle a is between 179°-180°, calculate the angle bisector plane of the tangent vector angle a as the cutting plane; Groove BREP body construction module, used to construct the BREP body model of each groove of the plate part; The groove cutting module is used to perform Boolean subtraction of the plate BREP body without groove and all groove BEP bodies one by one to generate a plate BREP body model with groove.
2. A method for shaping the groove of a structural plate model in a ship CAD system, characterized in that: The method includes: Step 1, obtain plate data from the ship CAD system, parse the plate data according to the groove string of the plate seam and convert it to generate a groove code, extract the groove parameters from the groove standard library according to the groove code, and then generate the cross-sectional spline of the groove according to the plate thickness, adjacent plate thickness, slope angle, and frame surface information; Step 2: Beveling of plate parts, including beveling of flat plate parts and curved plate parts, extending the bevel BREP body to avoid incomplete bevel cutting; When performing groove processing on flat plate parts, it includes: Step 2.11, if there is no adjacent groove in the adjacent boundary of the boundary where the starting point or the ending point of the groove of the plane plate part is located, then the groove path curve is extended at the starting point or the ending point of the groove of the plane plate part, otherwise, execute step 2.12; Step 2.12, calculate the bend angle α, if α≤90°, calculate the angle bisector plane of the bevel path as the cutting plane, otherwise execute step 2.13; Step 2.13, if α≥180°, extend the groove path curve and calculate the angle bisector of the angle on the groove path as the cutting plane; When processing the groove of curved panel parts, it includes: Step 2.21: If it is determined that there is no adjacent groove at the boundary where the starting point or the ending point of the groove of the curved panel part is located, the groove path curve is extended at the starting point or the ending point of the groove of the curved panel part, and step 2.22 is executed; otherwise, step 2.22 is directly executed; Step 2.22, at the starting point and the ending point of the groove of the curved plate part, the u-axis and w-axis of the local coordinate system of the starting point of the groove of the curved plate part are combined with the origin of the local coordinate system, and the u-axis and w-axis of the local coordinate system of the ending point of the groove of the curved plate part are combined with the origin of the local coordinate system to calculate the u-axis plane and the w-axis plane respectively; the w-axis represents the tangent vector direction of the starting point and the end point of the groove, the v-axis represents the normal vector direction of the starting point and the end point of the groove, and the u-axis is perpendicular to the w-axis and the v-axis; Step 2.23, take the adjacent curve on the boundary of the starting point or the ending point of the groove of the curved panel part, and determine the positional relationship between the adjacent curve and the u-axis plane and the w-axis plane: If the adjacent curve is on the u-axis plane and above the w-axis plane, extend the groove path curve at the starting point or the ending point of the groove of the curved panel part and execute step 2.24; otherwise, directly execute step 2.24; Step 2.24, calculate the angle a of the tangent vector at the starting point and the ending point of the groove of the curved panel part; Step 2.25, determine whether the tangent vector angle a is between 179° and 180°, and save the determination result; Step 2.26, when there is an adjacent groove on the adjacent boundary of the boundary where the groove starting point or ending point of the curved panel part is located and the tangent vector angle a is between 179° and 180°, calculate the angle bisector plane of the tangent vector angle a as the cutting plane; Step 3, constructing a groove BREP body of a plate part, including a groove BREP body construction of a flat plate part and a groove BEP body construction of a curved plate part, and after the groove BREP body is generated, the groove BREP body is cut by a cutting plane; Step 4: Perform Boolean subtraction on the plate BREP body without groove and all the BEP bodies with grooves one by one to generate a plate BREP body model with grooves.
3. A ship CAD system structural plate model groove modeling method according to claim 2, characterized in that: The step 1 includes: Step 1.1, input the groove data, extract the position information of the starting point and the ending point of each section of the segment groove, and convert the segment groove into several grooves; Step 1.2, parsing the converted groove information, and converting the macro groove and slope into a conventional groove; Step 1.3, according to the hull standard, parse the groove string to obtain the specific parameters of the groove definition; Step 1.4: Obtain the groove section spline according to the specific parameters of the groove definition.
4. A ship CAD system structural plate model groove modeling method according to claim 3, characterized in that: When constructing the BREP body of a flat plate part groove, it includes: Step 3.11, determine whether there is a slope angle, if yes, go to step 3.12, otherwise go to step 3.14; Step 3.12, convert the cross-sectional curves at the start and end positions of the groove of the plane plate part to the plane plate part coordinate system, and execute step 3.13; Step 3.13, combining the groove sweep path, construct the groove BREP body by driving the curve lofting, and execute step 3.15; Step 3.14, fix the v-axis of the local coordinate system of the cross section to the z-axis, sweep and generate a BREP body with a groove according to the cross-section curve and the groove path, and execute step 3.15; Step 3.15: Use the cutting plane to cut the groove BREP body.
5. A ship CAD system structural plate model groove modeling method according to claim 3, characterized in that: The BREP body construction of the groove of the curved panel part includes: Step 3.21, calculate the number of sampling points on the groove path of the curved panel part, calculate the tangent vector w and the normal vector v at the sampling point starting from the first sampling point, use the tangent vector w as the w-axis of the local coordinate system, use the normal vector v as the v-axis of the local coordinate system, and cross-multiply the w-axis and the v-axis to get the u-axis; Step 3.22, calculate one by one the point of the local coordinate system of each sampling point on the u-axis that deviates from the sampling point and put it into the point set; Step 3.23, after all sampling points are calculated, the points in the interpolation point set obtain the u-axis curve; Step 3.24, convert the groove spline at the starting point and the ending point of the groove of the curved panel part to the global coordinate system through the local coordinate system at the starting point and the ending point of the groove; Step 3.25, combined with the curved panel groove path, the groove BREP body of the curved panel part is constructed by driving the curve lofting. After the groove BREP body is constructed, the groove BREP body is trimmed by the cutting plane.
Citation Information
Patent Citations
Groove cutting control method and device, storage medium and laser cutting equipment
CN112091444A
Groove cutting method, device and equipment and storage medium
CN117245440A