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!
Remesh
algorithms appliesdecimation
andsubdivision
:decimation
collapses too long edges witch means that some vertices and faces are removed from mesh, and other replacedsubdivision
introduce new vertices and facesFor example mesh had 5 faces:
face_0
,face_1
,face_2
,face_3
.face_4
we removed
face_1
andface_3
, so we still have array of 5 face, but 2 are removed:face_0
,_
,face_2
,_
.face_4
the mesh still takes same amount of memory.
So here
pack
arrives, it deallocate not used space inFaces
,Vertices
andEdges
arrays making them "dense",in this case
pack
do thisface_0
->new_face_0
face_2
->new_face_1
face_4
->new_face_2
and result mesh looks like this:
new_face_0
,new_face_1
,new_face_2