Documentation ¶
Index ¶
- type Edge
- type Element
- type ExtrudeFace
- type Mesh
- func (mesh *Mesh) ConvertToSI(unit utils.Unit)
- func (facemesh *Mesh) ExtrudeFaceAndCreateMesh(normExtrude *Vertex, ExtrudLen float64) (*Mesh, error)
- func (mesh *Mesh) GetBounds() (low [3]float64, high [3]float64)
- func (mesh *Mesh) GetCenter() Vertex
- func (mesh *Mesh) GetImage() (image.Image, error)
- func (mesh *Mesh) GetLength() float64
- func (mesh *Mesh) GetSubsetMesh(ints []int) (*Mesh, error)
- func (mesh *Mesh) SaveAsPng(file string) error
- func (mesh *Mesh) WriteMesh(w io.Writer) error
- func (mesh *Mesh) WriteMeshAscii(w io.Writer) error
- func (mesh *Mesh) WriteMeshBinary(w io.Writer) error
- func (mesh *Mesh) WriteUintahPts(w io.Writer) error
- func (mesh *Mesh) WriteUintahTri(w io.Writer) error
- type RotationMatrix
- type TriLine
- type Vertex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edge ¶
type Edge struct {
// contains filtered or unexported fields
}
Get the corresponding edge for the Nodes
type Element ¶
type Element struct {
Nodes [3]Vertex
}
Store the element it is a vertex
type ExtrudeFace ¶
type ExtrudeFace struct {
// contains filtered or unexported fields
}
type Mesh ¶
type Mesh struct { //Store a list of Elements Elements []Element //Store the name of the info Name string }
Hold everything in the mesh
func ExtrudeTriAndCreateMesh ¶
func (*Mesh) ConvertToSI ¶
func (*Mesh) ExtrudeFaceAndCreateMesh ¶
func (*Mesh) GetSubsetMesh ¶
Returns a subset of elements
func (*Mesh) WriteMeshAscii ¶
Write the mesh out to the writer stream
func (*Mesh) WriteMeshBinary ¶
Write the mesh out to the writer stream as a binary file
func (*Mesh) WriteUintahPts ¶
GEt the stl as a pts file
type RotationMatrix ¶
type RotationMatrix struct {
// contains filtered or unexported fields
}
func NewRotationMatrix ¶
func NewRotationMatrix(start Vertex, end Vertex, theta float64) *RotationMatrix
Create the rotation matrix
Click to show internal directories.
Click to hide internal directories.