The invention discloses a triangular
mesh model-based automatic surface patching
algorithm for a sectioned contour, and the
algorithm comprises the steps: building a three-dimensional topological datastructure, and recording the geometric information and
topological information of a three-dimensional model; Defining a
cutting path and a
cutting direction on a projection surface of the three-dimensional model, and automatically generating a
cutting surface of the three-dimensional model; Performing intersection operation on the cutting surface and a triangular patch forming an object to form adiscrete
line segment set; Tracking and fitting the discrete
line segment set on the cutting surface to obtain a closed
contour line of the object, and determining an
inclusion relation of the
contour line;
Triangulation is carried out on the surrounding area of the closed
contour line, and a profile map of the entity is generated. According to the
algorithm provided by the invention, the entityprofile, the automatic face filling and the material inheritance of the three-dimensional model in the
virtual reality environment are realized, the entity profile of the three-dimensional model can be accurately and visually described in the
virtual reality environment, the material texture can be relatively and accurately inherited, and meanwhile, the real-time performance is relatively good.