What does packMesh mean? #3998
-
|
RemeshSettings settings; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hello!
For example mesh had 5 faces: So here
|
Beta Was this translation helpful? Give feedback.
Hello!
Remeshalgorithms appliesdecimationandsubdivision:decimationcollapses too long edges witch means that some vertices and faces are removed from mesh, and other replacedsubdivisionintroduce new vertices and facesFor example mesh had 5 faces:
face_0,face_1,face_2,face_3.face_4we removed
face_1andface_3, so we still have array of 5 face, but 2 are removed:face_0,_,face_2,_.face_4the mesh still takes same amount of memory.
So here
packarrives, it deallocate not used space inFaces,VerticesandEdgesarrays making them "dense",in this case
packdo thisface_0->new_face_0face_2->new_face_1face_4->new_face_2and result mesh looks like this:
new_face_0,new_face_1,new_face_2