Size report rendering method, size report generating method, device and equipment
By rendering 3D measurement points in the 3D model and drawing non-intersecting lines, the problem of intersection between 3D measurement points and lines on the details page is solved, enabling efficient viewing of size reports and quick information retrieval, thus improving the user experience.
Patent Information
- Application Number
- CN202511399577.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-28
- Publication Date
- 2026-02-06
AI Technical Summary
In existing technologies, the lines connecting 3D measurement points and their corresponding measurement point details pages are prone to intersection, making it inconvenient to view and analyze size reports, and making it impossible to quickly search and find specific measurement point information, thus affecting the user's efficiency and flexibility.
By acquiring the 3D coordinates of the 3D measurement points, rendering the 3D labeled measurement points and drawing connecting lines, determining the target 2D coordinates and center point coordinates using the 2D coordinates on the screen and the center point coordinates on the measurement point details page, drawing non-intersecting connecting lines, and generating a dimension report in editable document format.
The system ensures that the lines between 3D measurement points and the measurement point details page do not intersect, facilitating viewing and analysis. It also provides editable documents for quick searching and locating measurement point information, improving the user experience.
Smart Images

Figure CN121482231A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicle manufacturing, in particular to a size report rendering method, a size report generation method, a device and equipment. BACKGROUND
[0002] In the field of modern industrial design and manufacturing, size report is an important part of product design, production and quality control process. The traditional size report generation method mainly relies on professional software such as CM4D and other measurement matching data system software. Although these software are powerful, they are expensive, complex to operate and difficult to meet individual needs.
[0003] With the development of Internet technology, online size report system based on B / S architecture has gradually become a new trend, realizing online rendering of measurement points and dynamic export of reports. When rendering measurement points online, each measurement point corresponds to a measurement point detail page. When rendering three-dimensional (3D) measurement points online, a line is drawn between the 3D measurement point and its corresponding measurement point detail page. The intersection of multiple lines affects viewing and analysis. Moreover, the export method of size report usually saves specific page screenshots as pictures, which makes it difficult to quickly search and find specific measurement point information in size reports of hundreds of pages, and thus it is difficult to ensure the efficiency and flexibility of users using size reports. SUMMARY
[0004] Therefore, the present application provides a size report rendering method, a size report generation method, a device and equipment to solve the technical problem that the line between the 3D measurement point and its corresponding measurement point detail page in the size report intersects, and it is difficult to quickly search and find specific measurement point information, and thus it is difficult to ensure the efficiency and flexibility of users using size reports.
[0005] In a first aspect, a size report rendering method is provided, which includes: obtaining measurement point information of a three-dimensional measurement point set by a user in advance, wherein the measurement point information includes three-dimensional coordinates of the three-dimensional measurement point; According to the three-dimensional coordinates of the three-dimensional measurement point, rendering each three-dimensional measurement point in a three-dimensional model to obtain a three-dimensional labeled measurement point, and rendering a measurement point detail page corresponding to each three-dimensional labeled measurement point according to the measurement point information; Converting the three-dimensional coordinates of the three-dimensional measurement point into screen two-dimensional coordinates, and determining a target two-dimensional coordinate in the screen two-dimensional coordinates and a target center point coordinate matched with the target two-dimensional coordinate according to the screen two-dimensional coordinates and the center point coordinate of the measurement point detail page, the target two-dimensional coordinate being a coordinate with the smallest vertical coordinate value in the screen two-dimensional coordinates; drawing a line between the three-dimensional mark point corresponding to the target two-dimensional coordinate and the detail page of the measuring point corresponding to the target center point coordinate matching the target two-dimensional coordinate, and rendering the size report of the three-dimensional measuring point.
[0006] In a further technical solution, according to the screen two-dimensional coordinate and the center point coordinate of the detail page of the measuring point, the target two-dimensional coordinate in the screen two-dimensional coordinate and the target center point coordinate matching the target two-dimensional coordinate are determined, including: determining the inclination angle of the target two-dimensional coordinate and each center point coordinate according to the line between the three-dimensional mark point corresponding to the target two-dimensional coordinate and the detail page of the measuring point; determining the center point coordinate corresponding to the first inclination angle as the first center point coordinate according to the arrangement order from small to large of the inclination angle; drawing a first line between the three-dimensional mark point corresponding to the target two-dimensional coordinate and the detail page of the measuring point corresponding to the first center point coordinate; cyclically traversing the number of two-dimensional coordinates of the remaining screen two-dimensional coordinates on the left or right side of the first line and the number of center point coordinates of the remaining center point coordinates on the left or right side of the first line; determining the target center point coordinate matching the target two-dimensional coordinate according to the number of two-dimensional coordinates and the number of center point coordinates on the same side of the first line.
[0007] In a further technical solution, the target center point coordinate matching the target two-dimensional coordinate is determined according to the number of two-dimensional coordinates and the number of center point coordinates on the same side of the first line, including: if the number of two-dimensional coordinates and the number of center point coordinates on the same side of the first line are the same, determining the first center point coordinate as the target center point coordinate corresponding to the target two-dimensional coordinate; if the number of two-dimensional coordinates and the number of center point coordinates on the same side of the first line are different, determining the center point coordinate corresponding to the second inclination angle as the second center point coordinate according to the arrangement order from small to large of the inclination angle; drawing a second line between the three-dimensional mark point corresponding to the target two-dimensional coordinate and the detail page of the measuring point corresponding to the second center point coordinate; cyclically traversing the number of two-dimensional coordinates of the remaining screen two-dimensional coordinates on the left or right side of the second line and the number of center point coordinates of the remaining center point coordinates on the left or right side of the second line, judging whether the number of two-dimensional coordinates and the number of center point coordinates on the same side of the second line are the same, if the same, determining the second center point coordinate as the target center point coordinate corresponding to the target two-dimensional coordinate, if different, continuing to traverse the center point coordinates corresponding to the remaining inclination angles according to the arrangement order from small to large of the inclination angle until the target center point coordinate corresponding to the target two-dimensional coordinate is matched.
[0008] In a further technical solution, a connection is drawn between the 3D annotated measurement points corresponding to the target's 2D coordinates and the measurement point details page corresponding to the target's center point coordinates that match the target's 2D coordinates, and a 3D measurement point dimension report is rendered, including: After drawing the pairing line between the first screen 2D coordinate corresponding to the target 2D coordinate and the measurement point details page corresponding to the target center point coordinate that matches the target 2D coordinate, based on the remaining screen 2D coordinates on the left and right sides of the pairing line, return to the steps of determining the target 2D coordinate and the target center point coordinate that matches the target 2D coordinate in the screen 2D coordinate, until the last screen 2D coordinate corresponding to the target 2D coordinate and the measurement point details page corresponding to the target center point coordinate that matches the target 2D coordinate are drawn, thus completing the rendering process of the 3D measurement point dimension report.
[0009] Secondly, a method for generating a size report is provided, the method comprising: Get a screenshot corresponding to each loading page of the 3D measurement points. The screenshot is an image of the 3D model and 3D annotated measurement points obtained from the dimension report rendered by the dimension report rendering method of the first aspect. The loading page includes a preset number of 3D measurement points. Based on the preset report template, the screenshots corresponding to each loading page, the measurement point details page corresponding to the 3D annotated measurement points in the screenshots, and the screen 2D coordinates of the 3D measurement points, a dimension report of the 3D measurement points is generated.
[0010] In a further technical solution, based on a preset report template, screenshots corresponding to each loading page, the measurement point details page corresponding to the 3D annotated measurement points in the screenshots, and the screen 2D coordinates of the 3D measurement points, the following is included: Based on the display format of the measurement point details page corresponding to the 3D annotated measurement points in the screenshot, determine the target preset report template for rendering the measurement point details page; Based on the proportional relationship of the screen 2D coordinates of the 3D annotated measurement points in the screenshot, render the screenshot in an editable document generated based on the loading page corresponding to the screenshot. Based on the target preset report template of the measurement point details page, render the measurement point details page corresponding to the 3D annotated measurement points in the screenshot in the editable document generated based on the corresponding loading page of the screenshot; Draw the connection between the 3D annotated measurement points in the screenshot and the measurement point details page corresponding to the 3D annotated measurement points in the editable document generated based on the loading page corresponding to the screenshot; The editable documents generated from each loaded page are merged to obtain a dimension report, and a download link for the dimension report is generated. The download link is used to open, edit, and search the measurement point information in the dimension report.
[0011] Thirdly, a size report rendering apparatus is provided, the apparatus comprising: The first acquisition module is used to acquire the measurement point information of the three-dimensional measurement points preset by the user, wherein the measurement point information includes the three-dimensional coordinates of the three-dimensional measurement points; The rendering module is used to render each 3D measurement point in the 3D model based on the 3D coordinates of the 3D measurement points to obtain 3D labeled measurement points, and to render the measurement point details page corresponding to each 3D labeled measurement point based on the measurement point information; The determination module is used to convert the three-dimensional coordinates of the three-dimensional measurement points into two-dimensional coordinates on the screen, and determine the target two-dimensional coordinates in the screen two-dimensional coordinates and the target center point coordinates that match the target two-dimensional coordinates based on the screen two-dimensional coordinates and the center point coordinates of the measurement point details page. The rendering module is also used to draw the connection between the 3D annotated measurement points corresponding to the target's 2D coordinates and the measurement point details page corresponding to the target's center point coordinates that match the target's 2D coordinates, and to render the 3D measurement point dimension report.
[0012] Fourthly, a size report generation apparatus is provided, the apparatus comprising: The second acquisition module is used to acquire a screenshot corresponding to each loading page of the 3D measurement points. The screenshot is an image obtained by cropping the 3D model and 3D annotation measurement points from the dimension report rendered based on the dimension report rendering method described in the first aspect above. The loading page includes a preset number of 3D measurement points. The generation module is used to generate a dimension report of 3D measurement points based on a preset report template, screenshots corresponding to each loading page, measurement point details pages corresponding to the 3D annotated measurement points in the screenshots, and the screen 2D coordinates of the 3D measurement points.
[0013] Fifthly, a computer device is provided, comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores computer instructions executable by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the methods involved in the first and second aspects described above.
[0014] In a sixth aspect, a computer-readable storage medium is provided having computer instructions stored thereon for causing a computer to perform the methods involved in the first and second aspects described above.
[0015] According to the technical content provided in this application, the measurement point information of user-preset 3D measurement points is obtained. This measurement point information includes the 3D coordinates of the 3D measurement points. Based on the 3D coordinates, each 3D measurement point is rendered in the 3D model to obtain 3D labeled measurement points. A measurement point detail page corresponding to each 3D labeled measurement point is rendered based on the measurement point information. The 3D coordinates of the 3D measurement points are converted into screen 2D coordinates. Based on the screen 2D coordinates and the center point coordinates of the measurement point detail page, the target 2D coordinates in the screen 2D coordinates and the target center point coordinates matching the target 2D coordinates are determined. A connection is drawn between the 3D labeled measurement point corresponding to the target 2D coordinates and the measurement point detail page corresponding to the target center point coordinates matching the target 2D coordinates. A 3D measurement point dimension report is rendered. The connection between the matched target 2D coordinates and the target center point coordinates ensures that the connection between the 3D labeled measurement points and the measurement point detail page does not intersect, facilitating the viewing and analysis of the 3D measurement points.
[0016] Simultaneously, the system acquires screenshots corresponding to each loading page of the 3D measurement points. Based on the preset report template, the screenshots corresponding to each loading page, the measurement point details page corresponding to the 3D annotated measurement points in the screenshots, and the screen 2D coordinates of the 3D measurement points, it generates an editable document-style dimension report. The editable document also generates a download link for the dimension report. Users can click the download link to edit or search for the 3D measurement point information through related operations, making it convenient for users to quickly find and locate specific measurement point information, greatly improving the user experience. Attached Figure Description
[0017] Figure 1 This is a diagram illustrating the application environment of a dimension report generation method in one embodiment; Figure 2 This is a flowchart illustrating a size report rendering method in one embodiment; Figure 3 This is a flowchart illustrating a method for generating a size report in one embodiment; Figure 4 This is a structural block diagram of a size report rendering apparatus in one embodiment; Figure 5 This is a structural block diagram of a dimension report generation device in one embodiment; Figure 6 This is a schematic structural diagram of a computer device in one embodiment. Detailed Implementation
[0018] The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the scope of the present application.
[0019] For ease of understanding, the system to which this application applies will first be described. The dimension report rendering method and dimension report generation method provided in this application can be applied to, for example... Figure 1 In the system architecture shown.
[0020] Example 1 Terminal 110 communicates with server 120 via a network. Users can pre-set the measurement point information of vehicle 3D measurement points through terminal 110. The dimension report rendering method and dimension report generation method can be executed on terminal 110 or server 120. Taking the dimension report rendering on server 120 as an example, server 120 obtains the measurement point information of the 3D measurement points pre-set by the user. This measurement point information includes the 3D coordinates of the 3D measurement points. Based on the 3D coordinates, each 3D measurement point is rendered in the 3D model to obtain 3D labeled measurement points. The server also renders the measurement point details page corresponding to each 3D labeled measurement point based on the measurement point information. The 3D coordinates of the 3D measurement points are converted into screen 2D coordinates. Based on the screen 2D coordinates and the center point coordinates of the measurement point details page, the target 2D coordinates in the screen 2D coordinates and the target center point coordinates matching the target 2D coordinates are determined. A connection is drawn between the 3D labeled measurement point corresponding to the target 2D coordinates and the measurement point details page corresponding to the target center point coordinates matching the target 2D coordinates. Finally, the dimension report of the 3D measurement points is rendered. Among them, terminal 110 can be, but is not limited to, various personal computers, laptops, smartphones and tablets, and server 120 can be implemented by independent servers or server clusters composed of multiple servers.
[0021] The system architecture of the dimension report rendering method and dimension report generation method provided in this application can be divided into a project management module, a model upload module, a measurement point input module, a parameter configuration module, a report rendering module, and a report export module. Its front end is implemented using Vue + three.js, and its back end is implemented using Java + ittext.
[0022] The project management module provides configuration management for projects, allowing users to configure information such as project manager, contact person, monitoring thresholds (email or phone alerts when thresholds are exceeded), and associated models.
[0023] The model upload module allows users to upload 3D models online. Since model files are generally large, it provides large file chunking upload and resume functionality. For example, if an OBJ model file is 300MB in size and each chunk is set to 10MB, the OBJ model file will be split into 30 smaller chunks for upload. If the upload is interrupted at 50%, it will resume from 50% on the next upload, without re-uploading the previously uploaded portions.
[0024] The measurement point entry module allows users to batch set measurement point information by uploading an Excel spreadsheet or a DMO file, or to add, delete, modify, and query information for a single measurement point online.
[0025] The template configuration module allows you to configure the format for displaying detailed two-dimensional information about the measurement points. For example, you can configure it to be tabular or chart-based, and you can select the specific fields to be displayed.
[0026] The report rendering module uses the three.js 3D rendering engine in the browser to render dimension reports online, including 3D models, 3D measurement points on the model, and detailed information on the 2D measurement points. During the rendering process, intelligent layout and anti-interference measures ensure perfect display of measurement points. Custom measurement points can be manipulated and dragged to adjust their position and can be displayed on the next page, thus realizing the dimension report rendering method.
[0027] The report export module combines 3D model screenshots and 2D measurement point details page information to use iText to draw specific measurement point details and generate an editable document, thus realizing a method for generating dimension reports. The editable document includes, but is not limited to, searchable PDF reports and Word documents.
[0028] Figure 2 A flowchart illustrating a size report rendering method provided in this application embodiment, the method can be performed by, for example... Figure 1 The terminal 110 or server 120 in the system shown executes this. In the first embodiment, as... Figure 2 As shown, the method may include the following steps: S210: Obtain the measurement point information of the three-dimensional measurement points preset by the user.
[0029] 3D measurement points are a series of points with specific geometric meanings selected on the surface or internal structure of an object, such as intersections of object contour lines, extreme points of surface curvature, and connection points of structural components. They are used to accurately describe the shape, size, positional relationships, and deformation of the object. The objects can include vehicles, household items, furniture, and other items with 3D structures.
[0030] Measurement point information is a collection of key data recorded in 3D measurement, which may include the 3D coordinates, number, name, classification, acquisition time node, symmetry relationship, etc. of the 3D measurement point.
[0031] Users pre-set the measurement point information of 3D measurement points for which dimension reports need to be generated in batches through the measurement point input module and save it to terminal 110. When the dimension report generation command is executed, the measurement point information of the 3D measurement points pre-set by the user is retrieved.
[0032] S220: Based on the three-dimensional coordinates of the three-dimensional measurement points, render each three-dimensional measurement point in the three-dimensional model to obtain three-dimensional labeled measurement points, and render the measurement point details page corresponding to each three-dimensional labeled measurement point based on the measurement point information.
[0033] Load the 3D model corresponding to the 3D measurement point in the browser using three.js, set up an area in the middle of the page to display the 3D model, and set up a measurement point details page to display N 3D measurement points through the template configuration module, and display the 3D measurement points in paginated form with N measurement points per page.
[0034] Based on the 3D coordinates of the 3D measurement points, each measurement point is rendered using a mesh in the 3D model to annotate the 3D measurement points on the 3D model. These annotated points are called 3D labeled measurement points. To intelligently obtain a perfect layout of observation points, a cube containing all 3D coordinates is created to determine the scaling ratio of the 3D model, ensuring that the 3D measurement points on a single page of the 3D model always occupy a certain proportion of the rendering area.
[0035] Specifically, a cube containing 3D coordinates of 3D measurement points is created, and the center of the cube is used as the center of the 3D model. The first width and first height of the cube, as well as the second width and second height of the rendering area of the 3D model, are obtained respectively. Based on the first width, first height, second width, second height and preset model area ratio, the scaling ratio of the 3D model is determined.
[0036] The preset model area ratio is the proportion of the rendering area occupied by 3D measurement points in a pre-set 3D model page. The preset model area ratio can be set according to the user's actual needs, such as 80%, which can ensure that the 3D measurement points in a 3D model page occupy 80% of the rendering area.
[0037] The scaling ratio is the ratio by which the height and width of the 3D model are magnified or reduced. The height scaling ratio of the 3D model is the ratio of the product of the second height and the preset model area ratio to the first height. The width scaling ratio of the 3D model is the ratio of the product of the second width and the preset model area ratio to the first width.
[0038] Based on the measured point information, the 3D measured point details page is rendered according to the configured template, displayed sequentially from top to bottom and left to right on both sides of the rendering canvas, while simultaneously recording the 2D coordinates of the measured point details page. If the template is a table, it is rendered using `table`; if it is a chart, it is rendered using `echarts`. The measured point details page displays the specific content of the 3D measured point, which may include information such as the measured point number, monitoring parameters, equipment model, and acquisition time.
[0039] S230 converts the three-dimensional coordinates of the three-dimensional measurement point into two-dimensional coordinates on the screen, and determines the target two-dimensional coordinates in the screen two-dimensional coordinates and the target center point coordinates that match the target two-dimensional coordinates based on the screen two-dimensional coordinates and the center point coordinates of the measurement point details page.
[0040] After the 3D measurement points are rendered onto the 3D model in the browser, their positions on the rendering canvas are 2D coordinates, i.e., screen 2D coordinates. Projecting these 3D coordinates onto the camera plane transforms them into 2D coordinates, resulting in a standard vector. The returned result is the standard device coordinates corresponding to the world coordinate system under the camera object matrix transformation. These standard device coordinates are then converted to screen coordinates, i.e., screen 2D coordinates. The center point of the measurement point details page is the intersection of the center lines of the page's wide and long sides. Its coordinates can be obtained from the coordinates of the page's wide and long sides.
[0041] Based on the screen's 2D coordinates and the center point coordinates of the measurement point details page, first determine the target 2D coordinate with the smallest ordinate value in the screen's 2D coordinates. The target 2D coordinate is the coordinate with the smallest ordinate value in the screen's 2D coordinates. Based on the angle between the target 2D coordinate and the center point coordinates of all measurement point details pages, connect the center point coordinate with the smallest angle to the target 2D coordinate and check if the connection is successful. If not, connect the center point coordinate corresponding to the next smaller angle to the target 2D coordinate and check if the connection is successful again, until a target center point coordinate matching the target 2D coordinate is found. The connection between the target center point coordinate and the target 2D coordinate satisfies the condition that there are pairs of screen 2D coordinates and center point coordinates on the left and right sides of the connection. A successful connection means that the number of screen 2D coordinates and center point coordinates on the same side of the connection is the same, and the number of screen 2D coordinates and center point coordinates on the left side of the connection is the same. Continue to pair the screen 2D coordinates and center point coordinates on the left and right sides of the connection to ensure that the connections do not intersect. A connection failure means that the number of screen 2D coordinates and center point coordinates on the same side of the connection is not the same. It is necessary to find a new target center point coordinate that matches the target 2D coordinates. The target center point coordinates are confirmed by connecting them to the target 2D coordinates in order of increasing tilt angle, until the number of screen 2D coordinates and center point coordinates on the same side of the connection is the same.
[0042] S240: Draw the connection between the 3D annotated measurement points corresponding to the target's 2D coordinates and the measurement point details page corresponding to the target's center point coordinates that match the target's 2D coordinates, and render the 3D measurement point dimension report.
[0043] After drawing the first pairing line between the 3D annotation measurement point corresponding to the screen 2D coordinates that is determined as the target 2D coordinates and the measurement point details page corresponding to the target center point coordinates that match the target 2D coordinates, based on the remaining screen 2D coordinates on the left and right sides of the pairing line, return to step S230 and continue to find the pairing line between the 3D annotation measurement point corresponding to the screen 2D coordinates that is determined as the target 2D coordinates and the measurement point details page corresponding to the target center point coordinates that match the target 2D coordinates. The screen 2D coordinates and center point coordinates are both divided into different regions until the last pairing line between the 3D annotation measurement point corresponding to the screen 2D coordinates that is determined as the target 2D coordinates and the measurement point details page corresponding to the target center point coordinates that match the target 2D coordinates is drawn. By refining and dividing the screen 2D coordinates and center point coordinates into different regions, the exponential iteration speed can make the pairing line between the 3D annotation measurement point corresponding to the screen 2D coordinates that is determined as the target 2D coordinates and the measurement point details page corresponding to the target center point coordinates that match the target 2D coordinates.
[0044] Specifically, after matching the target center point coordinates corresponding to the target 2D coordinates, a pairing connection is drawn between the 3D annotation measurement point corresponding to the target 2D coordinates and the measurement point details page corresponding to the target center point coordinates. It should be noted that only connections where the number of screen 2D coordinates and center point coordinates in the right area of the connection is the same, or the number of screen 2D coordinates and center point coordinates in the left area is also the same, are considered paired connections. From the remaining screen 2D coordinates, a step is taken to select the target 2D coordinate with the smallest y-coordinate value. From the remaining screen 2D coordinates, the screen 2D coordinate with the smallest y-value is determined as the current target 2D coordinate. The corresponding target center point coordinate is then searched for, and a connection is drawn between the 3D annotation measurement point corresponding to the current target 2D coordinate and the measurement point details page corresponding to its target center point coordinates. The above steps are executed in a loop until the connection between the last screen 2D coordinate corresponding to the 3D annotation measurement point and the last center point coordinate corresponding to the measurement point details page is drawn.
[0045] As can be seen, this embodiment of the application obtains the measurement point information of the three-dimensional measurement points preset by the user. The measurement point information includes the three-dimensional coordinates of the three-dimensional measurement points. Based on the three-dimensional coordinates of the three-dimensional measurement points, each three-dimensional measurement point is rendered in the three-dimensional model to obtain three-dimensional labeled measurement points. The measurement point details page corresponding to each three-dimensional labeled measurement point is rendered based on the measurement point information. The three-dimensional coordinates of the three-dimensional measurement points are converted into two-dimensional coordinates on the screen. Based on the two-dimensional coordinates on the screen and the center point coordinates of the measurement point details page, the target two-dimensional coordinates in the screen two-dimensional coordinates and the target center point coordinates that match the target two-dimensional coordinates are determined. A connection line is drawn between the three-dimensional labeled measurement point corresponding to the target two-dimensional coordinates and the measurement point details page corresponding to the target center point coordinates that match the target two-dimensional coordinates. The dimension report of the three-dimensional measurement points is rendered. The connection line between the matched target two-dimensional coordinates and the target center point coordinates can ensure that the connection line between the three-dimensional labeled measurement points and the measurement point details page does not intersect, which facilitates the viewing and analysis of the three-dimensional measurement points.
[0046] Furthermore, based on the screen's two-dimensional coordinates and the center point coordinates of the measurement point details page, the target two-dimensional coordinates in the screen's two-dimensional coordinates and the target center point coordinates that match the target two-dimensional coordinates are determined, including: Based on the connection between the three-dimensional annotation measurement points corresponding to the target two-dimensional coordinates and the measurement point details page, determine the inclination angle between the target two-dimensional coordinates and the coordinates of each center point; Based on the order of the dip angles from smallest to largest, the coordinates of the center point corresponding to the first dip angle are determined as the coordinates of the first center point. Draw the first line connecting the 3D labeled measurement points corresponding to the target's 2D coordinates and the measurement point details page corresponding to the first center point's coordinates; Loop through the remaining screen 2D coordinates, including the number of 2D coordinates to the left or right of the first line, and the remaining center point coordinates, including the number of center point coordinates to the left or right of the first line. Based on the number of two-dimensional coordinates and the number of center point coordinates on the same side of the first connecting line, determine the target center point coordinates that match the target two-dimensional coordinates.
[0047] Determine the target 2D coordinate with the smallest y-coordinate value in the 2D coordinate system on the screen. That is, find the coordinate with the smallest y-value in the 2D coordinate system on the screen and determine it as the target 2D coordinate. Connect the 3D labeled measurement point corresponding to the target 2D coordinate with all measurement point details pages.
[0048] After obtaining the lines connecting the 3D labeled measurement points corresponding to the target 2D coordinates and the center point of the measurement point details page, calculate the inclination angle of each line based on the target 2D coordinates and the center point coordinates of the measurement point details page. Arrange the inclination angles in ascending order, with the first inclination angle being the smallest, the second the next smallest, and the last the largest. Determine the center point coordinates with the smallest inclination angle as the first center point coordinates, and draw the first line connecting the 3D labeled measurement points corresponding to the target 2D coordinates and the measurement point details page corresponding to the first center point coordinates. The first line will divide the remaining screen 2D coordinates and center point coordinates into left and right regions. The region where the screen 2D coordinates and center point coordinates are located is determined by the x-coordinate value. If the x-coordinate of a certain coordinate is greater than the x-coordinate of a point on the first line, the point corresponding to that coordinate is located on the right side of the first line; if the x-coordinate of a certain coordinate is less than the x-coordinate of a point on the first line, the point corresponding to that coordinate is located on the left side of the first line. To ensure that the lines between 3D annotated measurement points and measurement point detail pages do not intersect, the number of 3D annotated measurement points and measurement point detail pages in each partition of the left and right regions is the same; otherwise, the cross-regions will intersect.
[0049] The remaining screen 2D coordinates are iterated through to the number of 2D coordinates on the left and right sides of the first connecting line, and the remaining center point coordinates are iterated through to the number of center point coordinates on the left and right sides of the first connecting line. The results are then compared to determine whether the number of 2D coordinates and center point coordinates in the left region of the first connecting line are the same, and whether the number of 2D coordinates and center point coordinates in the right region of the first connecting line are the same. The results are then used to determine the target center point coordinates that match the target 2D coordinates.
[0050] Furthermore, if the number of two-dimensional coordinates on the same side of the first connecting line is the same as the number of center point coordinates, the coordinates of the first center point are determined as the coordinates of the target center point corresponding to the target two-dimensional coordinates; If the number of two-dimensional coordinates on the same side of the first line is different from the number of center point coordinates, the center point coordinates corresponding to the second inclination angle are determined as the second center point coordinates according to the order of the inclination angles from smallest to largest. Draw the second line connecting the three-dimensional annotation points corresponding to the target's two-dimensional coordinates and the measurement point details page corresponding to the second center point's coordinates; Iterate through the remaining screen 2D coordinates to the left or right of the second line and the remaining center point coordinates to the left or right of the second line. Determine if the number of 2D coordinates on the same side of the second line is the same as the number of center point coordinates. If they are the same, determine the second center point coordinate as the target center point coordinate corresponding to the target 2D coordinate. If they are different, continue to iterate through the center point coordinates corresponding to the remaining tilt angles in ascending order until the target center point coordinate corresponding to the target 2D coordinate is matched.
[0051] If the number of 2D coordinates is the same as the number of center point coordinates, that is, the number of 2D coordinates and center point coordinates are the same in the area to the left of the first connecting line, and the number of 2D coordinates and center point coordinates are the same in the area to the right of the first connecting line, it indicates that the lines between the 3D labeled measurement points and the measurement point details page in each partition of the left and right areas do not intersect. The coordinates of the first center point are then determined as the coordinates of the target center point corresponding to the target 2D coordinates.
[0052] If the number of 2D coordinates differs from the number of center point coordinates, it indicates a mismatch between the 3D labeled measurement points and the measurement point details pages within each partition of the left and right regions. The connection between the 3D labeled measurement point corresponding to the target 2D coordinates and the measurement point details page corresponding to the first center point coordinates is unsuccessful. In this case, a new center point coordinate matching the target 2D coordinates is found. That is, the connection between the measurement point details page corresponding to the desired center point coordinates and the 3D labeled measurement point corresponding to the target 2D coordinates is successful, and the number of remaining 2D coordinates on both sides of the connection is the same as the number of center point coordinates. The center point coordinates corresponding to the second inclination angle are selected; that is, the center point coordinates corresponding to the second inclination angle are selected from the inclination angle arrangement as the second center point coordinates.
[0053] Draw a second line connecting the 3D annotation measurement point corresponding to the target 2D coordinates and the measurement point details page corresponding to the second center point coordinates. Iterate through the remaining screen 2D coordinates on both sides of the second line, and the remaining center point coordinates on both sides of the second line. Determine if the number of 2D coordinates is the same as the number of center point coordinates. If they are the same, determine the second center point coordinate as the target center point coordinate corresponding to the target 2D coordinates. If they are different, continue to select the center point coordinate corresponding to the next tilt angle according to the order of tilt angles. Repeat the above steps until the number of 2D coordinates is the same as the number of center point coordinates, and the target center point coordinate corresponding to the target 2D coordinates is matched.
[0054] The above method only takes finding the center point coordinates that match the screen 2D coordinates as an example. If a center point coordinate is selected first, and then the screen 2D coordinates that match the center point coordinate are found, and the connection between the 3D labeled measurement point and the measurement point details page is drawn, the above method is also applicable.
[0055] Example 2 Figure 3 A flowchart illustrating a method for generating a size report provided in this application embodiment, the method being developed by, for example... Figure 1 The terminal 110 or server 120 in the system shown executes this. In the second embodiment, as... Figure 3 As shown, the method may include the following steps: S310, obtain the screenshot corresponding to each loading page of the 3D measurement point.
[0056] The screenshots are images obtained by extracting the 3D model and 3D annotated measurement points from the dimension report rendered using the dimension report rendering method described in steps S210 to S240 above. Each loading page includes a preset number of 3D measurement points, which can be set according to the user's actual needs, such as 10 or 12. The number of loading pages is determined by the preset number and the total number of 3D measurement points; once the preset number is determined, the 3D measurement points will be distributed across multiple loading pages.
[0057] When the 3D model and 3D annotation points are rendered based on the dimension report rendering method of steps S210 to S240 above, the 3D annotation points of the loading page will be loaded every time the loading page is switched, and the 3D model will be scaled and rotated to an appropriate position to display the 3D annotation points corresponding to the 3D annotation points of the loading page.
[0058] After the user clicks the "Export Report" button, the export process begins. First, the connection between the 3D annotation points and the point details page is hidden. The 3D model and 3D annotation points can be captured as images using `canvas.toDataURL()`, and `setInterval` can be used to quickly flip through all pages and capture all the images. `canvas.toDataURL()` is a method provided by the HTML5 Canvas API, used to convert image data in a Canvas element into a Base64 encoded URL, which can be directly used to display the image on the webpage. `setInterval` is a core timer function used for scenarios requiring repetitive operations.
[0059] S320 generates a dimension report for the 3D measurement points based on a preset report template, screenshots corresponding to each loading page, the measurement point details page corresponding to the 3D annotated measurement points in the screenshots, and the screen 2D coordinates of the 3D measurement points.
[0060] The preset report template is a pre-set template for rendering measurement point detail pages, including table templates and chart templates. When generating the dimension report, an editable document is created for each loaded page, rendering the corresponding screenshot, the measurement point detail page corresponding to the 3D annotated measurement points in the screenshot, and the screen 2D coordinates of the 3D measurement points into its corresponding editable document. After all the information for each loaded page has been rendered in its editable document, the editable documents corresponding to each loaded page are merged to obtain the 3D measurement point dimension report. This dimension report allows for quick searching and locating of specific measurement point information.
[0061] This step specifically includes: determining the target preset report template for rendering the measurement point details page based on the display format of the measurement point details page corresponding to the 3D annotated measurement points in the screenshot; Based on the proportional relationship of the screen 2D coordinates of the 3D annotated measurement points in the screenshot, render the screenshot in an editable document generated based on the loading page corresponding to the screenshot. Based on the target preset report template of the measurement point details page, render the measurement point details page corresponding to the 3D annotated measurement points in the screenshot in the editable document generated based on the corresponding loading page of the screenshot; Draw the connection between the 3D annotated measurement points in the screenshot and the measurement point details page corresponding to the 3D annotated measurement points in the editable document generated based on the loading page corresponding to the screenshot; The editable documents generated from each loaded page are merged to obtain a dimension report, and a download link for the dimension report is generated. The download link is used to open, edit, and search the measurement point information in the dimension report.
[0062] The display format of the measurement point details page includes tables and charts. To ensure the correct rendering of the measurement point details page in the editable document, a report template corresponding to its display format is pre-set. Before rendering, the appropriate template type for the measurement point details page is determined from the preset report templates and set as the target preset report template. The editable document generated based on the screenshot's corresponding loading page can include online editable Word documents, Portable Document Format (PDF) documents, and text documents. This embodiment uses a PDF document as an example to illustrate this step. The PDF document is generated at A4 paper size, and a dedicated area in the middle of the PDF file is designated to display the screenshot content.
[0063] The library used to render the measurement point details page is determined based on the preset report template. Specifically, if the preset report template is a table, the iText library is used to draw the table and render the content of the measurement point details page; if the preset report template is a chart, the JFreeChart library is used to draw the chart and render the content of the measurement point details page. The text content, such as the title of the measurement point details page, is drawn using the iText library. iText is an open-source Java library primarily used for generating PDF documents, supporting the conversion of XML and HTML files to PDF format. JFreeChart is an open-source chart drawing library on the Java platform, written entirely in Java, and designed for use in applications, applets, servlets, and JSP. JFreeChart can generate pie charts, bar charts, line charts, etc. By combining Java with the iText and JFreeChart libraries to dynamically draw elements such as titles, tables, and charts, a PDF document suitable for searching and editing can be obtained.
[0064] Based on the proportional relationship between the screen 2D coordinates of the 3D annotated measurement points in the screenshot and their corresponding 3D measurement points within the screenshot, the screenshot is rendered in an editable document generated based on the corresponding loading page. This proportional relationship includes the ratio between the designated area in the PDF document and the screenshot, as well as the ratio between the screenshot and the 2D coordinates of the vehicle's 3D measurement points. The proportion of the vehicle's 3D measurement point's 2D coordinates within the screenshot is calculated based on the screenshot and the vehicle's 3D measurement point's 2D coordinates, thus determining the position of the vehicle's 3D measurement point's 2D coordinates within the screenshot in the PDF document. The ratio between the area occupied by the screenshot and the designated area is determined based on the size of the designated area and the area of the screenshot. The screenshot is then dynamically scaled according to this ratio for adaptive rendering, and the 2D coordinates of the vehicle's 3D measurement points are dynamically updated based on this ratio after scaling the screenshot.
[0065] Following the target preset report template for the measurement point details page, the measurement point details page corresponding to the 3D annotated measurement points in the screenshot is rendered in the PDF document. After rendering the screenshot and measurement point details page in the PDF document, the connection between the 3D annotated measurement points in the screenshot and the corresponding measurement point details page is established using the method described in steps S230 and S240. This completes the generation of each page of the PDF document. All PDF documents are read using the iText library and merged into a unified PDF document using the PdfMerge class. After successful merging, all single-page PDF documents are deleted, resulting in a single PDF document's dimension report. A download link for the dimension report is also generated. The download link returns to the user interface of terminal 110. Users can open an editable and searchable PDF document by clicking the download link and edit or search for the measurement point information of the 3D measurement points through relevant operations. This facilitates quick searching and locating of specific measurement point information, greatly improving the user experience.
[0066] It should be understood that, although Figure 2 and Figure 3 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated in this application, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Furthermore, Figure 2 and Figure 3 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0067] Example 3 Figure 4This is a schematic diagram of a size report rendering device provided in an embodiment of this application. The device can be disposed in... Figure 1 The terminal 110 and server 120 in the system shown are used to perform, for example... Figure 2 The method flow is shown below. Figure 4 As shown, the size report rendering device 400 may include: a first acquisition module 410, a rendering module 420, and a generation determination module 430. The main functions of each component module are as follows: The first acquisition module 410 is used to acquire the measurement point information of the three-dimensional measurement points preset by the user, wherein the measurement point information includes the three-dimensional coordinates of the three-dimensional measurement points; The rendering module 420 is used to render each three-dimensional measurement point in the three-dimensional model according to the three-dimensional coordinates of the three-dimensional measurement points to obtain three-dimensional labeled measurement points, and to render the measurement point details page corresponding to each three-dimensional labeled measurement point according to the measurement point information; The module 430 is used to convert the three-dimensional coordinates of the three-dimensional measurement point into two-dimensional coordinates on the screen, and to determine the target two-dimensional coordinates in the screen two-dimensional coordinates and the target center point coordinates that match the target two-dimensional coordinates based on the screen two-dimensional coordinates and the center point coordinates of the measurement point details page. The target two-dimensional coordinates are the coordinates with the smallest vertical coordinate value in the screen two-dimensional coordinates. The rendering module 420 is also used to draw the connection between the three-dimensional annotation measurement points corresponding to the target's two-dimensional coordinates and the measurement point details page corresponding to the target's center point coordinates that match the target's two-dimensional coordinates, and to render the dimension report of the three-dimensional measurement points.
[0068] Further, module 430 is specifically used for: determining the inclination angle between the target two-dimensional coordinates and each center point coordinate based on the line connecting the 3D annotation measurement point corresponding to the target two-dimensional coordinates and the measurement point details page; determining the center point coordinates corresponding to the first inclination angle as the first center point coordinates based on the order of inclination angles from smallest to largest; drawing the first line connecting the 3D annotation measurement point corresponding to the target two-dimensional coordinates and the measurement point details page corresponding to the first center point coordinates; iterating through the number of remaining screen two-dimensional coordinates to the left or right of the first line, and the number of remaining center point coordinates to the left or right of the first line; and determining the target center point coordinates that match the target two-dimensional coordinates based on the number of two-dimensional coordinates and the number of center point coordinates on the same side of the first line.
[0069] Furthermore, module 430 is specifically used for: if the number of two-dimensional coordinates on the same side of the first connecting line is the same as the number of center point coordinates, determining the first center point coordinate as the target center point coordinate corresponding to the target two-dimensional coordinate; if the number of two-dimensional coordinates on the same side of the first connecting line is different from the number of center point coordinates, determining the center point coordinate corresponding to the second tilt angle as the second center point coordinate according to the order of tilt angle from smallest to largest; drawing the second connecting line between the three-dimensional annotation measurement point corresponding to the target two-dimensional coordinate and the measurement point details page corresponding to the second center point coordinate; looping through the number of two-dimensional coordinates on the left or right side of the second connecting line and the number of center point coordinates on the left or right side of the second connecting line for the remaining screen two-dimensional coordinates, and judging whether the number of two-dimensional coordinates on the same side of the second connecting line is the same as the number of center point coordinates. If they are the same, determining the second center point coordinate as the target center point coordinate corresponding to the target two-dimensional coordinate; if they are different, continuing to traverse the center point coordinates corresponding to the remaining tilt angles according to the order of tilt angle from smallest to largest until a target center point coordinate corresponding to the target two-dimensional coordinate is matched.
[0070] Furthermore, the rendering module 420 is specifically used to: after drawing the pairing line between the first screen two-dimensional coordinate corresponding to the target two-dimensional coordinate and the measurement point details page corresponding to the target center point coordinate that matches the target two-dimensional coordinate, based on the remaining screen two-dimensional coordinates on the left and right sides of the pairing line, return to the step of determining the target two-dimensional coordinate and the target center point coordinate that matches the target two-dimensional coordinate in the screen two-dimensional coordinate, until the last screen two-dimensional coordinate corresponding to the target two-dimensional coordinate and the measurement point details page corresponding to the target center point coordinate that matches the target two-dimensional coordinate are drawn, thus completing the rendering process of the three-dimensional measurement point dimension report.
[0071] Example 4 Figure 5 This is a schematic diagram of a size report generation device provided in an embodiment of this application. The device can be disposed in... Figure 1 The terminal 110 and server 120 in the system shown are used to perform, for example... Figure 3 The method flow is shown below. Figure 5 As shown, the size report generation device 500 may include a second acquisition module 510 and a generation module 520. The main functions of each component module are as follows: The second acquisition module 510 is used to acquire a screenshot corresponding to each loading page of the three-dimensional measurement points. The screenshot is an image obtained by cropping the three-dimensional model and three-dimensional annotation measurement points from the dimension report rendered by the dimension report rendering method described in steps S210-S240 above. The loading page includes a preset number of three-dimensional measurement points. The generation module 520 is used to generate a dimension report of the three-dimensional measurement points based on a preset report template, screenshots corresponding to each loading page, measurement point details pages corresponding to the three-dimensional annotation measurement points in the screenshots, and the screen two-dimensional coordinates of the three-dimensional measurement points.
[0072] Furthermore, the generation module 520 is specifically used for: determining the target preset report template for rendering the measurement point details page based on the display format of the measurement point details page corresponding to the 3D annotated measurement points in the screenshot; rendering the screenshot in an editable document generated based on the loading page corresponding to the screenshot based on the proportional relationship of the screen 2D coordinates of the 3D annotated measurement points in the screenshot; rendering the measurement point details page corresponding to the 3D annotated measurement points in the screenshot in an editable document generated based on the loading page corresponding to the screenshot based on the target preset report template of the measurement point details page; drawing the connection between the 3D annotated measurement points in the screenshot and the measurement point details page corresponding to the 3D annotated measurement points in the screenshot in an editable document generated based on the loading page corresponding to the screenshot; merging the editable documents generated based on each loading page to obtain a dimension report, and generating a download link for the dimension report, which is used to open, edit, and search for measurement point information in the dimension report.
[0073] The same or similar parts among the above embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the device embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description of the method embodiments.
[0074] It should be noted that the embodiments of this application may involve the use of user data. In practical applications, user-specific personal data may be used in the scheme described herein within the scope permitted by applicable laws and regulations, provided that it complies with the applicable laws and regulations of the country (e.g., explicit consent from the user, actual notification to the user, explicit authorization from the user, etc.).
[0075] According to embodiments of this application, this application also provides a computer device and a computer-readable storage medium.
[0076] like Figure 6 The diagram shown is a block diagram of a computer device according to an embodiment of this application. The term "computer device" is intended to represent various forms of digital computers or mobile devices. The digital computer may include a desktop computer, a portable computer, a workbench, a personal digital assistant, a server, a mainframe computer, and other suitable computers. The mobile device may include a tablet computer, a smartphone, a wearable device, etc.
[0077] like Figure 6As shown, device 600 includes a computing unit 601, a ROM 602, a RAM 603, a bus 604, and an input / output (I / O) interface 605. The computing unit 601, ROM 602, and RAM 603 are interconnected via the bus 604. The input / output (I / O) interface 605 is also connected to the bus 604.
[0078] The computing unit 601 can execute various processes in the method embodiments of this application according to computer instructions stored in read-only memory (ROM) 602 or computer instructions loaded from storage unit 608 into random access memory (RAM) 603. The computing unit 601 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. The computing unit 601 can include, but is not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. In some embodiments, the methods provided in the embodiments of this application can be implemented as computer software programs, which are tangibly contained in a computer-readable storage medium, such as storage unit 608.
[0079] RAM 603 may also store various programs and data required for the operation of device 600. Part or all of the computer program may be loaded and / or installed on device 600 via ROM 602 and / or communication unit 609.
[0080] The input unit 606, output unit 607, storage unit 608, and communication unit 609 in device 600 can be connected to I / O interface 605. The input unit 606 can be, for example, a keyboard, mouse, touchscreen, or microphone; the output unit 607 can be, for example, a display, speaker, or indicator light. Device 600 can exchange information and data with other devices through the communication unit 609.
[0081] It should be noted that the device may also include other components necessary for normal operation. It may also include only the components necessary for implementing the solution of this application, without necessarily including all the components shown in the figures.
[0082] Various implementations of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SOCs), payload programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof.
[0083] The computer instructions used to implement the methods of this application may be written in any combination of one or more programming languages. These computer instructions may be provided to the computing unit 601 such that when executed by the computing unit 601, such as a processor, the computer instructions cause the execution of the steps involved in the embodiments of the methods of this application.
[0084] The computer-readable storage medium provided in this application can be a tangible medium that can contain or store computer instructions for performing the steps involved in the method embodiments of this application. The computer-readable storage medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, and other forms of storage media.
[0085] The specific embodiments described above do not constitute a limitation on the scope of protection of this application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A method for rendering a size report, characterized in that, The method includes: Obtain the measurement point information of the three-dimensional measurement points preset by the user, wherein the measurement point information includes the three-dimensional coordinates of the three-dimensional measurement points; Based on the three-dimensional coordinates of the three-dimensional measurement points, each three-dimensional measurement point is rendered in the three-dimensional model to obtain three-dimensional labeled measurement points, and the measurement point details page corresponding to each three-dimensional labeled measurement point is rendered based on the measurement point information; The three-dimensional coordinates of the three-dimensional measurement point are converted into two-dimensional coordinates on the screen. Based on the two-dimensional coordinates on the screen and the center point coordinates of the measurement point details page, the target two-dimensional coordinates in the two-dimensional coordinates on the screen and the target center point coordinates that match the target two-dimensional coordinates are determined. The target two-dimensional coordinates are the coordinates with the smallest vertical coordinate values in the two-dimensional coordinates on the screen. Draw a line connecting the 3D annotated measurement point corresponding to the target's 2D coordinates and the measurement point details page corresponding to the target's center point coordinates that match the target's 2D coordinates, and render the 3D measurement point's dimension report.
2. The method according to claim 1, characterized in that, The step of determining the target two-dimensional coordinates in the screen two-dimensional coordinates and the target center point coordinates matching the target two-dimensional coordinates based on the screen two-dimensional coordinates and the center point coordinates of the measurement point details page includes: Based on the line connecting the three-dimensional annotation measurement points corresponding to the target two-dimensional coordinates and the measurement point details page, determine the inclination angle between the target two-dimensional coordinates and the coordinates of each center point; Based on the ascending order of the inclination angles, the coordinates of the center point corresponding to the first inclination angle are determined as the coordinates of the first center point. Draw the first line connecting the three-dimensional labeled measurement points corresponding to the two-dimensional coordinates of the target and the measurement point details page corresponding to the coordinates of the first center point; Loop through the number of remaining screen 2D coordinates to the left or right of the first connecting line, and the number of remaining center point coordinates to the left or right of the first connecting line. Based on the number of two-dimensional coordinates on the same side of the first connecting line and the number of center point coordinates, the target center point coordinates that match the target two-dimensional coordinates are determined.
3. The method according to claim 2, characterized in that, The step of determining the target center point coordinates that match the target two-dimensional coordinates based on the number of two-dimensional coordinates on the same side of the first connecting line and the number of center point coordinates includes: If the number of two-dimensional coordinates on the same side of the first connecting line is the same as the number of center point coordinates, the first center point coordinates are determined as the target center point coordinates corresponding to the target two-dimensional coordinates. If the number of two-dimensional coordinates on the same side of the first connecting line is different from the number of center point coordinates, the center point coordinates corresponding to the second tilt angle are determined as the second center point coordinates according to the order of the tilt angles from smallest to largest. Draw a second line connecting the three-dimensional labeled measurement points corresponding to the two-dimensional coordinates of the target and the measurement point details page corresponding to the coordinates of the second center point; The system iterates through the number of remaining screen 2D coordinates on the left or right side of the second connecting line, and the number of remaining center point coordinates on the left or right side of the second connecting line. It then determines whether the number of 2D coordinates on the same side of the second connecting line and the number of center point coordinates are the same. If they are the same, the second center point coordinate is determined as the target center point coordinate corresponding to the target 2D coordinate. If they are different, the system continues to iterate through the center point coordinates corresponding to the remaining tilt angles in ascending order until a target center point coordinate corresponding to the target 2D coordinate is found.
4. The method according to claim 1, characterized in that, The process of drawing the connection between the 3D annotated measurement points corresponding to the target's 2D coordinates and the measurement point details page corresponding to the target center point coordinates that match the target's 2D coordinates, and rendering the 3D measurement point dimension report, includes: After drawing the pairing line between the first screen 2D coordinate corresponding to the target 2D coordinate and the measurement point details page corresponding to the target center point coordinate that matches the target 2D coordinate, based on the remaining screen 2D coordinates on the left and right sides of the pairing line, the process returns to the step of determining the target 2D coordinate and the target center point coordinate that matches the target 2D coordinate in the screen 2D coordinate, until the last screen 2D coordinate corresponding to the target 2D coordinate and the measurement point details page corresponding to the target center point coordinate that matches the target 2D coordinate are drawn, thus completing the rendering process of the 3D measurement point dimension report.
5. A method for generating a size report, characterized in that, The method includes: Obtain a screenshot corresponding to each loading page of the 3D measurement points, wherein the screenshot is an image obtained by cropping the 3D model and 3D annotated measurement points from the dimension report rendered based on the dimension report rendering method described in any one of claims 1 to 4, and the loading page includes a preset number of 3D measurement points; The dimension report of the three-dimensional measurement point is generated based on the preset report template, the screenshot corresponding to each loading page, the measurement point details page corresponding to the three-dimensional annotated measurement point in the screenshot, and the screen two-dimensional coordinates of the three-dimensional measurement point.
6. The method according to claim 5, characterized in that, The process of generating a dimension report for the 3D measurement point based on a preset report template, a screenshot corresponding to each loading page, a measurement point details page corresponding to the 3D annotated measurement point in the screenshot, and the screen 2D coordinates of the 3D measurement point includes: Based on the display format of the measurement point details page corresponding to the 3D annotated measurement points in the screenshot, determine the target preset report template for rendering the measurement point details page; Based on the proportional relationship between the screen 2D coordinates of the 3D annotated measurement points in the screenshot and the corresponding 3D measurement points in the screenshot, the screenshot is rendered in an editable document generated based on the loading page corresponding to the screenshot. Based on the target preset report template of the measurement point details page, render the measurement point details page corresponding to the 3D annotated measurement points in the screenshot in the editable document generated based on the loading page corresponding to the screenshot; In the editable document generated based on the loading page corresponding to the screenshot, draw the line connecting the 3D annotated measurement point in the screenshot and the measurement point details page corresponding to the 3D annotated measurement point; The editable documents generated based on each loaded page are merged to obtain a dimension report, and a download link for the dimension report is generated. The download link is used to open, edit, and search the measurement point information in the dimension report.
7. A size report rendering device, characterized in that, The device includes: The first acquisition module is used to acquire the measurement point information of the three-dimensional measurement points preset by the user, wherein the measurement point information includes the three-dimensional coordinates of the three-dimensional measurement points; The rendering module is used to render each of the three-dimensional measurement points in the three-dimensional model according to the three-dimensional coordinates of the three-dimensional measurement points to obtain three-dimensional labeled measurement points, and to render the measurement point details page corresponding to each of the three-dimensional labeled measurement points according to the measurement point information; The determination module is used to convert the three-dimensional coordinates of the three-dimensional measurement point into two-dimensional coordinates on the screen, and determine the target two-dimensional coordinates in the screen two-dimensional coordinates and the target center point coordinates that match the target two-dimensional coordinates based on the screen two-dimensional coordinates and the center point coordinates of the measurement point details page; The rendering module is also used to draw the connection between the three-dimensional annotation measurement points corresponding to the two-dimensional coordinates of the target and the measurement point details page corresponding to the coordinates of the target center point that matches the two-dimensional coordinates of the target, and to render the dimension report of the three-dimensional measurement points.
8. A size report generation device, characterized in that, The device includes: The second acquisition module is used to acquire a screenshot corresponding to each loading page of the three-dimensional measurement points, wherein the screenshot is an image obtained by cropping the three-dimensional model and three-dimensional annotation measurement points from the dimension report rendered based on the dimension report rendering method according to any one of claims 1 to 4, and the loading page includes a preset number of three-dimensional measurement points; The generation module is used to generate a dimension report of the three-dimensional measurement point based on a preset report template, a screenshot corresponding to each loading page, a measurement point details page corresponding to the three-dimensional annotation measurement point in the screenshot, and the screen two-dimensional coordinates of the three-dimensional measurement point.
9. A computer device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores computer instructions executable by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to perform the size report rendering method according to any one of claims 1 to 4, or the size report generation method according to any one of claims 5 to 6.
10. A computer-readable storage medium storing computer instructions thereon, characterized in that, The computer instructions are used to cause the computer to execute the size report rendering method according to any one of claims 1 to 4, or the size report generation method according to any one of claims 5 to 6.