PointCloudLibrary / PointCloudLibrary/pcl
OBJ file loading misses color handling
Open
Nobody has claimed this yet.
needs: pr merge
- Dominant language
- C++
- Stars
- 11.1k
- Forks
- 4.7k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 6
Description
The OBJ file format supports color; example file:
####
#
# OBJ File Generated by Meshlab
#
####
# Object color.obj
#
# Vertices: 6
# Faces: 8
#
####
vn 1.000000 0.000000 0.000000
v 1.000000 0.000000 0.000000 0.678431 0.509804 0.600000
vn 0.000000 1.000000 0.000000
v 0.000000 1.000000 0.000000 0.905882 0.149020 0.654902
vn 0.000000 0.000000 1.000000
v 0.000000 0.000000 1.000000 1.000000 0.019608 0.792157
vn -1.000000 0.000000 0.000000
v -1.000000 0.000000 0.000000 0.188235 0.117647 0.737255
vn 0.000000 -1.000000 0.000000
v 0.000000 -1.000000 0.000000 0.298039 0.243137 0.776471
vn 0.000000 0.000000 -1.000000
v 0.000000 0.000000 -1.000000 0.019608 0.517647 0.439216
#6 vertices, 0 vertices normals
f 1//1 2//2 3//3
f 1//1 3//3 5//5
f 1//1 5//5 6//6
f 1//1 6//6 2//2
f 4//4 2//2 6//6
f 4//4 6//6 5//5
f 4//4 5//5 3//3
f 4//4 3//3 2//2
#8 faces, 0 coords texture
# End of File
loadOBJFile and loadPolygonFileOBJ don't handle color information.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the implementations of loadOBJFile and loadPolygonFileOBJ and inspect how vertex records from the supplied OBJ example are parsed. Trace the loaded point data to determine where vertex colors should be retained, then verify that loading the example preserves its six vertex colors and that existing OBJ loading behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-vision
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100