<commit_before>package go3dm

type Mesh struct {
    Vertices []float32
    Normals []float32
    TextureCoords []float32
    Objects []*MeshObject
}

func (m *Mesh) VTN() ([]float32, []float32, []float32) {
    return m.Vertices, m.TextureCoords, m.Normals
}

type MeshObject struct {
    Name string
    Offset int
    Count int
    MaterialRef string
    Smooth bool
}

type Material struct {
    Name string
    Ka []float32
    Kd []float32
    Ks []float32
    Ns float32
    Tr float32<commit_msg>Added convenience functions to MeshObject type.<commit_after>package go3dm

type Mesh struct {
    Vertices []float32
    Normals []float32
    TextureCoords []float32
    Objects []*MeshObject
}

func (m *Mesh) VTN() ([]float32, []float32, []float32) {
    return m.Vertices, m.TextureCoords, m.Normals
}

type MeshObject struct {
    Name string
    Offset int
    Count int
    MaterialRef string
    Smooth bool
}

func (mo *MeshObject) VertexOffset() int32 {
    return int32(mo.Offset / 3)
}

func (mo *MeshObject) VertexCount() int32 {
    return int32(mo.Count / 3)
}


type Material struct {
    Name string
    Ka []float32
    Kd []float32
    Ks []float32
    Ns float32
    Tr float32
{'fraction_non_alphanumeric': 0.09408825978351373, 'fraction_numerical': 0.0466278101582015, 'mean_word_length': 2.980132450331126, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5667306', 'n_tokens_mistral': 439, 'n_tokens_neox': 399, 'n_words': 124}