Documentation
¶
Index ¶
Constants ¶
View Source
const Namespace = "http://schemas.microsoft.com/3dmanufacturing/beamlattice/2017/02"
Namespace is the canonical name of this extension.
Variables ¶
View Source
var ( ErrLatticeObjType = errors.New("MUST only be added to a mesh object of type model or solidsupport") ErrLatticeClippedNoMesh = errors.New("if clipping mode is not equal to none, a clippingmesh resource MUST be specified") ErrLatticeInvalidMesh = errors.New("the clippingmesh and representationmesh MUST be a mesh object of type model and MUST NOT contain a beamlattice") ErrLatticeSameVertex = errors.New("a beam MUST consist of two distinct vertex indices") ErrLatticeBeamR2 = errors.New("r2 MUST not be defined, if r1 is not defined") )
Functions ¶
This section is empty.
Types ¶
type Beam ¶
type Beam struct { Indices [2]uint32 // Indices of the two nodes that defines the beam. Radius [2]float32 // Radius of both ends of the beam. CapMode [2]CapMode // Capping mode. }
Beam defines a single beam.
type BeamLattice ¶
type BeamLattice struct { ClipMode ClipMode ClippingMeshID uint32 RepresentationMeshID uint32 Beams []Beam BeamSets []BeamSet MinLength, Radius float32 CapMode CapMode }
BeamLattice defines the Model Mesh BeamLattice Attributes class and is part of the BeamLattice extension to 3MF.
func GetBeamLattice ¶
func GetBeamLattice(mesh *go3mf.Mesh) *BeamLattice
func (*BeamLattice) Marshal3MF ¶
func (m *BeamLattice) Marshal3MF(x spec.Encoder) error
Marshal3MF encodes the resource.
type Spec ¶
type Spec struct{}
func (Spec) CreateElementDecoder ¶
func (Spec) CreateElementDecoder(parent interface{}, name string) spec.ElementDecoder
Click to show internal directories.
Click to hide internal directories.