Research Article
Development of the Korean Spine Database and Automatic Surface Mesh Intersection Algorithm for Constructing e-Spine Simulator
Algorithm 2
Node generation algorithm on the intersection curve to prevent the change of implant model.
Input: (Intersection curve), (Intersection point) | Output: (Hard edges), (Hard points) | FIND (minimum distance between and , | and are points on the vertexes or edges of ); | LET = get first vertex in ; | FOR ; < end of index | IF = () (where = 0, 1 ∣ = 0, 1, 2) | LET ; | IF distance between and > (user variable) | FOR ; distance between and > ; ++ | LET = Create new point onto ; | LET = Create new segment (); | INSERT into ; | INSERT into ; | END | LET ; | END |
|