Skip to content

Python package

ra.pave_along_surface

Pave rows following a surface direction.

import rhinoartisan as ra

Wraps ArtisanPlugin.Scripting.PaveAlongSurfaceApi.

Functions

Function
create()Rows of round diamonds along the isocurves of a surface — the ArtisanPaveAlongSurface (Pave UV) tool, headless.

ra.pave_along_surface.create()

ra.pave_along_surface.create(surface_id: IdLike, points: Sequence[PointLike], gem_size=None, distance=None, border_distance=None, direction=None, justify=None, vertical_alignment=None) -> List[str]

Rows of round diamonds along the isocurves of a surface — the ArtisanPaveAlongSurface (Pave UV) tool, headless. surface_id is a surface or single-face polysurface; each entry of points replaces one click on it and yields one row along the isocurve through that point, in direction U (default) or V. Millimetres; omitting keeps the tool default (or the user’s saved defaults): gem_size 1.5, distance 0.1 between gems, border_distance 0.2. justify True squeezes the row to fill the isocurve; vertical_alignment CENTER (default) / TOP / BOTTOM shifts the row sideways by half a gem. Positions shared by two rows are baked once. Returns the ids of the created gems.

ParameterType
surface_idIdLikerequired
pointsSequence[PointLike]required
gem_sizefloatoptional — None = the tool default
distancefloatoptional — None = the tool default
border_distancefloatoptional — None = the tool default
directionstroptional — None = the tool default
justifyOptional[bool]optional — None = the tool default
vertical_alignmentstroptional — None = the tool default