Option - Name delete / copy ... replace?

in Rhinocommon / scripting we have “replace” as an strategy to modify objects.

many commands in rhino have copy or delete option.
sometimes this is not very descriptive.

example:
pick a surface of a brep/polysurface.
_extrudeSrf with delete option will extend, pushpull-like the brep.

there was another workflow in one of my last teaching sessions… but i can only remember that i wanted to start this topic / discussion.

so let s collect sample workflows and commands where copy / delete fails as descriptive option name.

cheers - tom

I did a bit of code search and this is the list of commands that have a delete option:

ExtrudeSrf, Revolve, OffsetSrf, Rebuild/RebuildSrf, FitSrf, FitCrv, OffsetSubD, Boolean{Union,Intersection,Difference,Split}, CurveBoolean (None/Used/All list), MergeCrv, Join, Project, Pull, Cap, Convert/ConvertToBeziers/ConvertToSingleSpans, MakePeriodic, FilletCorners, FilletEdge/ChamferEdge/BlendEdge, MeshBoolean, CreateSolid, ToNURBS, ToExtrusion, ExtractLineTypeSegments, RebuildCrvNonUniform

MergeSrf, RefitTrim/FitCurveToSurface/SplitRefitSurface, OffsetMesh, ExplodeText, JoinText, MeshBoolean{Union,Difference,Intersection,Split}, MeshFromLines, ShrinkWrap (DeleteInput+HideInput),

transformations (matrix transformations) have
move scale orient mirror
have copy = yes/no

many other deformations
project (to a curved surface), pull
have
delete input = yes / no

projectToCplane is a matrix transformation but has delete yes/no as a forced step, not as a repeated (optional modified) option.

delete / copy both answer the same question
“shall i replace the existing geometry with the new position/transformation/shape ?”

on the first view it looks like a paper-cut, that makes learning more complicated - the more i think about i feel like there is a consistent concept missing.

… i will come up with more examples while working…stumble across…
thanks for the list.
best - tom

If the command makes a 1:1 identical copy, copy seems the right keyword. When the input is deformed or converted to something else, delete seems a better keyword.

copy = no change / delete = new shape…
yep - maybe this is the correct way to look at it

… scaleNU will change shape but has copy option
:thinking:

where i really hassle:
_extractSrf example above:
delete = yes = modify
delete = no = new geometry

(and i will bring more examples where this naming / wording is not hitting the exact behaviour…- but i also do not claim to have a great alternative.
maybe: CreateNew (copy = yes, delete = no)
(which will require some polish for _extractSrf)

seems like a minor compromise to me. Scale, even non uniform, will keep the shape in tact, and can be reverse transformed into the original. The structure of the object doesn’t change

which is not possible for ProjectToCplane ;-(

that one has a delete option, not a copy option