cam.cam_chunk

Contents

cam.cam_chunk#

BlenderCAM ‘chunk.py’ © 2012 Vilem Novak

Classes and Functions to build, store and optimize CAM path chunks.

Classes#

Functions#

Rotate_pbyp(originp, p, ang)

_internalXyDistanceTo(ourpoints, theirpoints, cutoff)

chunksCoherency(chunks)

setChunksZ(chunks, z)

_optimize_internal(points, keep_points, e, ...)

optimizeChunk(chunk, operation)

limitChunks(chunks, o[, force])

parentChildPoly(parents, children, o)

parentChildDist(parents, children, o[, distance])

parentChild(parents, children, o)

chunksToShapely(chunks)

meshFromCurveToChunk(object)

makeVisible(o)

restoreVisibility(o, storage)

meshFromCurve(o[, use_modifiers])

curveToChunks(o[, use_modifiers])

shapelyToChunks(p, zlevel)

chunkToShapely(chunk)

chunksRefine(chunks, o)

Add Extra Points in Between for Chunks

chunksRefineThreshold(chunks, distance, limitdistance)

Add Extra Points in Between for Chunks. for Medial Axis Strategy only!

Module Contents#

Rotate_pbyp(originp, p, ang)[source]#
_internalXyDistanceTo(ourpoints, theirpoints, cutoff)[source]#
class camPathChunkBuilder(inpoints=None, startpoints=None, endpoints=None, rotations=None)[source]#
points[source]#
startpoints[source]#
endpoints[source]#
rotations[source]#
depth = None[source]#
to_chunk()[source]#
class camPathChunk(inpoints, startpoints=None, endpoints=None, rotations=None)[source]#
poly = None[source]#
simppoly = None[source]#
closed = False[source]#
children = [][source]#
parents = [][source]#
sorted = False[source]#
length = 0[source]#
zstart = 0[source]#
zend = 0[source]#
update_poly()[source]#
get_point(n)[source]#
get_points()[source]#
get_points_np()[source]#
set_points(points)[source]#
count()[source]#
copy()[source]#
shift(x, y, z)[source]#
setZ(z, if_bigger=False)[source]#
offsetZ(z)[source]#
flipX(x_centre)[source]#
isbelowZ(z)[source]#
clampZ(z)[source]#
clampmaxZ(z)[source]#
dist(pos, o)[source]#
distStart(pos, o)[source]#
xyDistanceWithin(other, cutoff)[source]#
xyDistanceTo(other, cutoff=0)[source]#
adaptdist(pos, o)[source]#
getNextClosest(o, pos)[source]#
getLength()[source]#
reverse()[source]#
pop(index)[source]#
dedupePoints()[source]#
insert(at_index, point, startpoint=None, endpoint=None, rotation=None)[source]#
append(point, startpoint=None, endpoint=None, rotation=None, at_index=None)[source]#
extend(points, startpoints=None, endpoints=None, rotations=None, at_index=None)[source]#
clip_points(minx, maxx, miny, maxy)[source]#

Remove Any Points Outside This Range

rampContour(zstart, zend, o)[source]#
rampZigZag(zstart, zend, o)[source]#
changePathStart(o)[source]#
breakPathForLeadinLeadout(o)[source]#
leadContour(o)[source]#
chunksCoherency(chunks)[source]#
setChunksZ(chunks, z)[source]#
_optimize_internal(points, keep_points, e, protect_vertical, protect_vertical_limit)[source]#
optimizeChunk(chunk, operation)[source]#
limitChunks(chunks, o, force=False)[source]#
parentChildPoly(parents, children, o)[source]#
parentChildDist(parents, children, o, distance=None)[source]#
parentChild(parents, children, o)[source]#
chunksToShapely(chunks)[source]#
meshFromCurveToChunk(object)[source]#
makeVisible(o)[source]#
restoreVisibility(o, storage)[source]#
meshFromCurve(o, use_modifiers=False)[source]#
curveToChunks(o, use_modifiers=False)[source]#
shapelyToChunks(p, zlevel)[source]#
chunkToShapely(chunk)[source]#
chunksRefine(chunks, o)[source]#

Add Extra Points in Between for Chunks

chunksRefineThreshold(chunks, distance, limitdistance)[source]#

Add Extra Points in Between for Chunks. for Medial Axis Strategy only!