stl

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Package stl provides a streaming binary STL file writer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a streaming binary STL file writer client.

func New

func New(filename string) (*Client, error)

New creates a new streaming binary STL file writer.

func (*Client) Close

func (c *Client) Close() error

Close finalizes the STL file.

func (*Client) Write

func (c *Client) Write(t *Tri) error

Write writes a triangle to the STL file.

type Tri

type Tri struct {
	// Normal plus three vertex triplets: [3]float{x,y,z}
	N, V1, V2, V3 [3]float32
	// contains filtered or unexported fields
}

Tri represents an STL triangle.

Jump to

Keyboard shortcuts

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