Files
intellecton/venv/lib/python3.12/site-packages/contourpy/__pycache__/dechunk.cpython-312.pyc
T

80 lines
8.0 KiB
Plaintext
Raw Normal View History

Ë
†RjLãó°—ddlmZddlmZmZddlmZmZddlm Z m
Z
m Z m Z ddl
mZmZddlmZmZerddlmZd d„Zd
d „Z dd
„Z dd „Zy)é)Ú annotations)Ú
TYPE_CHECKINGÚcast)ÚFillTypeÚLineType)Úconcat_codes_or_noneÚconcat_offsets_or_noneÚconcat_points_or_noneÚconcat_points_or_none_with_nan)Ú as_fill_typeÚ as_line_type)Ú check_filledÚ check_linesNcóæ—t|«}|tjtjfvr|St ||«t |d«dkr|St rttj|«}t|d«}|tjk(r>t rttj|«}|€dgdgf}|S|gt|d«gf}|S|tjk(r>t rttj|«}|€dgdgf}|S|gt!|d«gf}|S|tj"k(rPt rttj$|«}|€
dgdgdgf}|St!|d«}|gt|d«g|gf}|S|tj&k(rPt rttj(|«}|€
dgdgdgf}|St!|d«}|gt!|d«g|gf}|St+d|›�«‚)a¨Return the specified filled contours with chunked data moved into the first chunk.
Filled contours that are not chunked (``FillType.OuterCode`` and ``FillType.OuterOffset``) and
those that are but only contain a single chunk are returned unmodified. Individual polygons are
unchanged, they are not geometrically combined.
Args:
filled (sequence of arrays): Filled contour data, such as returned by
:meth:`.ContourGenerator.filled`.
fill_type (FillType or str): Type of :meth:`~.ContourGenerator.filled` as enum or string
equivalent.
Return:
Filled contours in a single chunk.
.. versionadded:: 1.2.0
réNézInvalid FillType )r rÚ OuterCodeÚ OuterOffsetrÚlenrrÚcpyÚFillReturn_Chunkr
ÚChunkCombinedCodeÚFillReturn_ChunkCombinedCoderÚChunkCombinedOffsetÚFillReturn_ChunkCombinedOffsetr ÚChunkCombinedCodeOffsetÚ"FillReturn_ChunkCombinedCodeOffsetÚChunkCombinedOffsetOffsetÚ$FillReturn_ChunkCombinedOffsetOffsetÚ
ValueError)ÚfilledÚ fill_typeÚpointsÚret1Úret2Úret3Ú
outer_offsetsÚret4s úT/home/antigravity/intellecton/venv/lib/python3.12/site-packages/contourpy/dechunk.pyÚdechunk_filledr*s!€ô$˜YÓ'€Ià”X×'Ñ'¬×)=Ñ)=Ð>Ñ>àˆ
ä�˜Ô#Ü
ˆ6�!‰9ƒ~˜Òàˆ
åÜ”c×*Ñ*¨FÓ3ˆÜ
" 6¨!¡9Ó
-€Fà”H×.Ñ.Ò.Ý Üœ#×:Ñ:¸FÓCˆFØ ˆ>Ø7;°f¸t¸fÐ5EˆDðˆ ð�HÔ3°F¸1±IÓ>Ð?Ð@ˆD؈ Ø ”h×2Ñ2Ò 2Ý Üœ#×<Ñ<¸fÓEˆFØ ˆ>Ø9=¸ÀÀÐ7GˆDðˆ ð�HÔ5°f¸Q±iÓ@ÐAÐBˆD؈ Ø ”h×6Ñ6Ò 6Ý Üœ#×@Ñ@À&ÓIˆFØ ˆ>Ø=A¸FÀTÀFÈTÈFÐ;SˆDðˆ ô3°6¸!±9Ó=ˆMØ�HÔ3°F¸1±IÓ>Ð?À-ÀÐQˆD؈ Ø ”h×8Ñ8Ò 8Ý Üœ#×BÑBÀFÓKˆFØ ˆ>Ø?C¸fÀtÀfÈtÈfÐ=UˆDðˆ ô3°6¸!±9Ó=ˆMØ�HÔ5°f¸Q±iÓ@ÐAÀMÀ?ÐSˆD؈ äÐ,¨Y¨KÐ8Ó9Ð9ócó—t|«}|tjtjfvr|St ||«t |d«dkr|St rttj|«}|tjk(rLt rttj|«}t|d«}|€dgdgf}|S|gt|d«gf}|S|tjk(rLt rttj|«}t|d«}|€dgdgf}|S|gt!|d«gf}|S|tj"k(r4t rttj$|«}t'|d«}|gf}|St)d|›�«‚)ašReturn the specified contour lines with chunked data moved into the first chunk.
Contour lines that are not chunked (``LineType.Separate`` and ``LineType.SeparateCode``) and
those that are but only contain a single chunk are returned unmodified. Individual lines are
unchanged, they are not geometrically combined.
Args:
lines (sequence of arrays): Contour line data, such as returned by
:meth:`.ContourGenerator.lines`.
line_type (LineType or str): Type of :meth:`~.ContourGenerator.lines` as enum or string
equivalent.
Return:
Contour lines in a single chunk.
.. versionadded:: 1.2.0
rrNrzInvalid LineType )r
rÚSeparateÚ SeparateCoderrrrrÚLineReturn_ChunkrÚLineReturn_ChunkCombinedCoder
rrÚLineReturn_ChunkCombinedOffsetr ÚChunkCombinedNanÚLineReturn_ChunkCombinedNanr r )ÚlinesÚ line_typer#r$r%r&s r)Ú
dechunk_linesr6Zsˆ€ô$˜YÓ'€Ià”X×&Ñ&¬×(=Ñ(=Ð>Ñ>àˆ ä��yÔ!Ü
ˆ5�‰8ƒ}�qÒàˆ åÜ”S×)Ñ)¨5Ó1ˆà”H×.Ñ.Ò.Ý Üœ×9Ñ9¸5ÓAˆEÜ& u¨Q¡xÓ0ˆØ ˆ>Ø7;°f¸t¸fÐ5EˆDðˆ ð�HÔ3°E¸!±HÓ=Ð>Ð?ˆD؈ Ø ”h×2Ñ2Ò 2Ý Üœ×;Ñ;¸UÓCˆEÜ& u¨Q¡xÓ0ˆØ ˆ>Ø9=¸ÀÀÐ7GˆDðˆ ð�HÔ5°e¸A±hÓ?Ð@ÐAˆD؈ Ø ”h×/Ñ/Ò /Ý Üœ×8Ñ8¸%Ó@ˆEÜ/°°a±Ó9ˆØ28°° ˆØˆ äÐ,¨Y¨KÐ8Ó9Ð9r+cóž—t|«}|tjtjfvr|S|D�cgc]}t ||«‘Œc}Scc}w)aÐReturn multiple sets of filled contours with chunked data moved into the first chunks.
Filled contours that are not chunked (``FillType.OuterCode`` and ``FillType.OuterOffset``) and
those that are but only contain a single chunk are returned unmodified. Individual polygons are
unchanged, they are not geometrically combined.
Args:
multi_filled (nested sequence of arrays): Filled contour data, such as returned by
:meth:`.ContourGenerator.multi_filled`.
fill_type (FillType or str): Type of :meth:`~.ContourGenerator.filled` as enum or string
equivalent.
Return:
Multiple sets of filled contours in a single chunk.
.. versionadded:: 1.3.0
)r rrrr*)Ú multi_filledr"r!s r)Údechunk_multi_filledr9–sH€ô*˜YÓ'€Ià”X×'Ñ'¬×)=Ñ)=Ð>Ñ>àÐà<HÖ I°&ŒN˜6 9Õ -Ò IÐIùÒ Ió´A
cóž—t|«}|tjtjfvr|S|D�cgc]}t ||«‘Œc}Scc}w)aÆReturn multiple sets of contour lines with all chunked data moved into the first chunks.
Contour lines that are not chunked (``LineType.Separate`` and ``LineType.SeparateCode``) and
those that are but only contain a single chunk are returned unmodified. Individual lines are
unchanged, they are not geometrically combined.
Args:
multi_lines (nested sequence of arrays): Contour line data, such as returned by
:meth:`.ContourGenerator.multi_lines`.
line_type (LineType or str): Type of :meth:`~.ContourGenerator.lines` as enum or string