Meshing
Methods
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
meshes = iota.mesh.load(
filename = 'my_username',
split = True
)
print(meshes)status = iota.mesh.export(
mesh = myMesh,
filename = '/file/to/write/the/mesh/mesh.meta',
format = iota.mesh.export_format.P4S
)
print('mesh is ok: ',status)line = iota.mesh.create_line(
start = iota.Vector3d(0,0,0),
end = iota.Vector3d(1,1,0),
element_size = 0.1,
name = 'my_linear_mesh'
)circle = iota.mesh.create_circle(
centre = iota.Vector3d(0,0,0),
radius = 1.0,
normal = iota.Vector3d(0,0,1),
element_size = 0.1,
name = 'my_circle'
)rectangle = iota.mesh.create_rectangle(
origin = iota.Vector3d(0,0,0),
normal = iota.Vector3d(0,0,1),
length = 1.0,
width = 1.0,
element_size = 0.1,
name = 'my_rectangle'
)cuboid = iota.mesh.create_cuboid(
origin = iota.Vector3d(0,0,0),
up = iota.Vector3d(0,0,1),
length = 1.0,
width = 1.0,
height = 1.0,
element_size = 0.1,
name = 'my_cuboid'
)cylinder = iota.mesh.create_cylinder(
origin = iota.Vector3d(0,0,0),
up = iota.Vector3d(0,0,1),
radius = 1.0,
height = 1.0,
element_size = 0.1,
name = 'my_cylinder'
)