Modeling method and apparatus, electronic device, and storage medium
By constructing and enlarging a positioning kit model that matches the simulation model of the affected part, the relative positional relationship is detected, the target fixing component is determined, the tolerance problem between the helmet and the head is solved, and the positioning accuracy is improved and accurate positioning is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-15
- Publication Date
- 2026-03-24
AI Technical Summary
In transcranial magnetic stimulation (TMS), if no tolerance is set, the close contact between the target's head and the helmet will cause enormous pressure; if a tolerance is set, the positioning accuracy will be reduced.
A positioning kit model is constructed based on a pre-acquired part simulation model, and then enlarged. When the relative positional relationship meets the preset conditions, the target simulation model of the target fastener is determined so that the kit model to be processed can be fixed on the part simulation model.
By improving the positioning accuracy of the positioning helmet while maintaining tolerance, accurate positioning of the target stimulus point was achieved.
Smart Images

Figure CN116246792B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of the medical industry, and in particular to a modeling method and device, electronic equipment and a storage medium. BACKGROUND
[0002] Transcranial magnetic stimulation is a nerve regulation technology that applies a pulsed magnetic field to the cerebral cortex. The cerebral cortex can be treated by applying a pulsed magnetic field to the cerebral cortex. Different regions of the brain have different functions, so precise positioning of the stimulation site is required in the clinical application of transcranial magnetic stimulation technology.
[0003] Currently, in the clinical application of transcranial magnetic stimulation technology, the position in the brain that needs to be stimulated is usually positioned based on a brain stereotactic helmet.
[0004] However, the inventors have found the following problems when implementing the present technical solution based on the above method:
[0005] When the target object wears the brain stereotactic helmet, if no tolerance is set, the target object's head and the helmet will be tightly attached together, which will cause the target object's head to bear a lot of pressure; if a tolerance is set, the positioning accuracy of the positioning helmet will be reduced. SUMMARY
[0006] The present application provides a modeling method and device, electronic equipment and a storage medium to improve the positioning accuracy of the positioning helmet under the premise that there is a tolerance between the positioning helmet and the target object's head, achieving the effect of assisting the positioning helmet in accurately positioning the target stimulation point.
[0007] According to an aspect of the present application, a modeling method is provided, which comprises:
[0008] Based on the pre-acquired part simulation model, a positioning kit model matching the part simulation model is constructed, and the positioning kit model is enlarged to obtain a to-be-processed kit model;
[0009] When the relative position relationship between the part simulation model and the to-be-processed kit model meets a preset condition, a target simulation model of at least one target fixing part is determined based on at least one marker point pre-determined on the part simulation model and the to-be-processed kit model;
[0010] The target fixing part is used to fix the to-be-processed kit model on the part simulation model.
[0011] According to another aspect of the present application, a modeling device is provided, which comprises:
[0012] The to-be-processed kit model determination module is configured to construct a positioning kit model matched with the part simulation model based on the pre-acquired part simulation model, and to perform amplification processing on the positioning kit model to obtain a to-be-processed kit model.
[0013] The target simulation model determination module is configured to determine a target simulation model of at least one target fixing part when it is detected that the relative position relationship between the part simulation model and the to-be-processed kit model satisfies a preset condition, based on at least one marker point pre-determined on the part simulation model and the to-be-processed kit model, wherein the target fixing part is used to fix the to-be-processed kit model on the part simulation model.
[0014] According to another aspect of the present application, an electronic device is provided, which comprises:
[0015] at least one processor; and
[0016] a memory in communication with the at least one processor; wherein
[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the modeling method according to any one of the embodiments of the present application.
[0018] According to another aspect of the present application, a computer readable storage medium is provided, which stores computer instructions for enabling a processor to perform the modeling method according to any one of the embodiments of the present application when executed by the processor.
[0019] The technical solution of the embodiments of the present application constructs a positioning kit model matched with a part simulation model based on the pre-acquired part simulation model, and performs amplification processing on the positioning kit model to obtain a to-be-processed kit model, and determines a target simulation model of at least one target fixing part based on at least one marker point pre-determined on the part simulation model and the to-be-processed kit model when it is detected that the relative position relationship between the part simulation model and the to-be-processed kit model satisfies a preset condition, thereby solving the problems in the prior art that if no tolerance is set, the head of the target object and the helmet will be tightly attached together, which will cause the head of the target object to bear a huge pressure, or if a tolerance is set, the positioning accuracy of the positioning helmet will be reduced, and achieving the effects of improving the positioning accuracy of the positioning helmet and assisting the positioning helmet in accurately positioning the target stimulation point in the premise that there is a tolerance between the positioning helmet and the head of the target object.
[0020] It is to be understood that the matters described in this section are not intended to identify key or essential features of the embodiments of the present application, nor are they intended to limit the scope of the present application. Other features of the present application will be apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative effort.
[0022] Figure 1 is a flow chart of a modeling method according to an embodiment of the present application;
[0023] Figure 2 is a flow chart of a modeling method according to an embodiment of the present application;
[0024] Figure 3 is a schematic diagram of a marking point according to an embodiment of the present application;
[0025] Figure 4 is a schematic diagram of a first fixing member according to an embodiment of the present application;
[0026] Figure 5 is a schematic diagram of a second fixing member according to an embodiment of the present application;
[0027] Figure 6 is a schematic diagram of a target fixing member according to an embodiment of the present application;
[0028] Figure 7 is a schematic diagram of a mounting hole according to an embodiment of the present application;
[0029] Figure 8 is a schematic diagram of fixing between the target fixing member and the sleeve to be processed according to an embodiment of the present application;
[0030] Figure 9 is a structural schematic diagram of a modeling device according to an embodiment of the present application;
[0031] Figure 10 is a structural schematic diagram of an electronic device for implementing the modeling method according to an embodiment of the present application. DETAILED DESCRIPTION
[0032] In the following, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of embodiments of the present application, rather than all embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative effort should fall within the protection scope of the present application.
[0033] It should be noted that the terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not necessarily have to include all the steps or units clearly listed, but can include other steps or units not clearly listed or inherent to the process, method, product or device.
[0034] Embodiment one
[0035] Figure 1 is a flowchart of a modeling method provided by the embodiment one of the present application. The embodiment can be applicable to the case that the enlarged positioning sleeve model is not closely fitted with the corresponding part simulation model, and the positioning sleeve model is fixed on the part simulation model by constructing a target fixing part. The method can be executed by a modeling device, which can be realized in the form of hardware and / or software, and can be configured in a terminal and / or a server. As shown in the figure, the method comprises: Figure 1
[0036] S110, based on the pre-acquired part simulation model, constructing a positioning sleeve model matched with the part simulation model, and performing amplification processing on the positioning sleeve model to obtain a to-be-processed sleeve model.
[0037] The part simulation model can be a three-dimensional simulation model constructed based on an arbitrary to-be-detected part of a target object. For example, when the to-be-detected part is a head, the part simulation model can be a head simulation model. In actual application, the part simulation model can be constructed based on scanning data of the corresponding part. Specifically, the to-be-detected part of the target object can be scanned based on a scanning device to obtain scanning data of the to-be-detected part, and then the scanning data can be processed by image segmentation, smoothing, three-dimensional isosurface reconstruction, etc. to obtain the part simulation model corresponding to the to-be-detected part.
[0038] The positioning kit model can be a model covering the outer layer of the part simulation model, or can be understood as a model closely fitted with the part simulation model. For example, if the part simulation model is a head simulation model, the positioning kit model can be a positioning head cover model.
[0039] In actual application, first, a corresponding part simulation model can be constructed based on the scanning data of the part to be detected, then, the part surrounding area can be determined based on the spatial position relationship of the part simulation model in the image space coordinate system, and the extension direction and extension distance of the part surrounding area can be determined according to the part simulation model, so as to extend the part surrounding area based on the extension mode to obtain the positioning kit model. For example, for different parts to be detected, the construction mode of the corresponding positioning kit model is different, and the present embodiment takes the head as an example to illustrate the determination process of the positioning kit model: 1, determining the brain structure model and the head structure model of the target object based on the head portrait of the target object; 2, determining the target position of the coil structure model and the target posture of the coil structure model at the target position based on the target target point in the brain structure model, the stimulation hot spot in the coil structure model of the target coil, and the head structure model of the target object; 3, determining the head surrounding area in the image space coordinate system, determining the extension direction and extension distance of the head surrounding area according to the head structure model, and extending the head surrounding area according to the extension direction and extension distance of the head surrounding area to obtain the head positioning model; 4, establishing the coil positioning model based on the target position, the target posture and the coil structure model, and determining the processing positioning model based on the head positioning model and the coil positioning model; 5, determining the positioning head cover model based on the processing positioning model, the head structure model and the coil structure model.
[0040] Further, after obtaining the positioning kit model, the positioning kit model can be enlarged according to a preset ratio, that is, the processing kit model can be obtained. The processing kit model can be a three-dimensional model with the same overall contour as the positioning kit model but different model size. The preset ratio can be any ratio, which can be 10% optionally.
[0041] S120, when it is detected that the relative position relationship between the part simulation model and the processing kit model meets the preset condition, determining the target simulation model of at least one target fixing part based on at least one marker point on the part simulation model and the processing kit model.
[0042] The preset condition can be pre-set, and is used to determine the relative position relationship between the part simulation model and the corresponding set model. In the embodiment, when the relative position relationship between the part simulation model and the set model to be processed is that the part simulation model is in the set model to be processed, it is determined that the preset condition is met. Alternatively, when the set model to be processed is overlaid on the part simulation model, it is determined that the preset condition is met. In actual application, a model position moving control can be pre-developed. When a triggering operation of the control is detected, the relative position relationship between the set model to be processed and the part simulation model is detected, and when the relative position relationship between the two models meets the preset condition, the moving operation of the model is stopped. Alternatively, the set model to be processed or the part simulation model can be set to an editable state. The set model to be processed or the part simulation model can be moved based on an input device or a user's finger. When the relative position relationship between the set model to be processed and the part simulation model meets the preset condition during the moving process, the moving operation is stopped. For example, when the part simulation model is a head simulation model and the set model to be processed is an enlarged positioning head set model, when the enlarged positioning head set model is sleeved on the head simulation model, that is, when the region above the glabella in the head simulation model is located in the inner groove of the enlarged positioning head set model, it is determined that the preset condition is met.
[0043] The marking point can be a fixed guide point pre-determined on the part simulation model. In the embodiment, the marking point can be an anatomical marking point on the part to be detected. For example, when the part simulation model is a head simulation model, the marking points can be points corresponding to the left corner of the eye, the right corner of the eye and the tip of the nose.
[0044] The target fixed part can be a fixed part used to fix the set model to be processed on the part simulation model. Correspondingly, the target simulation model can be a three-dimensional simulation model constructed based on the target fixed part. In actual application, the positioning set model is constructed based on the part simulation model, and is a model that is mutually fitted with the part simulation model. The set model to be processed is obtained by enlarging the positioning set model. When the relative position relationship between the set model to be processed and the part simulation model meets the preset condition, the set model to be processed can not be fixed on the part simulation model without the support of the fixed part. Therefore, the target fixed part used to fix the set model to be processed on the part simulation model can be constructed.
[0045] It should be noted that the target fixed part can be a single integral component or a combined component including at least two components. When the target fixed part is in different forms, the corresponding determination methods can be different.
[0046] Optionally, if the target fixing member is a single integral component, the corresponding determination process can be: determining the mark point on the part simulation model and the fixing point on the to-be-processed set model; determining the spatial position relationship between the mark point and the fixing point; further, determining the height of the target fixing member and the length between the target fixing member and the to-be-processed set model according to the spatial position relationship, so as to construct the target simulation model of the target fixing member based on the height and the length.
[0047] Optionally, if the target fixing member is a combined component including at least two components, the corresponding determination process can be: determining the mark point on the part simulation model and the fixing point on the to-be-processed set model, determining the height of the first simulation model according to the spatial position relationship between the mark point and the fixing point, so as to construct the first simulation model of the first fixing member based on the height; further, determining the target length of the second simulation model according to the spatial position relationship between the model end point adjacent to the fixing point on the first simulation model and the fixing point, then constructing the second simulation model of the second fixing member according to the target length and the preset included angle between the first simulation model and the second simulation model, and finally combining the first simulation model and the second simulation model together to obtain the target simulation model of the target fixing member.
[0048] In actual application, after obtaining the to-be-processed set model, the relative position relationship between the to-be-processed set model and the part simulation model can be detected, and when it is detected that the relative position relationship between the to-be-processed set model and the part simulation model satisfies the preset condition, the mark point position information of the at least one mark point pre-determined on the part simulation model can be determined, and then the target simulation model of the at least one target fixing member can be determined according to the mark point position information of the mark points and the to-be-processed set model.
[0049] It should be noted that after obtaining the target simulation model of the at least one target fixing member, in order to combine the target fixing member and the to-be-processed set together when the to-be-processed set corresponding to the target fixing member and the to-be-processed set model is applied, and to store the target fixing member and the to-be-processed set separately when the target fixing member and the to-be-processed set are not applied, so as to save the storage space, a fixing hole matched with the target simulation model can be formed on the to-be-processed set model, so that the target simulation model and the to-be-processed set model can be matched with each other based on the corresponding fixing hole.
[0050] Based on the above technical solutions, the method further includes: determining the installation hole corresponding to the at least one target simulation model on the to-be-processed set model; and taking the at least one target simulation model and the to-be-processed set model as a target set model.
[0051] In the embodiment, the mounting hole can be a groove formed on the to-be-processed kit model, and a shape of the groove matches a structure of the model close to the to-be-processed kit model in the target simulation model. For example, if the structure of the model close to the to-be-processed kit model in the target simulation model is a cuboid, the shape of the mounting hole is a cuboid groove.
[0052] In actual application, after obtaining the target simulation model and the to-be-processed kit model, Boolean operation can be performed on the target simulation model and the to-be-processed kit model to complete the operation of determining the difference between the two models, and the corresponding mounting hole is obtained, that is, after the to-be-processed kit model and the target simulation model are combined together, the part of the to-be-processed kit model coinciding with the target simulation model is removed, and further, after the mounting hole corresponding to each target simulation model is determined on the to-be-processed kit model, at least one target simulation model and the to-be-processed kit model can be combined together to be used as a target kit model.
[0053] In actual application, after obtaining the to-be-processed kit model and the target simulation model of the corresponding target fixing part, the to-be-processed kit and the target fixing part can be prepared based on a model preparation mode, so as to fix the to-be-processed kit on the to-be-detected part of the target object based on the prepared target fixing part. Optionally, the model preparation mode can include but is not limited to 3D printing, injection molding, or other model preparation modes to materialize the target simulation model and the to-be-processed kit model.
[0054] The technical scheme of the embodiment of the application, by constructing a positioning kit model matched with the part simulation model based on the pre-acquired part simulation model, and performing amplification processing on the positioning kit model to obtain a to-be-processed kit model, when the relative position relationship between the part simulation model and the to-be-processed kit model meets a preset condition, determining a target simulation model of at least one target fixing part based on at least one mark point pre-determined on the part simulation model and the to-be-processed kit model, solves the problems in the prior art that if no tolerance is set, the head of the target object and the helmet are tightly attached together, which causes the head of the target object to bear huge pressure, or if a tolerance is set, the positioning accuracy of the positioning helmet is reduced, and achieves the effect of improving the positioning accuracy of the positioning helmet under the premise that there is a tolerance between the positioning helmet and the head of the target object, and achieves the effect of assisting the positioning helmet to accurately position the target stimulation point.
[0055] Embodiment two
[0056] Figure 2is a flowchart of a modeling method provided in Embodiment Two of the present application. On the basis of the foregoing embodiment, the target fixing part can include a first fixing part and a second fixing part. When the target fixing part is constructed, a first simulation model of the first fixing part can be constructed first, and then a second simulation model of the second fixing part is constructed based on the first simulation model. Thus, the target simulation model of the target fixing part can be determined based on the first simulation model and the second simulation model. Wherein, the same or corresponding technical terms as in the foregoing embodiment are not repeated here.
[0057] As shown in Figure 2 , the method comprises:
[0058] S210, based on the pre-acquired part simulation model, a positioning kit model matched with the part simulation model is constructed, and the positioning kit model is enlarged to obtain a to-be-processed kit model.
[0059] S220, when it is detected that the relative position relationship between the part simulation model and the to-be-processed kit model meets a preset condition, a first simulation model of at least one first fixing part is constructed based on at least one marker point pre-determined on the part simulation model and the to-be-processed kit model.
[0060] In the present embodiment, the first fixing part can be one of the components used to compose the target fixing part. Correspondingly, the first simulation model can be a three-dimensional simulation model constructed based on the first fixing part.
[0061] In actual application, the marker point position information of the marker point on the part simulation model can be determined first, and then the fixed point position information of the fixed point on the to-be-processed kit model corresponding to the marker point can be determined. Further, the height value of the first simulation model can be determined according to the marker point position information and the fixed point position information, so as to construct the first simulation model of the first fixing part based on the height value.
[0062] Optionally, based on the at least one marker point pre-determined on the part simulation model and the to-be-processed kit model, the first simulation model of the at least one first fixing part is constructed, comprising: determining a fixed point on the to-be-processed kit model corresponding to the marker point; determining the first spatial position information between the marker point and the fixed point, and constructing the first simulation model of the first fixing part based on the first spatial position information.
[0063] In the embodiment, the fixed point can be a point on the to-be-processed kit model for fixing the target fixed part. The first spatial position relationship can be a position relationship of the mark point and the fixed point corresponding thereto in an image space coordinate system. In actual application, after the mark point and the fixed point corresponding thereto are determined, the spatial coordinates of the mark point in the image space coordinate system and the spatial coordinates of the fixed point in the same image space coordinate system can be obtained. Further, the first spatial position information between the mark point and the fixed point can be determined according to the two spatial coordinates, and then the height value of the first simulation model can be determined based on the first spatial position information, so that the first simulation model of the first fixed part can be constructed according to the height value.
[0064] It should be noted that the model diameter of the first simulation model can be any value, which is not limited in the embodiment.
[0065] For example, the first fixed part can be a cylinder with a diameter of 5 mm, the center of the lower surface of the cylinder is located at the position of the mark point, the upper surface of the cylinder can be located at the fixed point on the to-be-processed kit model, and the cylinder does not intersect with the to-be-processed kit model.
[0066] It should be noted that the number of the first fixed parts matches the number of the mark points on the pre-determined position simulation model. For example, if the number of the mark points is 3, the number of the constructed first fixed parts is also 3.
[0067] S230, based on the first simulation model of the first fixed part and the to-be-processed kit model, a second simulation model of a second fixed part matched with the first fixed part is constructed.
[0068] It should be noted that when the number of the first fixed parts is multiple, the number of the corresponding second fixed parts is consistent with the number of the first fixed parts, and the determination method of any second fixed part is the same, so one of the second fixed parts is taken as an example for description.
[0069] In the embodiment, the second fixed part can be one of the components for composing the target fixed part. Correspondingly, the second simulation model can be a three-dimensional simulation model constructed based on the second fixed part.
[0070] In actual application, one end of the first simulation model is adjacent to the mark point on the simulation model, and the other end is adjacent to the fixed point on the to-be-processed kit model. When the second simulation model is constructed based on the first simulation model and the to-be-processed kit model, the spatial position information of the model end point of the first simulation model adjacent to the to-be-processed kit model and the spatial position information of the corresponding fixed point on the to-be-processed kit model can be determined. Further, the model length of the second simulation model can be determined according to the two sets of spatial position information, so as to construct the second simulation model based on the model length.
[0071] Optionally, the second simulation model of the second fixing part matched with the first fixing part is constructed based on the first simulation model of the first fixing part and the to-be-processed kit model, including: determining the target length value of the second simulation model based on the second spatial position information between the model end point adjacent to the fixed point on the first simulation model and the fixed point; constructing the second simulation model of the second fixing part based on the target length and the preset included angle between the first simulation model and the second simulation model.
[0072] In the embodiment, the first simulation model is generated from the mark point along the direction of the to-be-processed kit model, so one end of the first simulation model can be adjacent to the mark point, and the other end can be adjacent to the fixed point on the to-be-processed kit model. At this time, the spatial coordinates of the model end point in the image space coordinate system can be determined, and the spatial coordinates of the fixed point determined in the image space coordinate system are obtained. Then, the spatial position information between the model end point and the fixed point is determined according to the two sets of spatial coordinates, and the spatial position information can be taken as the second spatial position information. The target length value can be the distance value between the top of the second simulation model and the bottom of the second simulation model. The preset included angle can be a preset angle used to limit the included angle when the first simulation model and the second simulation model intersect. The preset included angle can be any value, and optionally, can be 90 degrees.
[0073] In actual application, after the first simulation model is obtained, the spatial coordinates of the model end point adjacent to the fixed point in the first simulation model can be determined, and the second spatial position information between the model end point and the fixed point is determined according to the spatial coordinates and the spatial coordinates of the fixed point. Further, the target length of the second simulation model can be determined according to the second spatial position information, and then the second simulation model of the second fixing part can be constructed based on the target length and the preset included angle determined in advance.
[0074] It should be noted that the second spatial position information can be determined by determining the difference between the two sets of spatial coordinates, and when the target length of the second simulation model is determined based on the second spatial position information, the target length can be equal to or greater than the value corresponding to the second spatial position information.
[0075] For example, the first fixing member is a cylinder, and the second fixing member can be a cuboid. After the cylinder is constructed, the cuboid can be generated on the upper surface of the cylinder. The longest side of the cuboid is perpendicular to the direction of the height of the cylinder, that is, the angle between the cuboid and the cylinder is 90 degrees. The cuboid intersects with the to-be-processed kit model and penetrates into the to-be-processed kit model by more than 10 mm. At the same time, the cuboid cannot penetrate the inner wall of the to-be-processed kit model.
[0076] S240, determining a target simulation model of the target fixing member based on the first simulation model and the second simulation model.
[0077] It should be noted that the number of target fixing members is the same as the number of first fixing members and second fixing members, and is consistent with the number of predetermined mark points on the part simulation model. In addition, for each target fixing member, the corresponding determination method is the same. Therefore, one of the target fixing members is taken as an example for description.
[0078] In this embodiment, after the first simulation model and the second simulation model are obtained, the first simulation model and the second simulation model can be combined to obtain the target simulation model of the target fixing member.
[0079] Optionally, the target simulation model of the target fixing member is determined based on the first simulation model and the second simulation model, including: determining a target pose between the first simulation model and the corresponding second simulation model based on a Boolean operation principle, combining the first simulation model with the second simulation model in the target pose, and taking the combined model as the target simulation model of the corresponding target fixing member.
[0080] Those skilled in the art should understand that the Boolean operation principle is a logical deduction method of numerical symbolization, including union, intersection and subtraction. In the operation of the graphic processing, this logical operation method is used to make simple basic graphics combination to produce new shapes, and the two-dimensional Boolean operation is developed to three-dimensional graphic Boolean operation. For three-dimensional graphic Boolean operation, the union, difference and intersection operations are performed on two or more three-dimensional models to obtain a new three-dimensional model shape.
[0081] The target pose can be the model pose obtained after the union operation of the first simulation model and the second simulation model after being combined together.
[0082] In actual application, after obtaining the first simulation model and the second simulation model, the model data of the first simulation model and the model data of the second simulation model can be subjected to set operation based on the principle of Boolean operation, and then the target attitude of the first simulation model and the second simulation model combined together can be determined based on the model data after operation. Further, the first simulation model and the second simulation model can be combined together, and the first simulation model can be adjusted according to the target attitude, so that the adjusted first simulation model and the second simulation model are combined with each other, thereby the combined model is determined as the target simulation model of the target fixing part.
[0083] It should be noted that, in order to make the target simulation model and the part simulation model more fit, so as to be more stable when the to-be-processed sleeve is fixed on the to-be-detected part by the target fixing part, the target simulation model can be processed, so that the processed target simulation model can be more fit to the part simulation model.
[0084] Based on the above technical solutions, the target combination attitude between the target simulation model and the part simulation model is determined based on the principle of Boolean operation, and the target simulation model is updated based on the target combination attitude.
[0085] In this embodiment, the target combination attitude can be the attitude corresponding to the combination of the target simulation model and the part simulation model.
[0086] In actual application, the target simulation model and the part simulation model can be subjected to Boolean operation, so that the model surface of the target simulation model close to the part simulation model matches the model surface of the part simulation model contacted thereby. The combination attitude of the target simulation model and the part simulation model at this time can be taken as the target combination attitude, and further, the target simulation model can be updated based on the target combination attitude, so that the redundant part of the target simulation model close to the part simulation model is removed after matching the part simulation model, thereby the updated target simulation model can be taken as the final simulation model of the target fixing part.
[0087] The technical scheme of the embodiment of the present application, by means of the pre-acquired part simulation model, constructs a positioning suit model matched with the part simulation model, and performs amplification processing on the positioning suit model to obtain a to-be-processed suit model; when the relative position relationship between the part simulation model and the to-be-processed suit model meets a preset condition, based on at least one mark point pre-determined on the part simulation model and the to-be-processed suit model, a target simulation model of at least one target fixing part is determined, which solves the problems in the prior art that if no tolerance is set, the head of the target object and the helmet are tightly attached together, which will cause the head of the target object to bear huge pressure, or if a tolerance is set, the positioning precision of the positioning helmet is reduced, and the effect of improving the positioning precision of the positioning helmet under the premise that there is a tolerance between the positioning helmet and the head of the target object is achieved, and the effect of assisting the positioning helmet to accurately position the target stimulation point is achieved.
[0088] Embodiment three
[0089] Figures 3 to 8 is a schematic diagram of the construction process of the target simulation model of the target fixing part in the modeling method provided by the embodiment three of the present application. The embodiment of the present application is a preferred embodiment of each of the above-mentioned embodiments of the present application, and takes the part simulation model as the head simulation model, the positioning suit model as the positioning head cover model, and the target fixing part as a combined part including two components, as an example. Figures 3 to 8
[0090] Specifically, the method of the embodiment of the present application can include the following steps:
[0091] 1. Three mark points (left eye corner, right eye corner and nose tip) are determined on the head of the target object, the head of the target object is scanned, and based on the scanned data, a head simulation model is constructed, and at the same time, a circular ball with a diameter of 6 mm (i.e. the model pointed by the arrow in Figure 3 ) is generated at the mark point corresponding to the head on the head simulation model;
[0092] 2. Taking the center of each circular ball as the origin, a cylindrical body (i.e. the model pointed by the arrow in Figure 4 ) is generated upward along the direction of the amplified positioning head cover model. The diameter of each cylindrical body is 5 mm, the center of the lower surface of the cylindrical body is located at the center of the corresponding circular ball, the upper surface of the cylindrical body is above the lower surface of the amplified positioning head cover model, and the cylindrical body does not intersect with the positioning head cover model;
[0093] 3. Three cuboids (i.e. the model pointed by the arrow in Figure 5 The model pointed by the middle arrow). The direction of the longest side of the cuboid is perpendicular to the direction of the height of the cylinder, that is, the cylinder and its corresponding cuboid are perpendicular to each other, the cuboid intersects the positioning head cover model, and penetrates into the positioning head cover model by more than 10 millimeters, and cannot penetrate the positioning head cover model;
[0094] 4. Perform a Boolean union operation on the three spheres, the cylinder and the cuboid to generate three target fixing parts;
[0095] 5. Perform a Boolean difference set operation on the target fixing part and the head simulation model of the target object to generate the shape of the head simulation model of the target object under the target fixing part (that is, the model pointed by the middle arrow) ; Figure 6
[0096] 6. Perform a Boolean difference set operation on the enlarged positioning head cover model and the target fixing part to generate the mounting hole of the target fixing part on the positioning head cover model (that is, the hole pointed by the middle arrow) ; Figure 7
[0097] 7. Perform 3D printing on the target fixing part and the enlarged positioning head cover model respectively, the target fixing part is installed in the respective mounting hole of the positioning head cover model, and is worn on the head of the target object (that is, the fixing mode pointed by the middle arrow). Figure 8
[0098] The technical scheme of the embodiment of the application, by constructing a positioning set model matched with the part simulation model based on the pre-acquired part simulation model, and performing amplification processing on the positioning set model to obtain a to-be-processed set model, when the relative position relationship between the part simulation model and the to-be-processed set model meets the preset condition, determining a target simulation model of at least one target fixing part based on at least one marker point pre-determined on the part simulation model and the to-be-processed set model, solves the problems in the prior art that if no tolerance is set, the head of the target object and the helmet are tightly attached together, which causes the head of the target object to bear a huge pressure, or if a tolerance is set, the positioning accuracy of the positioning helmet is reduced, and achieves the effects of improving the positioning accuracy of the positioning helmet and assisting the positioning helmet in accurately positioning the target stimulation point under the premise that there is a tolerance between the positioning helmet and the head of the target object.
[0099] Embodiment four
[0100] Figure 9 is a structural schematic diagram of a modeling device provided by the fourth embodiment of the application. As shown in Figure 9 the device comprises a to-be-processed set model determination module 410 and a target simulation model determination module 420.
[0101] The processing suite model determination module 410 is configured to construct a positioning suite model matched with the part simulation model based on the pre-acquired part simulation model, and to perform amplification processing on the positioning suite model to obtain a processing suite model;
[0102] The target simulation model determination module 420 is configured to, when it is detected that the relative position relationship between the part simulation model and the processing suite model satisfies a preset condition, determine a target simulation model of at least one target fixing part based on at least one marker point pre-determined on the part simulation model and the processing suite model, wherein the target fixing part is used to fix the processing suite model on the part simulation model.
[0103] The technical scheme of the embodiment of the present application is characterized in that, based on a pre-acquired part simulation model, a positioning suite model matched with the part simulation model is constructed, and amplification processing is performed on the positioning suite model to obtain a processing suite model; when it is detected that the relative position relationship between the part simulation model and the processing suite model satisfies a preset condition, a target simulation model of at least one target fixing part is determined based on at least one marker point pre-determined on the part simulation model and the processing suite model, thereby solving the problems in the prior art that, if no tolerance is set, the head of the target object and the helmet are tightly attached together, which will cause the head of the target object to bear a huge pressure, or if a tolerance is set, the positioning precision of the positioning helmet is reduced, and the effect of improving the positioning precision of the positioning helmet under the premise that there is a tolerance between the positioning helmet and the head of the target object is achieved, and the effect of assisting the positioning helmet to accurately position the target stimulation point is achieved.
[0104] Optionally, the target fixing part includes a first fixing part and a second fixing part, and the target simulation model determination module 420 includes a first simulation model construction unit, a second simulation model construction unit and a target simulation model determination unit.
[0105] The first simulation model construction unit is configured to construct a first simulation model of at least one first fixing part based on at least one marker point pre-determined on the part simulation model and the processing suite model;
[0106] The second simulation model construction unit is configured to construct a second simulation model of a second fixing part matched with the first fixing part based on the first simulation model of the first fixing part and the processing suite model;
[0107] The target simulation model determination unit is configured to determine a target simulation model of the target fixing part based on the first simulation model and the second simulation model.
[0108] Optionally, the first simulation model constructing unit comprises: a fixed point determining subunit and a first simulation model constructing subunit.
[0109] The fixed point determining subunit is configured to determine a fixed point on the to-be-processed kit model corresponding to the mark point.
[0110] The first simulation model constructing subunit is configured to determine a first spatial position relationship between the mark point and the fixed point, and construct a first simulation model of the first fixed part based on the first spatial position relationship.
[0111] Optionally, the second simulation model constructing unit comprises: a target length determining subunit and a second simulation model constructing subunit.
[0112] The target length determining subunit is configured to determine a target length of the second simulation model based on a second spatial position relationship between a model end point adjacent to the fixed point on the first simulation model and the fixed point.
[0113] The second simulation model constructing subunit is configured to construct a second simulation model of the second fixed part based on the target length and a preset included angle between the first simulation model and the second simulation model.
[0114] Optionally, the target simulation model determining unit is specifically configured to determine a target pose between the first simulation model and the corresponding second simulation model based on a Boolean operation principle, combine the first simulation model with the second simulation model in the target pose, and take the combined model as a target simulation model of the corresponding target fixed part.
[0115] Optionally, the device further comprises: a mounting hole determining module and a target positioning kit model determining module.
[0116] The mounting hole determining module is configured to determine a mounting hole corresponding to the at least one target simulation model on the to-be-processed kit model.
[0117] The target positioning kit model determining module is configured to take the at least one target simulation model and the to-be-processed kit model as a target kit model, wherein the at least one target simulation model is used in cooperation with the to-be-processed kit model through the corresponding mounting hole.
[0118] Optionally, the device further comprises: a target simulation model updating module.
[0119] The target simulation model updating module is configured to determine a target combined pose between the target simulation model and the part simulation model based on a Boolean operation principle, and update the target simulation model based on the target combined pose.
[0120] The modeling device provided by the embodiments of the present application can execute the modeling method provided by any of the embodiments of the present application, and has the corresponding function modules and beneficial effects of the execution method.
[0121] Embodiment five
[0122] Figure 10 A structural schematic diagram of an electronic device 10 that can be used to implement embodiments of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices (e.g., headsets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit the implementations of the present application described and / or claimed in this document.
[0123] As shown in Figure 10 The electronic device 10 includes at least one processor 11, and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11, wherein the memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0124] A plurality of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, a speaker, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.
[0125] The processor 11 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, and the like. The processor 11 performs various methods and processes described above, such as the modeling method.
[0126] In some embodiments, the modeling method can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded onto the RAM 13 and executed by the processor 11, one or more steps of the modeling method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the modeling method by any other suitable means, such as by means of firmware.
[0127] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (PLD), a computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0128] Computer programs used to implement the methods of the application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program, when executed by the processor of the machine, implements the functions / acts specified in the flowcharts and / or block diagrams. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine and partially on a remote machine or entirely on a remote machine or server.
[0129] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer-readable storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of a machine-readable storage medium will include one or more lines of a program of instructions in a transitory signal, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0130] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0131] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), blockchain network, and the Internet.
[0132] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS service.
[0133] It should be understood that the various forms of flow shown above can be reordered, added to, or have steps deleted. For example, the steps described in the present application can be performed in parallel, in series, or in a different order, as long as the desired results of the technical solutions of the present application can be achieved, and this is not limited herein.
[0134] The above detailed description does not constitute a limitation on the protection scope of the present 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 replacements, and improvements made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A modeling method, characterized in that, include: Based on the pre-acquired part simulation model, a positioning kit model matching the part simulation model is constructed, and the positioning kit model is enlarged to obtain the kit model to be processed. When the relative positional relationship between the part simulation model and the kit model to be processed is detected to meet the preset conditions, at least one target simulation model of the target fastener is determined based on at least one pre-determined marker point on the part simulation model and the kit model to be processed. The target fastener is used to fix the kit model to be processed onto the simulation model of the part.
2. The method according to claim 1, characterized in that, The target fastener includes a first fastener and a second fastener. Determining the target simulation model of the target fastener based on at least one marker point on the simulation model of the part and the model of the kit to be processed includes: Based on at least one pre-determined marker point on the simulation model of the part and the model of the kit to be processed, a first simulation model of at least one first fastener is constructed. Based on the first simulation model of the first fastener and the model of the kit to be processed, a second simulation model of the second fastener that matches the first fastener is constructed. Based on the first simulation model and the second simulation model, the target simulation model of the target fastener is determined.
3. The method according to claim 2, characterized in that, The construction of a first simulation model of at least one first fastener based on at least one pre-determined marker point on the simulation model of the part and the model of the kit to be processed includes: Determine the fixed point on the kit model to be processed that corresponds to the marked point; Determine the first spatial position information between the marker point and the fixed point, and construct a first simulation model of the first fixing component based on the first spatial position information.
4. The method according to claim 3, characterized in that, The construction of a second simulation model of a second fastener matching the first fastener, based on the first simulation model of the first fastener and the model of the kit to be processed, includes: Based on the second spatial position information between the model endpoints near the fixed point on the first simulation model and the fixed point, the target length of the second simulation model is determined; Based on the target length and the preset angle between the first simulation model and the second simulation model, a second simulation model of the second fastener is constructed.
5. The method according to claim 2, characterized in that, The step of determining the target simulation model of the target fastener based on the first simulation model and the second simulation model includes: Based on the Boolean operation principle, the target posture between the first simulation model and the corresponding second simulation model is determined, and the first simulation model is combined with the second simulation model with the target posture, and the combined model is used as the target simulation model of the corresponding target fixture.
6. The method according to claim 1, characterized in that, Also includes: Determine mounting holes on the kit model to be processed that correspond to the at least one target simulation model; The at least one target simulation model and the kit model to be processed are used as the target kit model, wherein the at least one target simulation model is used in conjunction with the kit model to be processed through corresponding mounting holes.
7. The method according to claim 1, characterized in that, Also includes: Based on the Boolean operation principle, the target combined posture between the target simulation model and the part simulation model is determined, so as to update the target simulation model based on the target combined posture.
8. A modeling apparatus, characterized in that, include: The module for determining the kit model to be processed is used to construct a positioning kit model that matches the pre-acquired part simulation model, and to enlarge the positioning kit model to obtain the kit model to be processed. The target simulation model determination module is used to determine the target simulation model of at least one target fastener based on at least one pre-determined marker point on the part simulation model and the kit model to be processed when the relative positional relationship between the part simulation model and the kit model to be processed is detected to meet the preset conditions; wherein, the target fastener is used to fix the kit model to be processed on the part simulation model.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the modeling method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the modeling method according to any one of claims 1-7.
Citation Information
Patent Citations
System and method for implementing physical stimulation service
CN110475585A
Positioning head sleeve preparation method and device and storage medium
CN114463305A