MCPcopy Index your code
hub / github.com/fogleman/ln / parseIndex

Function parseIndex

ln/obj.go:10–17  ·  view source on GitHub ↗
(value string, length int)

Source from the content-addressed store, hash-verified

8)
9
10func parseIndex(value string, length int) int {
11 parsed, _ := strconv.ParseInt(value, 0, 0)
12 n := int(parsed)
13 if n < 0 {
14 n += length
15 }
16 return n
17}
18
19func LoadOBJ(path string) (*Mesh, error) {
20 file, err := os.Open(path)

Callers 1

LoadOBJFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected