kumiki.joints.workshop.decorative_joints¶
Flat import path
kumiki/__init__.py re-exports everything on this page via from kumiki import *, so every name below is also available directly as kumiki.cut_practice_roundover_decoration -- you do not need to import from the submodule path shown in the heading above.
kumiki.joints.workshop.decorative_joints
¶
Kumiki - Decorative joint construction functions
cut_practice_roundover_decoration
¶
cut_practice_roundover_decoration(timber: BlockLike, edges: List[TimberEdge], radius: Numeric) -> Joint
Cuts a roundover of radius radius along edges of timber.
Short edges (edges on the timber ends) are at the declared length of the timber rather than the maybe_end_cut length (which is not known here).
Note, this does not check if round radii overlap.
Source code in kumiki/joints/workshop/decorative_joints.py
cut_practice_rounded_end_decoration
¶
cut_practice_rounded_end_decoration(timber: BlockLike, rounded_face: TimberFace, rounded_end: TimberFace, radius: Numeric, distance_from_end: Numeric, lateral_offset: Numeric = 0) -> Joint
Rounds off rounded_end of timber with a single large-radius arc spanning
the full width perpendicular to both rounded_face and rounded_end -- a
gentle bowed/bullnose end profile, visible as a curved outline when looking
straight at rounded_face (the arc's plane is perpendicular to
rounded_face's normal, i.e. that normal is the cylinder's own axis).
The cylinder (of radius) is centered distance_from_end in from the
timber's actual rounded_end face, offset laterally by lateral_offset
(positive is toward rounded_end.rotate_about(rounded_face)). Only the
material outside that cylinder is removed.
If distance_from_end is less than radius, the cylinder's surface passes
beyond the actual end at the lateral center, so a flat band survives there
and only the corners get rounded off (a filleted-corner rectangle) rather
than a single continuous arc spanning the whole width -- a warning is
raised in that case since it may not be the intended look.
Source code in kumiki/joints/workshop/decorative_joints.py
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 | |
cut_practice_rafter_tail_scallop_corner_end_decoration
¶
cut_practice_rafter_tail_scallop_corner_end_decoration(timber: BlockLike, short_edge: Union[TimberShortEdge], scallop_height: Numeric, scallop_length: Numeric) -> Joint
|
__◜ ←scallop_height ↑ scallop_width
cuts out a "scallop" shape from cut_side from scallop_height measured up from cut_side on the end_side to scallop_width (scallop_length) measured inwards from the end on the cut_side the scallop is the circle touching the 2 points above such that the circle is perpendicular with the end_side face.
The circle crosses the end_side face AT A right angle at the point scallop_height above cut_side (its tangent line there runs straight through end_side, along its own normal -- so the circle's center lies exactly ON the end_side plane), and simply passes through the point scallop_length in from the end along cut_side (so there is a slight kink there, where the curve meets the flat run of cut_side).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
timber
|
BlockLike
|
Timber to cut decoration on |
required |
short_edge
|
Union[TimberShortEdge]
|
The short edge defining the end face and cut face |
required |
scallop_height
|
Numeric
|
Height of scallop measured from cut_side on end_side |
required |
scallop_length
|
Numeric
|
Length of scallop measured inwards from end on cut_side |
required |
Returns:
| Type | Description |
|---|---|
Joint
|
Joint containing decorative cutting |
Source code in kumiki/joints/workshop/decorative_joints.py
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 | |
cut_practice_path_extrusion_corner_end_decoration
¶
cut_practice_path_extrusion_corner_end_decoration(timber: BlockLike, cut_corner: TimberShortEdge, cut_path: List[PathSegment]) -> Joint
path coordinates is based on cut_corner
+y | |_ |_|__ +x ^ cut_corner
generally speaking, path coordiantes is a line representing what you want to cut drown from the left end of the timber to the bottom face of the timber (based on the picture above)
specifically to form the cut out: - the 0'th path coordinate is extended to the end of the timber (x = 0) - that point is extended vertically to the rough face in the -y direction (relative to the diagram above) - then that point is extended to horizontally to the x coordinate of the last path coordinate - finally it is connected to the last path coordinate, and from there back to the 0'th path coordinate, closing the loop
The enclosed region (cut_path on the inside, the end/rough-face corner on the outside) is extruded across the timber's full actual (rough) width perpendicular to both cut_corner's end face and long face, and removed -- the same "extrude a 2D cut profile across the full perpendicular width" idea as cut_practice_rafter_tail_scallop_corner_end_decoration, just with an arbitrary line/arc path instead of a single circular arc.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
timber
|
BlockLike
|
Timber to cut the decoration on |
required |
cut_corner
|
TimberShortEdge
|
the corner that is to be cut out, which determines the coordinates of the path based on the diagram above |
required |
cut_path
|
List[PathSegment]
|
the path, which must be drawn from the left edge to the bottom edge based on the diagram above. |
required |
Source code in kumiki/joints/workshop/decorative_joints.py
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 | |
cut_practice_straight_angled_end_cut_decoration
¶
cut_practice_straight_angled_end_cut_decoration(timber: BlockLike, front_face: TimberFace, position_from_end: Numeric, angle: Numeric = degrees(0), angle_towards_face: Optional[TimberFace] = None) -> Joint
front_face \ <-timber_end _______\
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
timber
|
BlockLike
|
the timber to have the decoration cut on it |
required |
timber_end
|
the end of the timber the decoration is cut on |
required | |
position_from_end
|
Numeric
|
distance from timber_end along the timber's centerline where the angle cut plane lies |
required |
angle
|
Numeric
|
angle to make the cut, 0 is perpendicular, angle is in the front_face axis |
degrees(0)
|
front_face
|
TimberFace
|
the face that the angle cut is visible from |
required |