InterviewDB Question · Paris

Vertices Compression: Reduce a 3D Mesh's Vertex List by Merging Near-Duplicate Vertices

Question Details

Problem You are given a list of 3D vertices and a face list (triangles as index triples). Two vertices are considered duplicates if their Euclidean distance is below a threshold eps. Merge all duplicates into a single representative vertex, update the face list accordingly, and return the compressed mesh. Example: Follow-ups What data structure would you use to make the O(n^2) pairwise comparison more efficient (e.g., k-d tree, spatial hash grid)? After merging vertices, degenerate faces (all th…

Full Details

🔒

Unlock all Applied Intuition questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a reported interview question from a applied intuition interview during the phone round.

It covers the following topics: Coding, Phone, Onsite, Matrix .