MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / preciseOtherVert

Function preciseOtherVert

source/MRMesh/MRContoursCut.cpp:75–84  ·  view source on GitHub ↗

prepares precise-coordinates for a vertex from the other mesh

Source from the content-addressed store, hash-verified

73
74/// prepares precise-coordinates for a vertex from the other mesh
75PreciseVertCoords preciseOtherVert( VertId v, const SortIntersectionsData& sortData )
76{
77 if ( sortData.isOtherA )
78 return { v, sortData.converter( sortData.otherMesh.points[v] ) };
79
80 if ( !sortData.rigidB2A )
81 return { v + int( sortData.meshAVertsNum ), sortData.converter( sortData.otherMesh.points[v] )};
82
83 return { v + int( sortData.meshAVertsNum ),sortData.converter( ( *sortData.rigidB2A )( sortData.otherMesh.points[v] ) )};
84}
85
86// sets left face of given edge invalid and saves info about its old left ring
87void invalidateFace( MeshTopology& topology, FullRemovedFacesInfo& removedFaceInfo, int contId, int interId, EdgeId leftEdge, size_t oldEdgesSize )

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected