[Paper Review] Sampling color and geometry point clouds from ShapeNet dataset
This paper proposes a script to sample high-quality, color-accurate point clouds from ShapeNet meshes by removing internal, duplicated faces with conflicting colors before sampling. Using Meshlab's ambient occlusion and iterative face selection, it ensures only exterior-facing faces are sampled, then leverages CloudCompare and Open3D for color-preserving, quantized point cloud generation with improved visual fidelity over direct sampling.
The popularisation of acquisition devices capable of capturing volumetric information such as LiDAR scans and depth cameras has lead to an increased interest in point clouds as an imaging modality. Due to the high amount of data needed for their representation, efficient compression solutions are needed to enable practical applications. Among the many techniques that have been proposed in the last years, learning-based methods are receiving large attention due to their high performance and potential for improvement. Such algorithms depend on large and diverse training sets to achieve good compression performance. ShapeNet is a large-scale dataset composed of CAD models with texture and constitute and effective option for training such compression methods. This dataset is entirely composed of meshes, which must go through a sampling process in order to obtain point clouds with geometry and texture information. Although many existing software libraries are able to sample geometry from meshes through simple functions, obtaining an output point cloud with geometry and color of the external faces of the mesh models is not a straightforward process for the ShapeNet dataset. The main difficulty associated with this dataset is that its models are often defined with duplicated faces sharing the same vertices, but with different color values. This document describes a script for sampling the meshes from ShapeNet that circumvent this issue by excluding the internal faces of the mesh models prior to the sampling. The script can be accessed from the following link: https://github.com/mmspg/mesh-sampling.
Motivation & Objective
- To address the challenge of corrupted color artifacts in point clouds sampled directly from ShapeNet meshes due to duplicated, conflicting faces.
- To enable high-fidelity point cloud generation from ShapeNet's textured CAD models for use in learning-based compression training.
- To develop a robust preprocessing pipeline that preserves both geometry and color while eliminating visual noise from back-facing or duplicate faces.
- To provide a reproducible, open-source solution for generating clean, quantized point clouds from ShapeNet meshes with consistent color representation.
Proposed method
- The method detects and removes internal faces in ShapeNet meshes by leveraging Meshlab's ambient occlusion plugin, which assigns visibility scores based on multiple virtual viewpoints.
- It iteratively identifies faces sharing the same vertices and retains only those with the highest visibility score, effectively eliminating duplicate faces with conflicting colors.
- The cleaned mesh is then sampled using CloudCompare to generate a point cloud with both geometry and color attributes preserved.
- The resulting point cloud is scaled to a cubic bounding box and quantized to a uniform grid using Open3D, where overlapping points have their colors averaged.
- The pipeline ensures that only exterior-facing, non-duplicated faces contribute to the final point cloud, minimizing visual artifacts.
- The entire process is automated via a publicly available script hosted on GitHub for reproducibility and reuse in research.
Experimental results
Research questions
- RQ1How can internal and duplicated faces in ShapeNet meshes be automatically detected and removed to prevent color corruption in sampled point clouds?
- RQ2What is the impact of face duplication with differing colors on the visual quality of point clouds generated via direct sampling?
- RQ3Can a preprocessing pipeline that preserves mesh topology while removing conflicting faces produce more accurate and visually consistent point clouds for learning-based compression?
- RQ4To what extent does the proposed method improve color fidelity compared to direct sampling using standard libraries?
Key findings
- The proposed method successfully eliminates visual noise and color artifacts in point clouds sampled from ShapeNet meshes by removing internal and duplicated faces with conflicting colors.
- The use of Meshlab’s ambient occlusion plugin enables reliable identification of exterior-facing faces, even in complex mesh structures.
- Point clouds generated using the proposed pipeline exhibit significantly improved visual consistency and color accuracy compared to direct sampling methods.
- The final output is a quantized, uniform grid point cloud with averaged colors at overlapping positions, suitable for training deep learning-based compression models.
- The method achieves high-fidelity color and geometry representation without altering the original mesh structure beyond removing non-visible, conflicting faces.
- The open-source script enables reproducible and scalable preprocessing of ShapeNet datasets for point cloud compression research.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.