Edwin Jakobs
771e348631
add demos to README.md
2025-07-06 22:03:48 +00:00
Edwin Jakobs
b259e9c2de
[orx-shapes] Add rectangle align, distribute and fit functions
2025-07-06 23:35:40 +02:00
Edwin Jakobs
e944bd30d3
[orx-shapes] Remove System.setProperty() add Camera2D to DemoText01.kt
2025-03-06 12:26:18 +01:00
Edwin Jakobs
ee8a709cc0
[orx-shapes] Add placeIn methods for Rectangle and Box
2025-02-27 10:20:17 +01:00
Edwin Jakobs
6ad584a262
[orx-shapes] Add extensions for creating sub-shapes and positioning boxes
...
Introduce `Rectangle.sub` and `Box.sub` functions to derive sub-rectangles and sub-boxes from existing shapes using relative dimensions. Add `Box.place` to position a box relative to another using customizable anchors.
2025-02-26 22:12:26 +01:00
Edwin Jakobs
21a3d7f483
add demos to README.md
2025-02-25 06:52:24 +00:00
Edwin Jakobs
b3e8543555
[orx-shapes] Add place function and demo for rectangle placement
...
Introduce `Rectangle.place` to position rectangles dynamically within bounds using anchor points. Added a demo (`DemoRectanglePlace01`) showcasing a 10x10 grid of rectangles evenly distributed across the canvas.
2025-02-25 07:08:48 +01:00
Edwin Jakobs
17e10a59ee
[orx-shapes] Add utilities for sub-list operations in Rectangle grids
...
Introduced functions for slicing, dropping, and selecting columns in 2D rectangle grids, including `uniformBlock` for random sub-block extraction.
2025-02-20 23:56:52 +01:00
Edwin Jakobs
291038e621
[orx-shapes] Add box splitting and subtraction utilities
...
Introduce `splitAtX`, `splitAtY`, and `splitAtZ` methods to divide a box along specific axes. Implement `subtract` methods to handle box subtraction and remove intersecting regions, with support for operations on individual boxes and lists of boxes.
2025-02-20 23:56:52 +01:00
Edwin Jakobs
b03e39b52e
[orx-shapes] Add rectangle splitting and subtraction utilities
...
Introduce functions to split rectangles at specified axes and subtract overlapping areas. These utilities allow precise manipulation of rectangle shapes, including dividing and removing intersections while preserving non-overlapping sections.
2025-02-20 23:56:52 +01:00
Edwin Jakobs
26d9625005
add demos to README.md
2025-02-20 16:09:06 +00:00
Edwin Jakobs
a7d878a710
[orx-shapes] Add irregular grid support and demo examples
...
This commit introduces `Rectangle.irregularGrid`, enabling the creation of grids with irregular spacing based on weights. New helper methods and properties for 2D rectangle lists, such as subgrid selection, bounds calculation, and random access, are also added. Additionally, two new demos showcase regular and irregular grid features.
2025-02-20 16:57:35 +01:00
Edwin Jakobs
3f31cbe117
[orx-shapes] Add transpose function for 2D rectangle grids
2025-02-20 16:57:35 +01:00
Edwin Jakobs
75bba098a2
[orxy-shape] Optimize list initialization with predefined capacity in HobbyCurve.kt
2025-02-02 11:41:34 +01:00
Edwin Jakobs
426e35ebd0
Replace the custom mod function with Kotlin's built-in mod extension.
2025-02-01 14:21:19 +01:00
Abe Pazos
864228d346
add demos to README.md
2025-01-26 20:22:14 +00:00
Abe Pazos
c8f7dd52c6
Demos: ensure all use fun main() = application {
...
- Adjust some demo window sizes.
- Replace Random.double by Double.uniform
- Tweak some demos so screenshots look more interesting
2025-01-26 20:57:04 +01:00
Edwin Jakobs
969d342e91
[orx-shapes] Enhance ContourBlend with customizable rectification params
...
Added `distanceTolerance` and `lengthScale` parameters to the `ContourBlend` function for improved flexibility during contour rectification. Default values maintain backward compatibility.
2025-01-24 18:10:47 +01:00
Edwin Jakobs
c059b11841
add demos to README.md
2025-01-22 21:18:39 +00:00
Edwin Jakobs
13c6191cc2
[orx-shapes] Add DemoHilbertOrder01.kt, DemoHilbertOrder02.kt
2025-01-22 22:01:10 +01:00
Edwin Jakobs
0e9e36acba
[orx-shapes] Add Hilbert and Morton point ordering in 2d and 3d
2025-01-22 21:05:23 +01:00
Edwin Jakobs
f7bd2eb4e1
[orx-shapes] Clean-up deprecation warnings in RamerDouglasPeucker.kt
2025-01-20 11:14:32 +01:00
Edwin Jakobs
57f2223682
[orx-shapes] Fix problems with shadowing in Arrangement
2025-01-20 11:08:18 +01:00
Edwin Jakobs
2236da00bf
[orx-shapes] Add generated and verified documentation
2025-01-19 00:49:05 +01:00
Edwin Jakobs
cb1c243837
[orx-shapes] Fix frame orientation in frames()
2025-01-05 08:18:39 +01:00
Edwin Jakobs
1e9c46e8f7
Upgrade jsoup to 1.18.2
2025-01-05 08:13:54 +01:00
Edwin Jakobs
08e7a5a354
[orx-shapes] Add RectifiedPath.curvature
2025-01-04 14:07:25 +01:00
Edwin Jakobs
fba1e5b61a
[orx-noise] Add hash functions
2024-10-20 14:15:02 +02:00
Edwin Jakobs
98851e0ab8
[orx-shapes] Add font scaler to shapesFromText
2024-09-27 12:30:59 +02:00
Edwin Jakobs
2438dbe770
[orx-shapes] Add Box.intersection() and Box.grid()
2024-09-26 22:15:25 +02:00
Edwin Jakobs
21f3674f4e
add demos to README.md
2024-09-25 20:41:46 +00:00
Edwin Jakobs
6b9c3593ae
[orx-shapes] Add Rectangle.intersection()
2024-09-25 22:26:37 +02:00
Abe Pazos
c5fb56626c
Remove unused imports ( #344 )
2024-06-24 10:02:34 +02:00
Abe Pazos
4faae6687b
[orx-shapes] Fix broken .otf URL in DemoText01.kt
2024-06-13 17:44:31 +02:00
Edwin Jakobs
78fbff54c5
Upgrade to JDK 17. Add @JvmRecord annotations
2024-06-01 07:31:44 +02:00
Edwin Jakobs
86ae5f70de
[orx-shapes] Fix bug in RectifiedPath for closed paths
2024-05-22 12:17:23 +02:00
Edwin Jakobs
08da253a8a
add demos to README.md
2024-05-14 21:17:50 +00:00
Edwin Jakobs
cebc217c94
[orx-shapes] Fix RectifiedPath.kt for closed contours; Closes #334
2024-05-14 23:09:55 +02:00
Edwin Jakobs
8f68c918f2
[orx-shapes] Handle RectifiedPath3D.path better
2024-05-09 11:15:21 +02:00
Edwin Jakobs
4c086d9ff9
[orx-shapes] add RectifiedPath3D.path override
2024-05-08 13:55:58 +02:00
Edwin Jakobs
5f10260339
add demos to README.md
2024-05-04 08:44:17 +00:00
Edwin Jakobs
e4f9903ffc
[orx-shapes] Fix ShapeContour.roundCorners, add demo. Closes #333
2024-05-04 10:36:39 +02:00
Edwin Jakobs
292c33f06a
add demos to README.md
2024-05-02 20:15:36 +00:00
Edwin Jakobs
c801154b20
[orx-shapes] Add Path3D.projectToContour, Segment3D.projectToContour
2024-05-02 22:01:47 +02:00
Edwin Jakobs
c01a22d2f2
add demos to README.md
2024-04-03 08:40:11 +00:00
Edwin Jakobs
d1dee70630
[orx-shapes] Fix refactor bug in hobbyCurve
2024-04-03 10:26:37 +02:00
Edwin Jakobs
70ffc7dc14
[orx-shapes] Add 3d Hobby curves
2024-04-03 08:15:42 +02:00
Edwin Jakobs
0a4b4b4925
add demos to README.md
2024-03-19 17:27:37 +00:00
Edwin Jakobs
3cdc02ba07
[orx-shapes] Re-add contour property to RectifiedContour
2024-03-19 18:10:58 +01:00
Edwin Jakobs
c48aa83ced
[orx-shapes, orx-mesh-generator] Move frames code from orx-mesh-generator to orx-shapes
2024-03-19 17:54:03 +01:00