Versions in this module Expand all Collapse all v0 v0.1.0 Oct 4, 2024 v0.0.1 Oct 3, 2024 Changes in this version + const Namespace + var DefaultExtension = go3mf.Extension + var ErrLatticeBeamR2 = errors.New("r2 MUST not be defined, if r1 is not defined") + var ErrLatticeClippedNoMesh = errors.New(...) + var ErrLatticeInvalidMesh = errors.New(...) + var ErrLatticeObjType = errors.New("MUST only be added to a mesh object of type model or solidsupport") + var ErrLatticeSameVertex = errors.New("a beam MUST consist of two distinct vertex indices") + type Beam struct + CapMode [2]CapMode + Indices [2]uint32 + Radius [2]float32 + type BeamLattice struct + BeamSets []BeamSet + Beams []Beam + CapMode CapMode + ClipMode ClipMode + ClippingMeshID uint32 + MinLength float32 + Radius float32 + RepresentationMeshID uint32 + func GetBeamLattice(mesh *go3mf.Mesh) *BeamLattice + func (m *BeamLattice) Marshal3MF(x spec.Encoder) error + type BeamSet struct + Identifier string + Name string + Refs []uint32 + type CapMode uint8 + const CapModeButt + const CapModeHemisphere + const CapModeSphere + func (b CapMode) String() string + type ClipMode uint8 + const ClipInside + const ClipNone + const ClipOutside + func (c ClipMode) String() string + type Spec struct + func (Spec) CreateElementDecoder(parent interface{}, name string) spec.ElementDecoder + func (Spec) DecodeAttribute(interface{}, spec.Attr) error + func (Spec) Validate(m interface{}, path string, obj interface{}) error