vibesketch.document.surfaces

Editable schematic surface partners and labelled grafts (#140).

Functions

attach_to_surface(document, generic, surface)

Join a labelled generic to a surface anchor using the nanostructure grafting path.

records(document)

Re-derive surfaces and their attached generic identities from the current drawing.

with_surface(document, parameters, *[, at, ...])

Add or replace an object by id.

vibesketch.document.surfaces.records(document)[source]

Re-derive surfaces and their attached generic identities from the current drawing.

Parameters:

document (Document)

Return type:

list[Surface]

vibesketch.document.surfaces.with_surface(document, parameters, *, at=None, width=8, height=3)[source]

Add or replace an object by id. Geometry is drawing units, never a physical model.

Parameters:
Return type:

Document

vibesketch.document.surfaces.attach_to_surface(document, generic, surface, anchor='top')[source]

Join a labelled generic to a surface anchor using the nanostructure grafting path.

Parameters:
Return type:

Document