Example #1
0
def gen_111_invol(hex_radius, hex_height, vox_pitch):
    offset = np.array([0.25, 0.25, 0.25])
    debug, mat_matrix, invol = latticegen.cubic_to_111(hex_radius, hex_height,
                                                       np.array(node_locs),
                                                       np.array(frame_locs),
                                                       offset)
    return invol
Example #2
0
def gen_111(hex_radius, hex_height, vox_pitch):
    offset = np.array([0.25, 0.25, 0.25])
    debug, mat_matrix, invol = latticegen.cubic_to_111(hex_radius, hex_height,
                                                       np.array(node_locs),
                                                       np.array(frame_locs),
                                                       offset)
    nodes, frames, node_frame_map, dims = from_material(mat_matrix, vox_pitch)

    return latticegen.crop_framework(nodes, frames, node_frame_map, invol)
Example #3
0
def gen_111(hex_radius,hex_height,vox_pitch):
	offset = np.array([0.25,0.25,0.25])
	debug,mat_matrix,invol = latticegen.cubic_to_111(hex_radius,hex_height,np.array(node_locs),np.array(frame_locs),offset)
	nodes,frames,node_frame_map,dims = from_material(mat_matrix,vox_pitch)

	return latticegen.crop_framework(nodes,frames,node_frame_map,invol)
Example #4
0
def gen_111_invol(hex_radius,hex_height,vox_pitch):
	offset = np.array([0.25,0.25,0.25])
	debug,mat_matrix,invol = latticegen.cubic_to_111(hex_radius,hex_height,np.array(node_locs),np.array(frame_locs),offset)
	return invol