rw

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

README

Gosl. gm/rw. Mesh generation: read/write

go.dev reference

More information is available in the documentation of this package.

This package aims to implement routines to write and save CAD files.

Documentation

Overview

Package rw implements reader and writers for geometry files such as the STEP file format

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BsplineCurveWithKnots

type BsplineCurveWithKnots struct {
	Name               string
	Degree             int
	ControlPointsList  []string
	CurveForm          string
	ClosedCurve        bool
	SelfIntersect      bool
	KnotMultiplicities []int
	Knots              []float64
	KnotSpec           string
}

BsplineCurveWithKnots holds data representing B-splines

type CartesianPoint

type CartesianPoint struct {
	Name        string
	Coordinates []float64
}

CartesianPoint holds Cartesian point data

type StepFile

type StepFile struct {
	Points        map[string]*CartesianPoint
	BsplineCurves map[string]*BsplineCurveWithKnots
	SurfaceCurves map[string]*SurfaceCurve
}

StepFile holds information to read/write STEP files

func (*StepFile) ParseData

func (o *StepFile) ParseData(dat string)

ParseData parses data section of Step file

func (*StepFile) ParseDataFile

func (o *StepFile) ParseDataFile(filename string)

ParseDataFile parses data section from file

type SurfaceCurve

type SurfaceCurve struct {
	Name                 string
	Curve3d              string
	AssociatedGeometry   []string
	MasterRepresentation string
}

SurfaceCurve represents a surface curve

Jump to

Keyboard shortcuts

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