Readers, writers, converters
GSplines.set_boundary!
— FunctionThis function modifies the half edge data structure of a mesh re-defining some edges to be boundaries. It is done giving in input a matrix of indices identifying the end points of the edges (one edge per row) to be set as boundaries.
Example
using GSplines, SemiAlgebraicTypes
hm = hmesh(offdata("cube.off"))
set_boundary!(hm, [1 2; 3 4])
Here is an example of how to set an edge as boundary and visualize it with 'Axl':
using GSplines, SemiAlgebraicTypes, Axl
hm = hmesh(offdata("cube.off")) # read the mesh and convert it in half edge structure
set_boundary!(hm, [1 2]) # define the edge with indicized vertices [1 15] as boundary
s1 = g1surface(hm) # create the G1 surface on the modifies half mesh
@axlview s1 # view the surface using Axl
GSplines.bspline
— FunctionExtract the bspline representation of face f
Extract the bspline representations of the faces as a vector of bspline functions
GSplines.offread
— FunctionRead an off file and ouput a mesh.
offread("file.off")
GSplines.offdata
— FunctionRead the off data in the 'file' of the data repository.
m = offdata("cube.off")
GSplines.axldata
— FunctionRead the axl data in the 'file' of the data repository.
m = axldata("y1m1.axl")