Documentation ¶
Overview ¶
Package stldice is a generated protocol buffer package.
It is generated from these files:
stldice.proto
It has these top-level messages:
VoxelRegion AddSTLMeshRequest AddSTLMeshReply SubSTLMeshRequest SubSTLMeshReply GetSTLMeshRequest GetSTLMeshReply
Index ¶
- func RegisterSTLDiceServer(s *grpc.Server, srv STLDiceServer)
- type AddSTLMeshReply
- type AddSTLMeshRequest
- type GetSTLMeshReply
- type GetSTLMeshRequest
- type STLDiceClient
- type STLDiceServer
- type SubSTLMeshReply
- type SubSTLMeshRequest
- type VoxelRegion
- func (*VoxelRegion) Descriptor() ([]byte, []int)
- func (m *VoxelRegion) GetLlx() float64
- func (m *VoxelRegion) GetLly() float64
- func (m *VoxelRegion) GetLlz() float64
- func (m *VoxelRegion) GetNx() int64
- func (m *VoxelRegion) GetNy() int64
- func (m *VoxelRegion) GetNz() int64
- func (m *VoxelRegion) GetUrx() float64
- func (m *VoxelRegion) GetUry() float64
- func (m *VoxelRegion) GetUrz() float64
- func (*VoxelRegion) ProtoMessage()
- func (m *VoxelRegion) Reset()
- func (m *VoxelRegion) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSTLDiceServer ¶
func RegisterSTLDiceServer(s *grpc.Server, srv STLDiceServer)
Types ¶
type AddSTLMeshReply ¶
type AddSTLMeshReply struct { }
func (*AddSTLMeshReply) Descriptor ¶
func (*AddSTLMeshReply) Descriptor() ([]byte, []int)
func (*AddSTLMeshReply) ProtoMessage ¶
func (*AddSTLMeshReply) ProtoMessage()
func (*AddSTLMeshReply) Reset ¶
func (m *AddSTLMeshReply) Reset()
func (*AddSTLMeshReply) String ¶
func (m *AddSTLMeshReply) String() string
type AddSTLMeshRequest ¶
type AddSTLMeshRequest struct { VoxelRegion *VoxelRegion `protobuf:"bytes,1,opt,name=voxel_region,json=voxelRegion" json:"voxel_region,omitempty"` // STL file to voxelize and add to the voxel model. StlFile []byte `protobuf:"bytes,2,opt,name=stl_file,json=stlFile,proto3" json:"stl_file,omitempty"` }
Add an STL mesh to the voxels (possibly a subregion on the slave).
func (*AddSTLMeshRequest) Descriptor ¶
func (*AddSTLMeshRequest) Descriptor() ([]byte, []int)
func (*AddSTLMeshRequest) GetStlFile ¶
func (m *AddSTLMeshRequest) GetStlFile() []byte
func (*AddSTLMeshRequest) GetVoxelRegion ¶
func (m *AddSTLMeshRequest) GetVoxelRegion() *VoxelRegion
func (*AddSTLMeshRequest) ProtoMessage ¶
func (*AddSTLMeshRequest) ProtoMessage()
func (*AddSTLMeshRequest) Reset ¶
func (m *AddSTLMeshRequest) Reset()
func (*AddSTLMeshRequest) String ¶
func (m *AddSTLMeshRequest) String() string
type GetSTLMeshReply ¶
type GetSTLMeshReply struct { // Resulting STL mesh from the voxel model subregion. StlFile []byte `protobuf:"bytes,1,opt,name=stl_file,json=stlFile,proto3" json:"stl_file,omitempty"` }
func (*GetSTLMeshReply) Descriptor ¶
func (*GetSTLMeshReply) Descriptor() ([]byte, []int)
func (*GetSTLMeshReply) GetStlFile ¶
func (m *GetSTLMeshReply) GetStlFile() []byte
func (*GetSTLMeshReply) ProtoMessage ¶
func (*GetSTLMeshReply) ProtoMessage()
func (*GetSTLMeshReply) Reset ¶
func (m *GetSTLMeshReply) Reset()
func (*GetSTLMeshReply) String ¶
func (m *GetSTLMeshReply) String() string
type GetSTLMeshRequest ¶
type GetSTLMeshRequest struct {
VoxelRegion *VoxelRegion `protobuf:"bytes,1,opt,name=voxel_region,json=voxelRegion" json:"voxel_region,omitempty"`
}
Get back the model voxels as STL (possibly a subregion on the slave). This also resets the server by clearing out the model.
func (*GetSTLMeshRequest) Descriptor ¶
func (*GetSTLMeshRequest) Descriptor() ([]byte, []int)
func (*GetSTLMeshRequest) GetVoxelRegion ¶
func (m *GetSTLMeshRequest) GetVoxelRegion() *VoxelRegion
func (*GetSTLMeshRequest) ProtoMessage ¶
func (*GetSTLMeshRequest) ProtoMessage()
func (*GetSTLMeshRequest) Reset ¶
func (m *GetSTLMeshRequest) Reset()
func (*GetSTLMeshRequest) String ¶
func (m *GetSTLMeshRequest) String() string
type STLDiceClient ¶
type STLDiceClient interface { // Add an STL mesh to the voxels (possibly a subregion on the slave). AddSTLMesh(ctx context.Context, in *AddSTLMeshRequest, opts ...grpc.CallOption) (*AddSTLMeshReply, error) // Subtract an STL mesh from the voxels (possibly a subregion on the slave). SubSTLMesh(ctx context.Context, in *SubSTLMeshRequest, opts ...grpc.CallOption) (*SubSTLMeshReply, error) // Get back the model voxels as STL (possibly a subregion on the slave). // This also resets the server by clearing out the model. GetSTLMesh(ctx context.Context, in *GetSTLMeshRequest, opts ...grpc.CallOption) (*GetSTLMeshReply, error) }
func NewSTLDiceClient ¶
func NewSTLDiceClient(cc *grpc.ClientConn) STLDiceClient
type STLDiceServer ¶
type STLDiceServer interface { // Add an STL mesh to the voxels (possibly a subregion on the slave). AddSTLMesh(context.Context, *AddSTLMeshRequest) (*AddSTLMeshReply, error) // Subtract an STL mesh from the voxels (possibly a subregion on the slave). SubSTLMesh(context.Context, *SubSTLMeshRequest) (*SubSTLMeshReply, error) // Get back the model voxels as STL (possibly a subregion on the slave). // This also resets the server by clearing out the model. GetSTLMesh(context.Context, *GetSTLMeshRequest) (*GetSTLMeshReply, error) }
type SubSTLMeshReply ¶
type SubSTLMeshReply struct { }
func (*SubSTLMeshReply) Descriptor ¶
func (*SubSTLMeshReply) Descriptor() ([]byte, []int)
func (*SubSTLMeshReply) ProtoMessage ¶
func (*SubSTLMeshReply) ProtoMessage()
func (*SubSTLMeshReply) Reset ¶
func (m *SubSTLMeshReply) Reset()
func (*SubSTLMeshReply) String ¶
func (m *SubSTLMeshReply) String() string
type SubSTLMeshRequest ¶
type SubSTLMeshRequest struct { VoxelRegion *VoxelRegion `protobuf:"bytes,1,opt,name=voxel_region,json=voxelRegion" json:"voxel_region,omitempty"` // STL file to voxelize and subtract from the voxel model. StlFile []byte `protobuf:"bytes,2,opt,name=stl_file,json=stlFile,proto3" json:"stl_file,omitempty"` }
Subtract an STL mesh from the voxels (possibly a subregion on the slave).
func (*SubSTLMeshRequest) Descriptor ¶
func (*SubSTLMeshRequest) Descriptor() ([]byte, []int)
func (*SubSTLMeshRequest) GetStlFile ¶
func (m *SubSTLMeshRequest) GetStlFile() []byte
func (*SubSTLMeshRequest) GetVoxelRegion ¶
func (m *SubSTLMeshRequest) GetVoxelRegion() *VoxelRegion
func (*SubSTLMeshRequest) ProtoMessage ¶
func (*SubSTLMeshRequest) ProtoMessage()
func (*SubSTLMeshRequest) Reset ¶
func (m *SubSTLMeshRequest) Reset()
func (*SubSTLMeshRequest) String ¶
func (m *SubSTLMeshRequest) String() string
type VoxelRegion ¶
type VoxelRegion struct { // Minimum Bounding Box (MBB) of region to be voxelized (in millimeters). Llx float64 `protobuf:"fixed64,1,opt,name=llx" json:"llx,omitempty"` Lly float64 `protobuf:"fixed64,2,opt,name=lly" json:"lly,omitempty"` Llz float64 `protobuf:"fixed64,3,opt,name=llz" json:"llz,omitempty"` Urx float64 `protobuf:"fixed64,4,opt,name=urx" json:"urx,omitempty"` Ury float64 `protobuf:"fixed64,5,opt,name=ury" json:"ury,omitempty"` Urz float64 `protobuf:"fixed64,6,opt,name=urz" json:"urz,omitempty"` // Number of voxels to process in this subregion. Note that voxels are uniform // dimensions on all three axes. Nx int64 `protobuf:"varint,7,opt,name=nx" json:"nx,omitempty"` Ny int64 `protobuf:"varint,8,opt,name=ny" json:"ny,omitempty"` Nz int64 `protobuf:"varint,9,opt,name=nz" json:"nz,omitempty"` }
func (*VoxelRegion) Descriptor ¶
func (*VoxelRegion) Descriptor() ([]byte, []int)
func (*VoxelRegion) GetLlx ¶
func (m *VoxelRegion) GetLlx() float64
func (*VoxelRegion) GetLly ¶
func (m *VoxelRegion) GetLly() float64
func (*VoxelRegion) GetLlz ¶
func (m *VoxelRegion) GetLlz() float64
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) GetUrx ¶
func (m *VoxelRegion) GetUrx() float64
func (*VoxelRegion) GetUry ¶
func (m *VoxelRegion) GetUry() float64
func (*VoxelRegion) GetUrz ¶
func (m *VoxelRegion) GetUrz() 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.