cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

Graphical drawing errors

Open OnlyKoei opened this issue 3 years ago • 1 comments

Cocos Creator version

3.4.2,3.5.0

System information

chrome,native

Issue description

image

This problem is caused by the different conditions established in sortLink, resulting in different plotting point generation. image

Relevant error log output

No response

Steps to reproduce

2.4.9 demo: NewProject_22.zip

3.4.2 demo: NewProject_18.zip

graphic.ts -> fill() -> graphics-assembler.ts -> _expandFill() -> earcut.ts -> earcut() -> earcutLinked() -> indexCurve() -> sortLinked() File path:.\engine\cocos\2d\assembler\graphics\webgl\earcut.ts Interim Program: image image

Minimal reproduction project

No response

OnlyKoei avatar Apr 27 '22 07:04 OnlyKoei

Feedback on the same issue: https://forum.cocos.org/t/topic/112037/, please raise the priority to fix this issue.

zhefengzhang avatar Aug 18 '22 03:08 zhefengzhang

Errors due to type errors.

We can consider updating this library. Earcut

LinYunMo avatar Oct 13 '22 09:10 LinYunMo

this remains on 3.6.2!

dbq817 avatar Nov 05 '22 01:11 dbq817