Skip to content

Commit

Permalink
Add obj_info header parsing (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
vade authored Jul 21, 2024
1 parent 20336eb commit 9e0fae2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PLYIO/Sources/PLYHeader+ascii.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extension PLYHeader {
throw ASCIIDecodeError.headerUnknownKeyword(keywordString)
}
switch keyword {
case .ply, .comment:
case .ply, .comment, .obj_info:
return
case .format:
guard header == nil else {
Expand Down
1 change: 1 addition & 0 deletions PLYIO/Sources/PLYHeader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public struct PLYHeader: Equatable {
case element = "element"
case property = "property"
case endHeader = "end_header"
case obj_info = "obj_info"
}

public enum Format: String, Equatable {
Expand Down

0 comments on commit 9e0fae2

Please sign in to comment.