Hatch Components
- Last UpdatedNov 24, 2023
- 1 minute read
|
hatch_new(Contour) hatch_new(ContHandle) |
||
|
The function creates a hatch pattern component, given a closed 2D contour. |
||
|
Input Parameters: |
||
|
Contour |
Contour2D |
The contour definition |
|
ContHandle |
integer |
Handle to the contour |
|
Returned value: |
||
|
[0] |
integer |
Handle to the created component |
|
Exceptions: |
||
|
kcs_DrawingNotCurrent |
No drawing was current |
|
|
kcs_ValueError |
Invalid parameter value |
|
|
kcs_HandleInvalid |
Invalid handle to contour |
|
|
kcs_AmplitudeTooBig |
The amplitude in at least one segment was too big |
|
|
kcs_OwnerNotFound |
No structural owner to the hatch pattern component could be derived |
|
|
hatch_island_new(HatchHandle, Island) hatch_island_new(HatchHandle, IslandHandle) |
||
|
The function removes the part of the given hatch pattern that lies inside a given island, defined by a closed 2D contour. |
||
|
Input Parameters: |
||
|
HatchHandle |
integer |
Handle to the given hatch pattern component |
|
Island |
Contour2D |
The island contour definition |
|
IslandHandle |
integer |
Handle to the island contour |
|
Returned value: |
||
|
[0] |
integer |
Handle to the resulting hatch pattern component |
|
Exceptions: |
||
|
kcs_DrawingNotCurrent |
No drawing was current |
|
|
kcs_ValueError |
Invalid parameter value |
|
|
kcs_HandleInvalid |
Invalid handle to hatch pattern/island contour |
|
|
kcs_AmplitudeTooBig |
The amplitude in at least one segment in the island contour was too big |
|
|
kcs_OwnerNotFound |
No structural owner to the resulting hatch pattern component could be derived |
|
|
Example: |
||
|
# Example: kcs_ex_draft9.py |
||