ClipperBase
ΕΚΤΙΜΗΣΗ
ClipperBase Είναι μια τάξη στο Aspose.Page FOSS για Python.
Αυτή η κατηγορία παρέχει 35 μεθόδους για να εργαστείτε με ClipperBase αντικείμενα σε προγράμματα Python. Οι διαθέσιμες μεθόδους περιλαμβάνουν: __init__, add_bounds_to_lml, add_path, add_paths, all_horizontal, ascend_to_max, clear, descend_to_min, do_minima_lml, get_bounds, get_last_horz, init_edge,και 23 πρόσθετες μέθοδοι. Όλα τα μέλη του κοινού είναι προσβάσιμα σε οποιαδήποτε εφαρμογή Python μετά την εγκατάσταση του Aspose.Page FOSS για το πακέτο Python. Ιδιοκτησία : current_lm, edges, has_open_paths, minima_list, preserve_collinear, use_full_range.
Ιδιοκτησία
| Ονομασία | Τύπος | Πρόσβαση | Περιγραφή |
|---|---|---|---|
minima_list | Optional[LocalMinima] | Διαβάστε | Κάντε τη λίστα με το ελάχιστο. |
current_lm | Optional[LocalMinima] | Διαβάστε | Πάρτε το τρέχον LM. |
edges | List[List[TEdge]] | Διαβάστε | Βγάζει τα άκρα. |
use_full_range | `` | Διαβάστε | Χρησιμοποιεί πλήρες φάσμα. |
has_open_paths | `` | Διαβάστε | Έχει ανοιχτά μονοπάτια. |
preserve_collinear | `` | Διαβάστε | Πήρε το αποθηκευμένο χαλί. |
Μέθοδοι
| υπογραφή | Περιγραφή |
|---|---|
__init__() | |
near_zero(val: float) → bool | |
is_horizontal(e: TEdge) → bool | |
point_is_vertex(pt: IntPoint, pp: OutPt) → bool | |
point_on_line_segment(pt: IntPoint, line_pt1: IntPoint, line_pt2: IntPoint) → bool | |
point_on_polygon(pt: IntPoint, pp: OutPt) → bool | |
point_in_polygon(pt: IntPoint, pp: OutPt) → bool | |
slopes_equal(e1: TEdge, e2: TEdge) → bool | |
slopes_equal_pts(pt1: IntPoint, pt2: IntPoint, pt3: IntPoint) → bool | |
slopes_equal_pts4(pt1: IntPoint, pt2: IntPoint, pt3: IntPoint, pt4: IntPoint) → bool | |
clear() | |
range_test(pt: IntPoint) | |
init_edge(e: TEdge, e_next: TEdge, e_prev: TEdge, pt: IntPoint) | |
init_edge2(e: TEdge, poly_type: int) | |
add_path(pg: List[IntPoint], poly_type: int, closed: bool) → bool | |
add_paths(ppg: List[List[IntPoint]], poly_type: int, closed: bool) → bool | |
pt2_is_between_pt1_and_pt3(pt1: IntPoint, pt2: IntPoint, pt3: IntPoint) → bool | |
remove_edge(e: TEdge) → TEdge | |
get_last_horz(edge: TEdge) → TEdge | |
shared_vert_with_prev_at_top(edge: TEdge) → bool | |
shared_vert_with_next_is_bot(edge: TEdge) → bool | |
more_below(edge: TEdge) → bool | |
just_before_loc_min(edge: TEdge) → bool | |
more_above(edge: TEdge) → bool | |
all_horizontal(edge: TEdge) → bool | |
set_dx(e: TEdge) | Εισάγετε την τιμή dx. |
do_minima_lml(e1: Optional[TEdge], e2: Optional[TEdge], is_closed: bool) | |
descend_to_min(e: TEdge) → TEdge | |
ascend_to_max(e: TEdge, appending: bool, is_closed: bool) | |
add_bounds_to_lml(e: TEdge, closed: bool) → TEdge | |
insert_local_minima(new_lm: LocalMinima) | |
pop_local_minima() | |
reverse_horizontal(e: TEdge) | |
reset() | |
get_bounds() → IntRect | Επιστρέφει τα όρια. |