Customized insole design method based on open cascade and coin3d
By leveraging the multifunctional geometric modeling and real-time visualization capabilities of the OpenCascade and COIN3D platforms, combined with one-click placement and multi-point linkage design, the problem of time-consuming and labor-intensive customized insole design has been solved, enabling efficient and personalized customized insole production.
Patent Information
- Application Number
- CN202310837858.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-10
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-07-10
AI Technical Summary
Existing methods for designing customized insoles are time-consuming, labor-intensive, inefficient, and unable to achieve precise mass production. Furthermore, they rely on professional human judgment, making quantitative adjustments difficult.
Utilizing the open-source platforms of OpenCascade and COIN3D, and combining multifunctional geometric modeling, real-time visualization, and interactivity, this system integrates engineering analysis and simulation. Through steps such as one-click placement, multi-point linkage design, surface generation, and pad fusion, it enables customized insole design.
It provides a powerful, flexible, and efficient customized design methodology, supports personalized adjustments, improves design efficiency, meets the needs of individual users, and has engineering analysis and simulation capabilities.
Smart Images

Figure CN116842661B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of product design technology, particularly in the field of insole design technology, and relates to a customized insole design method based on OpenCascade and COIN3D. Background Technology
[0002] Shoe comfort is primarily controlled by two aspects: the comfort of the shoe cavity and the comfort of the insole. The comfort of the shoe cavity is mainly related to its shape, materials, and style; while the comfort of the insole involves more important aspects, including the shape of the foot, its contour, and the curvature of the foot. Furthermore, in normal movement, gait begins at the heel and ends at the big toe. Therefore, the interaction force between the body and the ground during gait ultimately manifests at the interface between the foot and the shoe – the insole. Thus, the most basic function of the insole is to distribute concentrated pressure and protect the foot tissues. As can be seen, insoles are crucial for everyone, especially for those who need to protect their foot health. Besides distributing concentrated pressure and protecting the soft tissues of the foot, insoles can also correct abnormal gait. These are highly personalized orthotic insoles, typically custom-made, hence the name "custom insoles."
[0003] Traditional insole design (including customized insoles) requires creating a plaster model of the foot. Furthermore, the production and design of insoles often require highly experienced technicians spending several days and undergoing repeated modifications. This time-consuming and labor-intensive process hinders precise mass production, limiting the development of the insole industry, especially the customized insole sector. 3D printing, a rapid prototyping technology, is based on STL files of three-dimensional models. It typically uses powdered metal or plastic and other bondable materials to construct objects layer by layer. This technology can accurately and efficiently print customized functional insoles. Currently, personalized insole production is expensive and inefficient. Traditional customized insole design requires three-dimensional foot shape data and reference foot pressure data. In terms of equipment, in addition to a 3D scanner, a foot pressure machine is needed to obtain this data. Moreover, if reference foot pressure data is used to assist in insole design, professional human judgment is required, and the adjustments needed are difficult to quantify. Therefore, this process is both time-consuming and labor-intensive for insole technicians.
[0004] Currently, customized insole design mainly involves the following technologies: 3D scanning technology: 3D scanning technology is one of the key technologies in customized insole design. By using devices such as laser scanners or cameras, three-dimensional shape data of the user's foot can be acquired. This data can be imported into design software as the basis for customized insole design.
[0005] Foot dynamic data acquisition technology: In addition to static foot shape data, foot dynamic data acquisition technology also plays an important role. By using sensor devices such as pressure sensors, accelerometers, and gyroscopes, dynamic data such as foot pressure distribution and posture changes during walking, running, or other sports can be collected in real time. This data can be used for personalized adjustments and optimizations in customized insole designs.
[0006] Data processing and analysis technologies: Customized insole design requires the processing and analysis of large amounts of foot data. This includes steps such as data cleaning, registration, and modeling. Simultaneously, data analysis technologies can extract features from foot data, identify problem areas, and provide a foundation for customized design.
[0007] CAD modeling and design software: Customized insole design requires the use of CAD modeling and design software. This software provides modeling tools and editing functions, enabling designers to create the geometry and structure of customized insoles based on foot data. The software typically also features intelligent design and optimization algorithms to help designers generate insole designs that meet user needs.
[0008] 3D printing technology: 3D printing is one of the key manufacturing technologies for customized insole design. Based on CAD models, 3D printers are used to directly manufacture the designed insoles. 3D printing technology is flexible and customizable, allowing it to meet the diverse needs of individual users.
[0009] In summary, the technological background of customized insole design methods involves multiple aspects, including 3D scanning technology, foot dynamic data acquisition technology, data processing and analysis technology, CAD modeling and design software, and 3D printing technology. The application of these technologies enables designers to design and manufacture customized insoles based on the individual characteristics and needs of users. However, most current customized insole design methods are not flexible enough, have low efficiency, and certain functional limitations. Summary of the Invention
[0010] In view of this, the purpose of this invention is to provide a customized insole design method based on OpenCascade and COIN3D. This method adopts an open source platform, multifunctional geometric modeling, real-time visualization and interactivity, integrated engineering analysis and simulation, and has technical advantages such as scalability and customization.
[0011] To achieve the above objectives, the present invention provides the following technical solution: A customized insole design method based on OpenCascade and COIN3D includes the following steps: S1, creating a customized insole design project document; S2, selecting the required insole template; S3, importing foot scan and foot pressure data and creating key points; S4, one-click placement of the insole template and foot scan; S5, custom design of the insole based on multi-point linkage; S6, generating the solid and exporting it in STL format.
[0012] Furthermore, in step S4, the insole template and foot scan are positioned so that the insole and foot scan data need to be aligned during the design process to facilitate user comparison and design. The foot scan data is obtained by reconstructing the point cloud of the user's foot on a certain plane. The position of the CAD reference plane may differ, so its position needs to be positioned before the operation. The cutting direction needs to be specified in the next step of surface reconstruction and cutting. Therefore, the final positioning result is the major axis - X-axis, the minor axis - Y-axis, and the bottom surface of the insole - negative Z-axis.
[0013] Furthermore, the specific implementation method of one-click positioning of the insole template and foot sweeper in step S4 includes: aligning the foot sweeper with the coordinate axis, rotating the insole and foot sweeper to a specified position and aligning them; The alignment of the foot scan with the coordinate axis includes: 1) Create three key points at the bottom of the foot scan data: P1[x1,y1,z1], P2[x2,y2,z2], and P3[x3,y3,z3]. 2) Since the foot sweep data must be parallel to a certain coordinate plane, the foot sweep plane is determined by the arithmetic mean rmsx, rmsy, rmsz of the centroids x, y, z of the triangle formed by the three points corresponding to x, y, z. min(rmsx, rmsy, rmsz) corresponds to the normal direction of the plane where the foot sweep is located. For example, if min(rmsx, rmsy, rmsz) -> rmsz, then the plane where the foot sweep is located is xoy. 3) Obtain the lengths L12, L13, and L23 between each pair of the three key points; L12 is the minimum length, and the two points with the minimum length are the short side directions of the triangle created by the three points; obtain the corresponding position numbers of the three points, P1-P2 are located at the ball of the foot, and P3 is the heel position; 4) Obtain the center point P0 corresponding to L12. Combined with the plane xoy where the foot sweep is located obtained earlier, obtain the line L03 connecting the center point P0 and the heel point P3. The angle θ between L03 and the coordinate axis x or the coordinate axis y. Rotate the foot sweep and the three key points created with the z-axis as the rotation axis by the corresponding angle to align the foot sweep with the corresponding coordinate axis. The process of rotating the insole and foot sweeper to a specified position and aligning them includes: 1) Obtain the Δx, Δy, and Δz values of points P1 and P2 in the x, y, and z directions, and find the coordinate axis (X-axis) containing the corresponding minor axis by obtaining max(Δx, Δy, Δz); Similarly, obtain the Δx, Δy, and Δz values of points P1 and P3 or P1 and P2 in the x, y, and z directions, and find the coordinate axis (Y-axis) containing the corresponding major axis by obtaining max(Δx, Δy, Δz). 2) Using the obtained insole rotation axis, rotate the foot scan data to the specified direction, i.e., X-axis - major axis, Y-axis - minor axis; 3) Since the key point is created at the bottom of the insole, compare the minimum value of the foot sweep in the z-axis direction with the key point z to determine whether to flip the foot sweep over the shoe surface. 4) Obtain the center coordinates of the foot brush and insole template, and align them using a translation operation.
[0014] Furthermore, in step S5, the custom insole design based on multi-point linkage includes reconstructing the insole template to obtain mesh lines, cutting the insole template STL file to obtain corresponding feature lines, realizing the reconstruction of the insole template, and generating a mesh file for subsequent geometric operations such as surface generation and adjustment; the reconstructing of the insole template to obtain mesh lines includes: 1) Generation of insole template dividing lines (20*8): Cutting the insole template; obtaining the intersection of the internal major axis and minor axis cutting lines and the edge contour points, minor axis nx (20), major axis ny (8), and removing cutting lines with a length less than the minor axis; obtaining the intersection of the internal major and minor axis cutting lines and the edge contour points, creating a spline curve, and performing line segment division on this basis to obtain new control points; re-obtaining the minor axis cutting points, cutting the edge contour, and obtaining the line segments at the front and rear ends of the major axis direction of the insole for subsequent line segment division; 2) Control point and grid line creation: Divide the short axis and the previously obtained short line segments into equal division points, with the number of divisions being ny; grid line and point numbering (left foot, right foot symmetry principle) direction: outline - clockwise, internal points - from bottom to top - from left to right.
[0015] Furthermore, in step S5, the custom insole design based on multi-point linkage also includes surface generation. The generation of the insole surface uses the Surface module in FreeCAD, specifically including: 1) Adjusting surfaces by dragging with the mouse: Use Coin3D to create virtual points and grid lines for dragging with the mouse. Select and move the virtual point with the mouse, and then map the coordinate changes of the virtual point to the corresponding geometric control points, thereby controlling the boundary contour lines and internal control points of the constructed surface to adjust the surface. 2) Surface adjustment via selection: By selecting the control points to be adjusted, the surface is updated and adjusted according to the changes in the adjusted values. This allows direct adjustment of the surface's outline and internal control points. The moving box and internal grid lines are created using Coin3D. The range of the box is adjusted by moving the mouse. The view plane needs to be adjusted to the xoy plane, that is, the shoe surface is parallel to the computer screen. During the movement of the box, the points inside the box will be highlighted. The values need to be adjusted according to the required values. If the input value is 0, the surface state when the current function is activated will be maintained. 3) Achieve internal surface adjustment through custom adjustment: Custom adjustment involves selecting the area to be adjusted, and then making fine adjustments to the control points near the selected point based on the set change values in three directions (x, y, z) to make the surface smooth; take the center of the xoy plane area formed by the selected point and the surrounding nearby points as the smoothing center o1, and adjust the change ratio according to the distance r from these points to the smoothing center. 4) Inward and outward rotation - heel, arch, forefoot: The rotation operation is based on the boundaries of the arch, heel, and forefoot areas, and is performed counterclockwise or clockwise on the inner side of the foot to achieve the purpose of raising or lowering the upper surface area. 5) Arch movement, heel rotation, and heel cup adjustment: Heel rotation is similar to inversion and supination; heel cup adjustment only adjusts the height of the heel edge (Z-axis), without adjusting the internal points; in order to make the adjustment of the curved surface smoother, the points adjacent to the edge are locally raised.
[0016] Furthermore, in step S5, the custom insole design based on multi-point linkage also includes pad fusion. Before fusion, the pad type, protrusions, and depressions need to be marked, and a heat fusion method needs to be used to mark the pads according to different types. This allows for automatic identification of the pad type when importing the pads for fusion onto the upper surface; specifically including: 1) Boolean fusion: The Boolean fusion method uses Boolean operations for operation, and the fusion method for multiple pads is the same as here; First, perform a Boolean operation on each pad and the upper surface to divide the upper surface into an overlapping region a and other regions b. Then, use the overlapping regions to project (Z-axis) the pads to obtain the pad region c to be merged and other regions d. Subtract the overlapping region a of each pad from the upper surface to obtain the reference surface e. Finally, sum the reference surface e with the merged regions of all pads to obtain the final pad fusion surface. 2) Projection Blending: The projection blending method is based on Boolean operations to obtain the pad area to be blended through projection, and then... The fusion method is as follows: First, obtain the contour boundary L of the gasket. Use boundary L to segment the upper surface model, dividing the upper surface into overlapping region a and other regions b. Extract region b as the fusion reference plane g. Obtain the point cloud data c of the gasket and the height difference between the point cloud data and the lowest point of the gasket (generally the contour line is used as the reference). Project the point cloud coordinate data onto the upper surface to obtain the mapped coordinate point set d. Adjust the height direction coordinates of d to obtain the construction point d1 of the gasket e to be fused. Use the construction point d1 and the internal boundary L1 of the reference plane g to generate a new gasket f. Summate the reference plane g with all the projected gaskets f to obtain the final fused upper surface of the gasket.
[0017] Furthermore, in step S6, the entity is composed of a closed space formed by the upper surface, the side surface, and the lower surface. The upper surface is the upper surface (fusion pad), and the lower surface is obtained by scaling the upper surface along its minor axis by a certain proportion. Generating the entity specifically includes: 1) Obtain the edge contour line L of the upper surface f; 2) Divide the upper surface edge contour into segments according to the existing proportional cutting number in the minor axis direction, and obtain the coordinates c of the upper surface f contour line at the endpoints on both sides of the minor axis. 3) Based on the insole thickness setting, project the coordinate points of the upper surface contour segments along the z-direction to obtain the boundary contour points of the lower surface. Based on the reduction ratio of the minor axis and major axis of the lower surface generation, determine the coordinates of the corresponding points of the lower surface contour and obtain the lower surface contour b. 4) Project the starting point a1 of contour line a onto contour b to obtain coordinate b1. Reconstruct contour b based on the original contour construction points. The starting point of the reconstructed curve is b1. Obtain the reconstructed curve c. Divide the upper surface contour a and the lower surface reconstructed contour c equally. The dividing line of the upper surface contour a is a1, and the dividing line of the lower surface contour c is c1. Use c1 to generate the lower surface d. 5) Use the line segments at corresponding positions of the upper and lower surface contour lines a1 and c1 to create the side area, which together constitutes the side e; 6) Combine the upper surface f, the side surface e, and the lower surface d to form a closed solid s.
[0018] Furthermore, in step S6, generating the entity also includes solid lettering. Using the FreeCAD built-in string geometry module, the content of the lettering is input, and Boolean operations are used to perform a subtraction operation between the string geometry and the insole entity.
[0019] Furthermore, in step S6, the exported geometry file is encrypted using the mesh module of the FreeCAD module, which allows for the capture of more details when 3D printing the model.
[0020] The beneficial effects of this invention are as follows: The method provided by this invention has technical advantages such as an open-source platform, multifunctional geometric modeling, real-time visualization and interactivity, integrated engineering analysis and simulation, as well as scalability and customization. These advantages enable this design method to provide powerful, flexible, and efficient customization, specifically including: 1) Open-source platforms: OpenCascade and COIN3D are both open-source graphics processing libraries that provide powerful geometric modeling and visualization capabilities. This allows customized insole design methods to be developed and customized by leveraging the rich functionality and flexibility of these platforms, without having to build the entire software framework from scratch.
[0021] 2) Multifunctional Geometric Modeling: OpenCascade is a powerful geometric modeling library that provides rich geometric operations and model editing capabilities. It supports complex surface and volume modeling and can flexibly handle irregular shapes and complex topological relationships. This enables customized insole design methods to achieve accurate and detailed geometric modeling to meet the needs of individual users.
[0022] 3) Real-time visualization and interactivity: COIN3D is a library for real-time 3D visualization, providing high-performance graphics rendering and interactive operation capabilities. It can realistically display designed insole models to designers and users, supporting interactive editing and manipulation. This allows designers to view and modify insole designs in real time, providing a more intuitive design experience.
[0023] 4) Integrated Engineering Analysis and Simulation: OpenCascade and COIN3D not only provide geometric modeling and visualization capabilities, but also integrate with engineering analysis and simulation tools. Through integration with other engineering software, structural analysis, materials mechanics analysis, and fluid simulation can be performed on insoles to evaluate the performance and quality of the design. This enables customized insole design methods to consider engineering requirements and constraints during the design process.
[0024] 5) Scalability and Customization: OpenCascade and COIN3D offer excellent scalability and customization capabilities. Developers can add custom functions and algorithms based on actual needs to meet specific customized insole design requirements. This allows customized insole design methods to be tailored to different user requirements and supports continuous technological innovation and functional expansion.
[0025] Other advantages, objectives, and features of the invention will be set forth in part in the description which follows, and in part will be apparent to those skilled in the art from the following examination, or may be learned from practice of the invention. The objectives and other advantages of the invention can be realized and obtained through the following description. Attached Figure Description
[0026] To make the objectives, technical solutions, and advantages of the present invention clearer, the preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, wherein: Figure 1 This is a schematic flowchart of the method of the present invention; Figure 2 This is a schematic diagram showing the alignment of the foot sweep with the coordinate axes; Figure 3 A schematic diagram showing the rotational alignment of the insole and foot brush; Figure 4 A schematic diagram showing the cutting and division of the insole template; Figure 5 A schematic diagram for removing cutting lines shorter than the short axis; Figure 6 A schematic diagram showing the cutting of line segments at both ends of the long axis of the insole; Figure 7 A schematic diagram showing the edge-cutting curve segment and its internal points; Figure 8 This is a schematic diagram of the internal-boundary adjustment. Figure 9 A diagram illustrating the inward and outward rotation of the foot arch (heel and forefoot); Figure 10 This is a diagram illustrating the heel area rotation adjustment. Figure 11 This is a schematic diagram of Boolean fusion for gaskets; Figure 12 This is a schematic diagram of the pad projection fusion. Figure 13 Generate a schematic diagram for the entity. Detailed Implementation
[0027] The technical solution of the present invention will now be described in detail with reference to the accompanying drawings.
[0028] Figure 1 The flowchart of the method of the present invention is shown in the figure. The customized insole design method based on OpenCascade and COIN3D provided by the present invention includes the following steps: S1, creating a customized insole design project document; S2, selecting the required insole template; S3, importing foot scan and foot pressure data and creating key points; S4, one-click placement of insole template and foot scan; S5, custom design of insole based on multi-point linkage; S6, generating solid and exporting in STL format.
[0029] In this method, the insole and foot scan data need to be aligned during the design phase to facilitate user comparison. The foot scan data is obtained by reconstructing a point cloud of the user's foot on a certain plane. Since the position of this data on the CAD reference plane may differ, its position must be determined before any operations are performed. The cutting direction needs to be specified during the next step of surface reconstruction and cutting. Therefore, the final alignment result is: major axis - X-axis, minor axis - Y-axis, and insole bottom surface - negative Z-axis. The implementation method is as follows: Foot sweep aligned with coordinate axes: 1) Create three key points at the bottom of the foot scan data: P1[x1,y1,z1], P2[x2,y2,z2], and P3[x3,y3,z3]. 2) Since the foot sweep data must be parallel to a certain coordinate plane, the foot sweep plane is determined by the arithmetic mean rmsx, rmsy, rmsz of the centroids x, y, z of the triangle formed by the three points. min(rmsx, rmsy, rmsz) corresponds to the normal phase of the plane where the foot sweep is located. For example, if min(rmsx, rmsy, rmsz) -> rmsz, then the plane where the foot sweep is located is xoy. 3) Obtain the lengths L12, L13, and L23 between each pair of the three key points. The two points with the smallest length (corresponding to L12 in this case) represent the short side direction of the triangle created by the three points. Obtain the corresponding position numbers of the three points: P1-P2 are located at the foot position, and P3 is the heel position. 4) Obtain the center point P0 corresponding to L12. Combined with the previously obtained plane where the foot sweep is located, which is xoy in this case, obtain the angle θ between L03 and either the x-axis or the y-axis. Rotate the foot sweep and the three created key points around the z-axis by the corresponding angle to align the foot sweep with the corresponding coordinate axis. For example... Figure 2 As shown.
[0030] Rotate the insole and foot brush to the designated position and align them: 1) Obtain the Δx, Δy, and Δz values of points P1 and P2 in the x, y, and z directions. Calculate max(Δx, Δy, Δz) to find the coordinate axis containing the corresponding minor axis, which is the X-axis in this case. Similarly, obtain the Δx, Δy, and Δz values of points P1 and P3 or P1 and P2 in the x, y, and z directions. Calculate max(Δx, Δy, Δz) to find the coordinate axis containing the corresponding major axis, which is the Y-axis in this case. 2) Use the insole rotation axis to rotate the foot scan data to the specified direction, i.e., X-axis - major axis, Y-axis - minor axis; 3) Since the key point is created at the bottom of the insole, compare the minimum value of the foot sweep in the z-axis direction with the key point z to determine whether to flip the foot sweep over the shoe surface. 4) Obtain the center coordinates of the foot brush and insole template, and align them using a translation operation, such as... Figure 3 As shown.
[0031] In this method, the custom insole design based on multi-point linkage includes reconstructing the insole template to obtain mesh lines, cutting the insole template STL file to obtain corresponding feature lines, reconstructing the insole template, and generating a mesh file for subsequent geometric operations such as surface generation and adjustment. Specifically, it includes: Insole template dividing line generation (20*8): Insole template cutting, cutting division diagram as shown in the figure. Figure 4 As shown. Obtain the intersection of the internal major and minor axis cutting lines and the edge contour points, with the minor axis nx (20) and the major axis ny (8). Remove cutting lines with a length less than the minor axis, such as... Figure 5 As shown. Obtain the intersection points of the internal major and minor axis cutting lines and the edge contour points, create a spline curve, and perform line segmentation on this basis to obtain new control points. Re-obtain the minor axis cutting points, and refine the edge contour as follows. Figure 6 The cut shown is used to obtain the line segments at the front and rear ends along the long axis of the insole, which will be used for subsequent line segmentation.
[0032] Control point and grid line creation: Divide the minor axis and the previously obtained short line segments into equal-value points, with the number of divisions being ny; grid lines and point numbering order (left foot, right foot symmetry principle), point numbering direction: outline - clockwise, internal points - from bottom to top - from left to right.
[0033] In this method, the surface generation steps specifically include: The insole surface is generated using the Surface module in FreeCAD. There are two methods for generating the insole surface: 1) Boundary curve + internal lines. Advantages: good surface smoothness; Disadvantages: slower surface updates, hindering adjustments. 2) Boundary curve + internal points. Advantages: faster surface generation; Disadvantages: overlapping points or large height differences can cause surface distortion. The boundary curve requires multi-segment construction. Considering subsequent curve contour adjustments, to ensure control accuracy and mesh uniformity, the number of boundary line segments is the same as the number of actual minor-major axis tangent lines generated. Since the surface needs frequent updates and adjustments, considering time costs, this embodiment uses the second surface generation method to generate the insole surface. The edge contour lines and internal points are obtained using the previously obtained mesh lines. Here, the edge and internal point order is consistent with the mesh line order, such as... Figure 7 As shown.
[0034] Surface Adjustment - Mouse Drag: The surface adjustment mouse drag function mainly uses Coin3D to create virtual points and grid lines for mouse dragging. The mouse selects and moves the virtual point, and then the coordinate changes of the virtual point are mapped to the corresponding geometric control points, thereby realizing the manipulation of the boundary contour lines and internal control points of the constructed surface to achieve surface adjustment.
[0035] Surface Adjustment - Selection Box: Select the control points to be adjusted by using a selection box. The surface will be updated and adjusted based on the changes in the adjusted values. This allows direct adjustment of the surface's outline and internal control points. The moving box and internal grid lines are created using Coin3D. Adjust the box's range by moving the mouse; the view plane needs to be adjusted to the xoy plane, meaning the shoe surface is parallel to the computer screen. During the box's movement, points inside the box will be highlighted. Adjust the values as needed; if the input value is 0, the surface will retain its state as when the current function was active.
[0036] Custom Adjustment - Surface Internal Adjustment: Custom adjustment involves selecting the area to be adjusted and then fine-tuning the surface based on the set values in three directions (x, y, z) and the control points near the selected point to achieve a smooth surface. The center of the xoy plane region formed by the selected point and its surrounding points is designated as the smoothing center o1. The scaling factor is adjusted based on the distance r from these points to the smoothing center. If points near the edge of the inner surface are selected, such as... Figure 8 As shown, the edge points on the upper surface will not be adjusted.
[0037] Inversion / pronation - heel, arch, forefoot: The pronation operation involves rotating the foot along the boundaries of the arch, heel, and forefoot areas, either counterclockwise or clockwise, to raise or lower the upper surface areas. The pronation angle θ and the change in height value are illustrated using the left foot inversion as an example. Figure 9 As shown, where: P1 (ymin) is the outer edge point, and P2 is the inner selected point (ymax). The line connecting P1 and P2 is the baseline for the flip angle. Based on this, the point is flipped by an angle θ. The value is then raised or lowered according to the trigonometric relationship. To ensure the smoothness of the surface, a Gaussian smoothing method is used, with the y-axis distance from each selected point to P1 as the variable to obtain a scaling factor. Therefore, the corresponding elevation at each point .
[0038] Arch movement and heel rotation: Heel rotation is similar to inversion / exversion. In this embodiment, the scaling factor is obtained by using the distance from each selected point to P1 in the x-direction. Based on this, make significant adjustments, such as... Figure 10 As shown.
[0039] Heel cup adjustment: Only adjust the height of the heel edge (Z-axis), do not adjust the internal points. To make the adjustment of the surface smoother, locally raise the points adjacent to the edge.
[0040] The gasket fusion step in this method specifically includes: before fusion, the gasket type, protrusions, depressions, and the use of thermal fusion methods to mark the gaskets according to different types of gaskets. This allows the gasket type to be automatically identified when the gaskets are imported for fusion on the upper surface.
[0041] Boolean fusion: The Boolean fusion method is an operation performed using Boolean operations. The fusion method for multiple gaskets is the same as described here; see [link to relevant documentation]. Figure 11 The process is as follows: the upper surface to be fused and the gasket are as follows: Figure 11 As shown in (11-1), first, a Boolean operation is performed on each pad and the upper surface to divide the upper surface into overlapping region a and other regions b, as follows. Figure 11 As shown in (11-2); secondly, the pad is projected (Z-axis) and cut using the overlapping area to obtain the pad region c to be fused and other regions d, as shown in (11-2). Figure 11 As shown in (11-3); then, by subtracting the overlapping area a of each gasket from the upper surface, the reference plane e is obtained, as shown in (11-3). Figure 11 As shown in (11-4); finally, the reference plane e is summed with the areas to be fused of all the gaskets to obtain the final gasket fusion surface, as shown in (11-4). Figure 11 shown in (11-5).
[0042] Projection blending: The projection blending method involves projecting the pad regions to be blended based on Boolean operations, and then performing the blending. See [link to documentation]. Figure 12 The process is as follows: the pad to be fused and its upper surface are as follows: Figure 12 As shown in (12-1), firstly, the contour boundary L of the gasket is obtained. The upper surface model is segmented using boundary L, dividing the upper surface into overlapping region a and other regions b. Region b is extracted as the fusion reference surface g, as follows. Figure 12 As shown in (12-2) and (12-3); then obtain the point cloud data c of the pad and the height difference of the point cloud data relative to the lowest point of the pad (generally the outline is used as the reference). Projecting the point cloud coordinate data onto the upper surface to obtain the mapped coordinate point set d, according to... Adjust the coordinates in the height direction of d to obtain the construction point d1 of the pad e to be fused, as follows: Figure 12 As shown in (12-4); then, using the construction point d1 and the inner boundary L1 of the datum plane g, a new shim f is generated, as follows. Figure 12 As shown in (12-5); finally, the reference plane g is summed with all the shims f constructed by projection to obtain the final shim fusion upper surface, as shown. Figure 12shown in (12-6).
[0043] The entity generation steps in this method specifically include: the entity is composed of a closed space formed by the upper surface, side surface, and lower surface. The upper surface is the top surface (fusion pad), and the lower surface is obtained by scaling the upper surface along its minor axis by a certain proportion. See also Figure 13 The process is as follows: A schematic diagram of the upper surface of the insole is shown below. Figure 13 As shown in (13-1); first, obtain the edge contour line L of the upper surface f, as shown in (13-1). Figure 13 As shown in (13-2); secondly, the upper surface edge contour is segmented according to the existing proportional cutting number (N = 19) in the minor axis direction, and the coordinates c of the upper surface f contour line at the endpoints on both sides of the minor axis are obtained, as shown in (13-2). Figure 13 As shown in (13-3); then, based on the insole thickness setting, the coordinate points of the upper surface contour segments are projected along the z-direction to obtain the boundary contour points of the lower surface. Based on the reduction ratio of the minor and major axes of the lower surface generation, the coordinates of the corresponding points of the generated lower surface contour are determined, and the lower surface contour b is obtained, as shown in (13-3). Figure 13 As shown in (13-4); then project the starting point a1 of contour line a onto contour b to obtain coordinate b1, and reconstruct contour b based on the original contour construction points. The starting point of the reconstructed curve is b1, and the reconstructed curve c is obtained. The upper surface contour a and the lower surface reconstructed contour c are equally divided (10), the dividing line of the upper surface contour a is a1, and the dividing line of the lower surface contour c is c1. The lower surface d is generated using c1, as shown in (13-4). Figure 13 As shown in (13-5); then, using the line segments at corresponding positions of the upper and lower surface contour lines a1 and c1, the side surface area is created, which together constitute the side surface e, as shown in (13-5). Figure 13 As shown in (13-6); finally, the upper surface f, the side surface e, and the lower surface d are merged to form a closed solid s, as shown in (13-6). Figure 13 As shown in (13-7). In addition, the FreeCAD built-in string geometry module can be used to input the engraving content, and Boolean operations can be used to subtract the string geometry from the insole entity to achieve solid engraving.
[0044] Finally, export the geometry file and use the mesh module of FreeCAD to export it with encryption, so that more details can be captured when 3D printing the model later.
[0045] The customized insole design method based on OpenCascade and COIN3D provided by this invention has technical advantages such as open source platform, multifunctional geometric modeling, real-time visualization and interactivity, integrated engineering analysis and simulation, as well as scalability and customization.
[0046] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications can be made to the technical solutions of the present invention without departing from the spirit and scope of the present invention, and all such modifications should be covered within the scope of the claims of the present invention.
Claims
1. A customized insole design method based on OpenCascade and COIN3D, characterized in that: The method includes the following steps: S1. Create a customized insole design project document; S2. Select the desired insole template; S3. Import foot sweeping and foot pressure data and create key points; S4. Insole template and foot scanner for one-click placement; S5, Custom insole design based on multi-point linkage; S6. Generate the entity and export it in STL format; In step S4, the insole template and foot scan are positioned so that the insole and foot scan data need to be aligned during the design process to facilitate user comparison and design. The foot scan data is obtained by reconstructing the point cloud of the user's foot on a certain plane. The position of the CAD reference plane may differ, so its position needs to be positioned before the operation. The cutting direction needs to be specified in the next step of surface reconstruction and cutting. The final result of the positioning is major axis-X axis, minor axis-Y axis, and insole bottom surface-Z-axis negative. The specific implementation method of one-click positioning of the insole template and foot sweeper in step S4 includes: aligning the foot sweeper with the coordinate axis, rotating the insole and foot sweeper to a specified position and aligning them; The alignment of the foot scan with the coordinate axis includes: Create three key points at the bottom of the foot scan data: P1[x1,y1,z1], P2[x2,y2,z2], and P3[x3,y3,z3]. Since the foot sweep data must be parallel to a certain coordinate plane, the foot sweep plane is determined by the arithmetic mean rmsx, rmsy, rmsz of the centroids x, y, z of the triangle formed by the three points corresponding to x, y, z. min(rmsx, rmsy, rmsz) corresponds to the normal direction of the plane where the foot sweep is located, so the plane where the foot sweep is located is xoy. Get the lengths L12, L13, and L23 between each pair of the three key points; L12 is the minimum length, and the two points with the minimum length are the short side directions of the triangle created by the three points; get the corresponding position numbers of the three points, P1-P2 are located at the ball of the foot, and P3 is the heel position; Obtain the center point P0 corresponding to L12. Combined with the previously obtained plane xoy where the foot sweep is located, obtain the line L03 connecting the center point P0 and the heel point P3. The angle θ between L03 and the coordinate axis x or the coordinate axis y. Rotate the foot sweep and the three key points created around the z-axis by the corresponding angle to align the foot sweep with the corresponding coordinate axis. The process of rotating the insole and foot sweeper to a specified position and aligning them includes: Get the Δx, Δy, and Δz values of points P1 and P2 in the x, y, and z directions, and find the coordinate axis (X-axis) containing the corresponding minor axis by obtaining max(Δx, Δy, Δz). Similarly, get the Δx, Δy, and Δz values of points P1 and P3 or P1 and P2 in the x, y, and z directions, and find the coordinate axis (Y-axis) containing the corresponding major axis by obtaining max(Δx, Δy, Δz). Using the obtained insole rotation axis, rotate the foot scan data to the specified direction, namely X-axis - major axis and Y-axis - minor axis; Since the key point is created at the bottom of the insole, the minimum value of the foot sweep in the z-axis direction is compared with the key point z to determine whether to flip the foot sweep over the shoe surface. Obtain the center coordinates of the foot brush and insole template, and align them using a translation operation; In step S5, the custom insole design based on multi-point linkage includes reconstructing the insole template to obtain mesh lines, cutting the insole template STL file to obtain corresponding feature lines, reconstructing the insole template, and generating a mesh file for subsequent surface generation and geometric adjustment operations; the reconstructing of the insole template to obtain mesh lines includes: Insole template segmentation line generation: Insole template cutting; obtaining the intersection points of the internal major and minor axis cutting lines and edge contour points, minor axis nx, major axis ny, and removing cutting lines with lengths less than the minor axis; obtaining the intersection points of the internal major and minor axis cutting lines and edge contour points, creating a spline curve, and performing line segmentation on this basis to obtain new control points; re-obtaining the minor axis cutting points, cutting the edge contour, and obtaining the line segments at the front and rear ends of the major axis direction of the insole for subsequent line segmentation; Control point and grid line creation: Divide the minor axis and the previously obtained short line segments into equal division points, with the number of divisions = ny; Grid line and point numbering direction: Outline - clockwise, internal points - from bottom to top - from left to right; In step S5, the custom design of the insole based on multi-point linkage also includes surface generation. The generation of the insole surface uses the Surface module in FreeCAD, specifically including: Adjusting surfaces by dragging with the mouse: Use Coin3D to create virtual points and grid lines for dragging with the mouse. Select and move the virtual point with the mouse, and then map the coordinate changes of the virtual point to the corresponding geometric control points, thereby controlling the boundary contour lines and internal control points of the constructed surface to adjust the surface. Surface adjustment is achieved through selection: By selecting the control points to be adjusted, the surface is updated and adjusted according to the changes in the adjusted values, allowing direct adjustment of the surface's outline and internal control points; Moving the box and internal grid lines is created using Coin3D, and the range of the box is adjusted by moving the mouse. The view plane needs to be adjusted to the xoy plane, that is, the shoe surface is parallel to the computer screen; During the movement of the box, the points inside the box will be highlighted, and the values need to be adjusted according to the required values. If the input value is 0, the surface state when the current function is activated will be maintained; The surface can be adjusted internally through custom adjustments: Custom adjustments are made by selecting the area to be adjusted, and then fine-tuning the control points near the selected point according to the set change values in three directions (x, y, z) to make the surface smooth; the center of the xoy plane area formed by the selected point and the surrounding nearby points is taken as the smoothing center o1, and the change ratio is adjusted according to the distance r from these points to the smoothing center. Inward and outward rotation - heel, arch, forefoot: The rotation operation is based on the boundaries of the arch, heel, and forefoot areas, and is directed to the inside of the foot to perform counterclockwise or clockwise operations to achieve the purpose of raising or lowering the upper surface area; Arch movement, heel rotation, and heel cup adjustment: Heel rotation is similar to inversion / pronation; heel cup adjustment only adjusts the height of the heel edge, without adjusting the inner points; to make the adjustment of the curved surface smoother, the points adjacent to the edge are locally raised. In step S5, the custom insole design based on multi-point linkage also includes pad fusion. Before fusion, the pad type, protrusions, and depressions need to be marked, and a heat fusion method needs to be used to mark the pads according to different types. This allows for automatic identification of the pad type when importing the pads for fusion onto the upper surface. Specifically, this includes: Boolean fusion: The Boolean fusion method uses Boolean operations for operation, and the fusion method for multiple gaskets is the same as here; First, perform a Boolean operation on each pad and the upper surface to divide the upper surface into an overlapping region a and other regions b. Then, use the overlapping regions to project and cut the pads to obtain the pad region c to be merged and other regions d. Subtract the overlapping region a of each pad from the upper surface to obtain the reference surface e. Finally, sum the reference surface e with the merged regions of all pads to obtain the final pad fusion surface. Projection fusion: The projection fusion method is based on Boolean operations to obtain the pad region to be fused through projection, and then performs fusion. First, the contour boundary L of the pad is obtained. The upper surface model is segmented using boundary L, dividing the upper surface into overlapping region a and other regions b. Region b is extracted as the fusion reference plane g. The point cloud data c of the pad and the height difference of the point cloud data relative to the lowest point of the pad are obtained. Projecting the point cloud coordinate data onto the upper surface to obtain the mapped coordinate point set d, according to... Adjust the height direction coordinates of d to obtain the construction point d1 of the gasket e to be fused; use the construction point d1 and the inner boundary L1 of the reference plane g to generate a new gasket f; sum the reference plane g with all the projected gaskets f to obtain the final fused upper surface of the gasket.
2. The customized insole design method based on OpenCascade and COIN3D according to claim 1, characterized in that: In step S6, the solid is composed of a closed space formed by the upper surface, the side surface, and the lower surface. The upper surface is the upper surface itself, and the lower surface is obtained by scaling the upper surface along its minor axis by a certain proportion. Generating the solid specifically includes: Obtain the edge contour line L of the upper surface f; The upper surface edge contour is segmented according to the existing proportional cutting number in the minor axis direction, and the coordinates c of the upper surface f contour line at the endpoints on both sides of the minor axis are obtained. Based on the insole thickness setting, the coordinate points of the upper surface contour segments are projected along the z-direction to obtain the boundary contour points of the lower surface. Based on the reduction ratio of the minor axis and major axis of the lower surface, the coordinates of the corresponding points of the lower surface contour are determined, and the lower surface contour b is obtained. Project the starting point a1 of contour line a onto contour b to obtain coordinate b1. Reconstruct contour b based on the original contour construction points. The starting point of the reconstructed curve is b1, and the reconstructed curve c is obtained. Divide the upper surface contour a and the lower surface reconstructed contour c equally. The dividing line of the upper surface contour a is a1, and the dividing line of the lower surface contour c is c1. Use c1 to generate the lower surface d. The side surface region is constructed by using the line segments at corresponding positions of the upper and lower surface contour lines a1 and c1, which together constitute the side surface e; The upper surface f, the side surface e, and the lower surface d are merged to form a closed solid s.
3. The customized insole design method based on OpenCascade and COIN3D according to claim 2, characterized in that: In step S6, generating the entity also includes solid lettering. Using the FreeCAD built-in string geometry module, the content of the lettering is input, and Boolean operations are used to perform a subtraction operation between the string geometry and the insole entity.
4. The customized insole design method based on OpenCascade and COIN3D according to claim 3, characterized in that: In step S6, the exported geometry file is encrypted using the mesh module of the FreeCAD module.
Citation Information
Patent Citations
Individualized design method for diabetic foot shoe pad
CN106372374A
Full-contact insole customization method adaptive to user shoes
CN113436321A
