mr

package
v4.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mr is a generated protocol buffer package.

It is generated from these files:

mr.proto

It has these top-level messages:

VoxelRegion
MapIn
Triangle
Vertex

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapIn

type MapIn struct {
	VoxelRegion *VoxelRegion `protobuf:"bytes,1,opt,name=voxel_region,json=voxelRegion" json:"voxel_region,omitempty"`
	Base        bool         `protobuf:"varint,2,opt,name=base" json:"base,omitempty"`
	Triangles   []*Triangle  `protobuf:"bytes,3,rep,name=triangles" json:"triangles,omitempty"`
}

MapIn is the information sent to the mapper to voxelize a mesh.

func (*MapIn) Descriptor

func (*MapIn) Descriptor() ([]byte, []int)

func (*MapIn) GetBase

func (m *MapIn) GetBase() bool

func (*MapIn) GetTriangles

func (m *MapIn) GetTriangles() []*Triangle

func (*MapIn) GetVoxelRegion

func (m *MapIn) GetVoxelRegion() *VoxelRegion

func (*MapIn) ProtoMessage

func (*MapIn) ProtoMessage()

func (*MapIn) Reset

func (m *MapIn) Reset()

func (*MapIn) String

func (m *MapIn) String() string

type Triangle

type Triangle struct {
	V1 *Vertex `protobuf:"bytes,1,opt,name=v1" json:"v1,omitempty"`
	V2 *Vertex `protobuf:"bytes,2,opt,name=v2" json:"v2,omitempty"`
	V3 *Vertex `protobuf:"bytes,3,opt,name=v3" json:"v3,omitempty"`
}

Triangle is a 3-vertex triangle in the mesh.

func (*Triangle) Descriptor

func (*Triangle) Descriptor() ([]byte, []int)

func (*Triangle) GetV1

func (m *Triangle) GetV1() *Vertex

func (*Triangle) GetV2

func (m *Triangle) GetV2() *Vertex

func (*Triangle) GetV3

func (m *Triangle) GetV3() *Vertex

func (*Triangle) ProtoMessage

func (*Triangle) ProtoMessage()

func (*Triangle) Reset

func (m *Triangle) Reset()

func (*Triangle) String

func (m *Triangle) String() string

type Vertex

type Vertex struct {
	X float64 `protobuf:"fixed64,1,opt,name=x" json:"x,omitempty"`
	Y float64 `protobuf:"fixed64,2,opt,name=y" json:"y,omitempty"`
	Z float64 `protobuf:"fixed64,3,opt,name=z" json:"z,omitempty"`
}

Vertex is a 3D vertex.

func (*Vertex) Descriptor

func (*Vertex) Descriptor() ([]byte, []int)

func (*Vertex) GetX

func (m *Vertex) GetX() float64

func (*Vertex) GetY

func (m *Vertex) GetY() float64

func (*Vertex) GetZ

func (m *Vertex) GetZ() float64

func (*Vertex) ProtoMessage

func (*Vertex) ProtoMessage()

func (*Vertex) Reset

func (m *Vertex) Reset()

func (*Vertex) String

func (m *Vertex) String() string

type VoxelRegion

type VoxelRegion struct {
	// Number of voxels to process in this subregion. Note that voxels are uniform
	// dimensions on all three axes.
	Nx int64 `protobuf:"varint,1,opt,name=nx" json:"nx,omitempty"`
	Ny int64 `protobuf:"varint,2,opt,name=ny" json:"ny,omitempty"`
	Nz int64 `protobuf:"varint,3,opt,name=nz" json:"nz,omitempty"`
	// Minimum Bounding Box (MBB) of region to be voxelized (in millimeters).
	Tx float64 `protobuf:"fixed64,4,opt,name=tx" json:"tx,omitempty"`
	Ty float64 `protobuf:"fixed64,5,opt,name=ty" json:"ty,omitempty"`
	Tz float64 `protobuf:"fixed64,6,opt,name=tz" json:"tz,omitempty"`
	// Scale representing the width of the largest dimension (in millimeters).
	Scale float64 `protobuf:"fixed64,7,opt,name=scale" json:"scale,omitempty"`
}

func (*VoxelRegion) Descriptor

func (*VoxelRegion) Descriptor() ([]byte, []int)

func (*VoxelRegion) GetNx

func (m *VoxelRegion) GetNx() int64

func (*VoxelRegion) GetNy

func (m *VoxelRegion) GetNy() int64

func (*VoxelRegion) GetNz

func (m *VoxelRegion) GetNz() int64

func (*VoxelRegion) GetScale

func (m *VoxelRegion) GetScale() float64

func (*VoxelRegion) GetTx

func (m *VoxelRegion) GetTx() float64

func (*VoxelRegion) GetTy

func (m *VoxelRegion) GetTy() float64

func (*VoxelRegion) GetTz

func (m *VoxelRegion) GetTz() float64

func (*VoxelRegion) ProtoMessage

func (*VoxelRegion) ProtoMessage()

func (*VoxelRegion) Reset

func (m *VoxelRegion) Reset()

func (*VoxelRegion) String

func (m *VoxelRegion) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL