kcl-std → functions → clone

cloneFunction in std

Clone a sketch or solid.

This works essentially like a copy-paste operation. It creates a perfect replica at that point in time that you can manipulate individually afterwards.

This doesn't really have much utility unless you need the equivalent of a double instance pattern with zero transformations.

Really only use this function if YOU ARE SURE you need it. In most cases you do not need clone and using a pattern with instance = 2 is more appropriate.

Arguments

NameTypeDescriptionRequired
geometrySketch or Solid or ImportedGeometryThe sketch, solid, or imported geometry to be cloned.Yes

Returns

Sketch or Solid or ImportedGeometry

Examples

Found a typo?