-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from cwapi3d/feature/function-updates-build-3…
…0-0-533 chore: Update package to 30.0.533
- Loading branch information
Showing
10 changed files
with
488 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# window_geometry | ||
|
||
::: src.cadwork.window_geometry | ||
rendering: | ||
show_root_heading: true | ||
show_source: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,191 +1,73 @@ | ||
# change log build 30.498.0 | ||
|
||
## New Items | ||
|
||
### Functions dimension_controller | ||
|
||
#### get_segment_direction | ||
|
||
```python | ||
def get_segment_direction(element: int, segment_index: int) ->point_3d: | ||
"""get segment direction | ||
Parameters: | ||
element: element | ||
segment_index: segment_index | ||
Returns: | ||
point_3d | ||
""" | ||
|
||
``` | ||
|
||
## New Items | ||
|
||
### Functions element_controller | ||
|
||
#### create_truncated_cone_beam_points | ||
#### unjoin_elements | ||
|
||
```python | ||
def create_truncated_cone_beam_points(start_diameter: float, end_diameter: | ||
float, p1: point_3d, p2: point_3d, p3: point_3d) ->int: | ||
"""create truncated cone beam points | ||
def unjoin_elements(element_id_list: List[int]) ->bool: | ||
"""unjoin elements | ||
Parameters: | ||
start_diameter: start_diameter | ||
end_diameter: end_diameter | ||
p1: p1 | ||
p2: p2 | ||
p3: p3 | ||
element_id_list: element_id_list | ||
Returns: | ||
int | ||
bool | ||
""" | ||
|
||
``` | ||
|
||
#### create_truncated_cone_beam_vectors | ||
#### unjoin_top_level_elements | ||
|
||
```python | ||
def create_truncated_cone_beam_vectors(start_diameter: float, end_diameter: | ||
float, length: float, p1: point_3d, xl: point_3d, zl: point_3d) ->int: | ||
"""create truncated cone beam vectors | ||
def unjoin_top_level_elements(element_id_list: List[int]) ->bool: | ||
"""unjoin top level elements | ||
Parameters: | ||
start_diameter: start_diameter | ||
end_diameter: end_diameter | ||
length: length | ||
p1: p1 | ||
xl: xl | ||
zl: zl | ||
element_id_list: element_id_list | ||
Returns: | ||
int | ||
bool | ||
""" | ||
|
||
``` | ||
|
||
#### create_spline_line | ||
|
||
```python | ||
def create_spline_line(spline_points: None) ->int: | ||
"""create spline line | ||
Parameters: | ||
spline_points: spline_points | ||
Returns: | ||
int | ||
""" | ||
|
||
``` | ||
|
||
## New Items | ||
|
||
### Functions utility_controller | ||
|
||
#### get_user_int_with_default_value | ||
#### set_element_group_single_select_mode | ||
|
||
```python | ||
def get_user_int_with_default_value(message: str, default_value: int) ->int: | ||
"""get user int with default value | ||
Parameters: | ||
message: message | ||
default_value: default_value | ||
def set_element_group_single_select_mode() ->None: | ||
"""set element group single select mode | ||
Returns: | ||
int | ||
None | ||
""" | ||
|
||
``` | ||
|
||
#### get_user_double_with_default_value | ||
#### set_element_group_multi_select_mode | ||
|
||
```python | ||
def get_user_double_with_default_value(message: str, default_value: float | ||
) ->float: | ||
"""get user double with default value | ||
Parameters: | ||
message: message | ||
default_value: default_value | ||
def set_element_group_multi_select_mode() ->None: | ||
"""set element group multi select mode | ||
Returns: | ||
float | ||
None | ||
""" | ||
|
||
``` | ||
|
||
#### get_user_string_with_default_value | ||
## New Items | ||
### Functions visualization_controller | ||
#### enter_working_plane | ||
|
||
```python | ||
def get_user_string_with_default_value(message: str, default_value: str) ->str: | ||
"""get user string with default value | ||
def enter_working_plane(plane_normal: point_3d, plane_origin: point_3d) ->None: | ||
"""enter working plane | ||
Parameters: | ||
message: message | ||
default_value: default_value | ||
plane_normal: plane_normal | ||
plane_origin: plane_origin | ||
Returns: | ||
str | ||
None | ||
""" | ||
|
||
``` | ||
|
||
## New Items | ||
|
||
### Classes cadwork | ||
|
||
#### multi_layer_type | ||
|
||
```python | ||
@unique | ||
class multi_layer_type(IntEnum): | ||
"""multi layer type | ||
Examples: | ||
>>> cadwork.multi_layer_type.undefined | ||
undefined | ||
""" | ||
undefined = 0 | ||
"""""" | ||
structure = 1 | ||
"""""" | ||
panel = 2 | ||
"""""" | ||
lathing = 3 | ||
"""""" | ||
air = 4 | ||
"""""" | ||
covering = 5 | ||
"""""" | ||
|
||
def __int__(self) ->int: | ||
return self.value | ||
|
||
``` | ||
|
||
## New Items | ||
|
||
### Classes cadwork | ||
|
||
#### ifc_2x3_element_type | ||
|
||
```python | ||
class ifc_2x3_element_type: | ||
def is_ifc_element_assembly(self) ->bool: | ||
"""is ifc element assembly | ||
Returns: | ||
bool | ||
""" | ||
|
||
def set_ifc_element_assembly(self) ->None: | ||
"""set ifc element assembly | ||
Returns: | ||
None | ||
""" | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "cwapi3d" | ||
version = "30.498.0" | ||
version = "30.0.533" | ||
authors = [{ name = "Cadwork", email = "[email protected]" }] | ||
requires-python = ">= 3.10" | ||
description = 'Python bindings for CwAPI3D' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
class point: | ||
def __init__(self, x, y): | ||
class Point: | ||
def __init__(self, x: float, y: float): | ||
""" | ||
Initialize a point with x and y coordinates. | ||
Args: | ||
x (float): The x-coordinate. | ||
y (float): The y-coordinate. | ||
""" | ||
self.x = x | ||
self.y = y | ||
|
||
class window_geometry: | ||
def __init__(self): | ||
self.bottom_left = self.point(0, 0) | ||
self.bottom_right = self.point(0, 0) | ||
self.top_left = self.point(0, 0) | ||
self.top_right = self.point(0, 0) | ||
|
||
@property | ||
def bottom_left(self) -> point: ... | ||
|
||
@property | ||
def bottom_right(self) -> point: ... | ||
|
||
@property | ||
def top_left(self) -> point: ... | ||
class WindowGeometry: | ||
def __init__(self, bottom_left: Point, bottom_right: Point, top_left: Point, top_right: Point): | ||
""" | ||
Initialize window geometry with points defining the window corners. | ||
@property | ||
def top_right(self) -> point: ... | ||
Args: | ||
bottom_left (Point): The bottom left corner of the window. | ||
bottom_right (Point): The bottom right corner of the window. | ||
top_left (Point): The top left corner of the window. | ||
top_right (Point): The top right corner of the window. | ||
""" | ||
self.bottom_left = bottom_left | ||
self.bottom_right = bottom_right | ||
self.top_left = top_left | ||
self.top_right = top_right |
Oops, something went wrong.