Documentation ¶
Overview ¶
Package ms is a generated protocol buffer package.
It is generated from these files:
ms.proto
It has these top-level messages:
VoxelRegion MapIn Triangle Vertex
Index ¶
- type MapIn
- type Triangle
- type Vertex
- type VoxelRegion
- func (*VoxelRegion) Descriptor() ([]byte, []int)
- func (m *VoxelRegion) GetNx() int64
- func (m *VoxelRegion) GetNy() int64
- func (m *VoxelRegion) GetNz() int64
- func (m *VoxelRegion) GetScale() float64
- func (m *VoxelRegion) GetTx() float64
- func (m *VoxelRegion) GetTy() float64
- func (m *VoxelRegion) GetTz() float64
- func (*VoxelRegion) ProtoMessage()
- func (m *VoxelRegion) Reset()
- func (m *VoxelRegion) String() string
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) GetTriangles ¶
func (*MapIn) GetVoxelRegion ¶
func (m *MapIn) GetVoxelRegion() *VoxelRegion
func (*MapIn) ProtoMessage ¶
func (*MapIn) ProtoMessage()
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) ProtoMessage ¶
func (*Triangle) ProtoMessage()
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) ProtoMessage ¶
func (*Vertex) ProtoMessage()
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
Click to show internal directories.
Click to hide internal directories.