| |
- genysis.genysis.conformalLattice
- genysis.genysis.surfaceLattice
- genysis.genysis.volumeLattice
- genysis.meshRepair_v2.meshRepair_v2
class conformalLattice |
|
This object of for lattices that conform their shape to volumes. |
|
Methods defined here:
- __init__(self)
- Initialize
- addCurveAttractor(self, component, curve, range)
- #add curve attractor. For example: (component="unit_1.obj",curve=[[2.8,8,2.7],[-3.3,8,2.7],[-3.3,14,6]],range=2)
- addPlaneAttractor(self, component, plane, range)
- #add plane attractor. For example:(component="cell_2.obj",plane=[0,1,0,-5],range=10)
- addPointAttractor(self, component, point, range)
- #add point attractor. For example:(component="cell_2.obj",point=[2.8,8,2.7],range=5)
- designGrid(self, token, displayInLine=False, width=800, height=600)
- genGrid(self, token)
- The conformal grid function generates a grid structure inside a given mesh input. The U,V,W are variables for the number of the grid cells.
U: Input the number of grid cells in u direction.
V: Input number of grid cells in v direction.
W: Input number of grid cells in w direction.
Surface: Name of the uploaded .json file of surface grid representations.
Filename: Name of the resultant file for the lattice unit.
- populateLattice(self, token)
- The Populate modulus function populates a given component into a conformal grid structure. It fill the boxes of the conformal grid into the component defined in the input.
Component: Is the uploaded .Obj component to be arrayed.
Boxes: Is the name of uploaded box scaffold json name.
File Name: Name of the resultant file for the surface lattice.
- setComponent(self, component)
- #(string) Component: Is the uploaded .Obj component to be arrayed.
- setEPSILON(self, EPSILON)
- setGridOutput(self, gridOutput)
- #(string) Name of the .json file for export.
- setOutput(self, output)
- #(string) Name of lattice file for export.
- setSurfaces(self, surfaces)
- #(string) Name of the uploaded .json file of surface grid representations.
- setUVW(self, u, v, w)
- U: Input the number of grid cells in u direction.
V: Input number of grid cells in v direction.
W: Input number of grid cells in w direction.
- setUnitize(self, unitize)
- #(boolean) The input of true or false,defines whether to redivide the surface in unitized way.
|
class meshRepair_v2 |
|
Second generation of mesh repair functionality. This will eventually phase out the original "v1" mesh repair operations. |
|
Methods defined here:
- __init__(self, token)
- Initialize
- auto_repair(self)
- Will evaluate and repair mesh using our own algorithm.
- delete_degenerated_faces(self)
- This function will remove degenerate traingels. A degenerate triangle is the "triangle" formed by three collinear points. It doesn't look like a triangle, it looks like a line segment.
- detect_edges(self, return_index=False)
- Detect naked and nonManifold edges.
- detect_overlap_faces(self)
- Detect and fix overlaping mesh faces.
- detect_separate_shells(self)
- Detect if a mesh is composed of multiple shells. You will need to repair this issue using the mesh split function or the union shells.
- fill_holes(self, iteration=1)
- Fills holes in the mesh.
- filter_triangles(self, naked, nonManifold)
- Fix nonManifold and naked edges.
- round_up_vertices(self, digits)
- Merge vertices within a specific tolerance. The digits field represents the number of decimal places that will be merged.
For example, if you have two vertices (1.21 , 2.25, 3.32) and (1.24 , 2.26, 3.38) if you set digits to 1 both vertices will be at (1.2 , 2.2, 3.3)
- setInput(self, _input)
- setOutput(self, output)
- unify_mesh_normals(self)
- Set all normals to face the same direction.
- union_shells(self)
- Merge multiple shells into one unified mesh.
|
class surfaceLattice |
|
This class is for lattice that form their shapes to surfaces |
|
Methods defined here:
- __init__(self)
- Initialize
- addCurveAttractor(self, component, curve, range)
- #add curve attractor. For example: (component="unit_1.obj",curve=[[2.8,8,2.7],[-3.3,8,2.7],[-3.3,14,6]],range=2)
- addPlaneAttractor(self, component, plane, range)
- #add plane attractor. For example:(component="cell_2.obj",plane=[0,1,0,-5],range=10)
- addPointAttractor(self, component, point, range)
- #add point attractor. For example:(component="cell_2.obj",point=[2.8,8,2.7],range=5)
- run(self, token)
- once all the variables are set you will run this function to generate the lattice.
- setAutoScale(self, autoScale)
- setBin(self, bin)
- #(float) Set the bin value.
- setCellHeight(self, cellHeight)
- #(float) If you do not define a top surface you will need to define a constant height to offset the lattice units.
- setComponent(self, component)
- #(string) This is the primary component with out attractors.
- setEPSILON(self, EPSILON)
- #(float) Epsilon is used to determin tolerances that define when two lattice cells are considered touching.
- setOutput(self, output)
- #(string) this is the name of the file that the function will output after it is computed.
- setSurface(self, base)
- #(string) Define the base surface to populat lattices on. This will be a mesh with all 4 sided faces.
- setTopSurface(self, ceil)
- #(string) Define the second surface. Lattice units can be populated between two surfaces of differnt shape with the same topology.
|
class volumeLattice |
|
This is for lattices that conform to volumes but do not change the shape of the lattice units. |
|
Methods defined here:
- __init__(self)
- addCurveAttractor(self, component, curve, range)
- #add curve attractor. For example: (component="unit_1.obj",curve=[[2.8,8,2.7],[-3.3,8,2.7],[-3.3,14,6]],range=2)
- addPlaneAttractor(self, component, plane, range)
- #add plane attractor. For example:(component="cell_2.obj",plane=[0,1,0,-5],range=10)
- addPointAttractor(self, component, point, range)
- #add point attractor. For example:(component="cell_2.obj",point=[2.8,8,2.7],range=5)
- run(self, token)
- once all the variables are set you will run this function to generate the lattice.
- runStochastic(self, token)
- once all the variables are set you will run this function to generate a stochastic lattice.
- setComponent(self, component)
- #(string) Set the file name for the component to be populated to lattice structure
- setComponentSize(self, cellHeight)
- #(float) This is the size of the lattice grid. For one unit.
- setOutput(self, output)
- #(string) Set the file name for the exported lattice structure
- setPoreSize(self, pore)
- #(float) For stochastic lattices only. This will be the miniumum pore size for the stochastic lasttice.
- setVolume(self, volume)
- #(String) set the volume you want to fill with the lattice
| |