x3d

package
v0.0.0-...-88a5242 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Appearance

type Appearance struct {
	ImageTexture *ImageTexture
}

type Coordinate

type Coordinate struct {
	Point MFVec3f `xml:"point,attr"`
}

type ImageTexture

type ImageTexture struct {
	URL               string `xml:"url,attr"`
	TextureProperties *TextureProperties
}

type IndexedFaceSet

type IndexedFaceSet struct {
	CCW               bool    `xml:"ccw,attr"`
	Convex            bool    `xml:"convex,attr"`
	CreaseAngle       float64 `xml:"creaseAngle,attr"`
	ColorIndex        MFInt32 `xml:"colorIndex,attr"`
	CoordIndex        MFInt32 `xml:"coordIndex,attr"`
	NormalIndex       MFInt32 `xml:"normalIndex,attr"`
	TexCoordIndex     MFInt32 `xml:"texCoordIndex,attr"`
	Coordinate        *Coordinate
	TextureCoordinate *TextureCoordinate
}

type MFInt32

type MFInt32 []int32

func (MFInt32) MarshalXMLAttr

func (v MFInt32) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

type MFVec2f

type MFVec2f [][2]float64

func (MFVec2f) MarshalXMLAttr

func (v MFVec2f) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

type MFVec3f

type MFVec3f [][3]float64

AttrMarshaler

func (MFVec3f) MarshalXMLAttr

func (v MFVec3f) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

type ProfileNames

type ProfileNames string

type Scene

type Scene struct {
	Shape *Shape
}

type Shape

type Shape struct {
	IndexedFaceSet *IndexedFaceSet
	Appearance     *Appearance
}

type TextureCoordinate

type TextureCoordinate struct {
	Point MFVec2f `xml:"point,attr"`
}

type TextureProperties

type TextureProperties struct {
	BoundaryModeS string `xml:"boundaryModeS,attr"`
	BoundaryModeT string `xml:"boundaryModeT,attr"`
}

type X3D

type X3D struct {
	Version X3DVersion   `xml:"version,attr"`
	Profile ProfileNames `xml:"profile,attr"`
	Scene   *Scene
}

type X3DVersion

type X3DVersion float64

Jump to

Keyboard shortcuts

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