Luce packages
LuceLuce BaseLuciaOS

dymokomi/luced-3d

Source of release 0.11.7

0.11.7 / src / tool_remove_knot.luc

## Remove Knot (Alias's): the inner knot nearest a parameter taken out, as
## many times as the tolerance allows (luce-cad's CadNurbs).
## An Edit CAD step on the surface of the first CV or face picked
## (edit_cad_nets.luc).
from tool_record import Tool, ToolEntry, Pick
from edit_types import point_level, face_level, patch_level
import pick_kinds
import edit_cad_nets
import cad_cook

pub func entry() -> ToolEntry:
    return ToolEntry(edit_cad_nets.remove_verb, edit_cad_nets.remove_verb, "remove-knot", "Modify", [], [cad_cook.edit_kind], made)

func made() -> Tool:
    return entry().tool("Modify", "Surface Structure", "Take a knot out of a surface, within a tolerance", [Pick("Surface", [point_level, face_level, patch_level], kind = pick_kinds.components, slot = pick_kinds.nowhere)],
                        edit_cad_nets.remove_rows(), edit_cad_nets.cook, numbers = [0.0, 0.5, 1.0, 0.01])