factory

package
v0.0.0-...-c352d6b Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShapeCuboid             = "cuboid"
	ShapeHypercuboid        = "hypercuboid"
	ShapeSphere             = "sphere"
	ShapeHypersphere        = "hypersphere"
	ShapeCircle             = "circle"
	ShapeCylinder           = "cylinder"
	ShapeFiniteCylinder     = "finite cylinder"
	ShapeTriangle           = "triangle"
	ShapePlane              = "plane"
	ShapeQuadraticEquation  = "quadratic equation"
	ShapeCubicEquation      = "cubic equation"
	ShapeFourOrderEquation  = "four-order equation"
	ShapeImplicitEquation   = "implicit equation"
	ShapeParametricEquation = "parametric equation"
	ShapeParametricCurve    = "parametric curve"
	ShapePolynomialSurface  = "polynomial surface"
	ShapeKleinBottle        = "klein_bottle"
	ShapeSTL                = "stl"
)

Variables

This section is empty.

Functions

func BuildCameraFromScript

func BuildCameraFromScript(def parser.CameraScript) (modelcamera.RayCamera, error)

func LoadSceneFromScript

func LoadSceneFromScript(script *parser.Script, scene *model.Scene) error

func ParseCameras

func ParseCameras(script *parser.Script) (map[string]modelcamera.RayCamera, error)

func ParseMaterials

func ParseMaterials(script *parser.Script) (map[string]*material.Material, error)

func ParseMediaRegistry

func ParseMediaRegistry(script *parser.Script) (*medium.Registry, error)

func ParseShape

func ParseShape(objDef map[string]interface{}) ([]shape.Shape, error)

func ParseShapeForSTL

func ParseShapeForSTL(objDef map[string]interface{}) ([]shape.Shape, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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