From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 0546D22AFD for ; Wed, 16 Oct 2024 22:34:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id E1FAB4857E0 for ; Wed, 16 Oct 2024 22:30:57 +0200 (CEST) Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-transfer-encoding:content-type:content-type:from:from :list-unsubscribe:list-subscribe:list-post:list-owner:list-help :list-archive:archived-at:list-id:subject:subject:reply-to :precedence:in-reply-to:references:content-language:mime-version :date:date:message-id:received:received:received:received :received:received:received; s=cgl; t=1729110657; x=1731702658; bh=BAyduTZ0kpIaHvQDuezlPNOYZpldCmrawmbHYaIkbd8=; b=QOIR4sFiEXfP w1DmEtTR05+DTrDh9p/gcoG01uI9hT+RWQjQZvNyRwaWfU8CrjBPb0XnN/oVcvN2 hKVaMRyIixIF8JwMgBhFWmOZ2xWuKpyqCL5255e82o34HK+SrEfCYbr860MYIcp6 peXG+17agmd9i5Jeog47ypHwycYLy5M= X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=freedom.nl header.b="jeHVllCT"; dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=freedom.nl header.b="E284aHF1" Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UIbyZsQ9N-r9 for ; Wed, 16 Oct 2024 22:30:57 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 4A4994855AA for ; Wed, 16 Oct 2024 22:29:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id D2B87485391 for ; Wed, 16 Oct 2024 22:28:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9juJYz2ngkhs for ; Wed, 16 Oct 2024 22:28:53 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.233.34.146; helo=outbound.soverin.net; envelope-from=j.hagen@freedom.nl; receiver= Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 7275B48538D for ; Wed, 16 Oct 2024 22:28:53 +0200 (CEST) Received: from smtp.freedom.nl (unknown [10.10.4.108]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4XTMxd1rKZz2J for ; Wed, 16 Oct 2024 20:28:53 +0000 (UTC) Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.108]) by freedom.nl (Postfix) with ESMTPSA id 4XTMxc6rsKz2xZB for ; Wed, 16 Oct 2024 20:28:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freedom.nl; s=default; t=1729110533; bh=G1v7r7jYWRHyeMEkC3cPPeK1n+uy/cu4sWF8iaHoXdY=; h=Date:Subject:To:References:From:In-Reply-To:From; b=jeHVllCT39SSiDRlsvvmkjMCWdNU0ko3KKnRbPcXcfyT4Vh4mVoc3tzvbescjd2nW rOJC9zGaJBcw3rXMY9lf7uAgP0hpCi1ZCqf0PoINdjZLVPcOzuEp3CsW4qpHxKU8pE 7Xz9F5H2YEm7aCjnmZiCLcpBP+3mzAx24TVwMDi8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=soverin1; t=1729110533; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rX5PqwD9Y3XV1u1Ffi5ZNXCF/qb9ruMdFX3A1EpOsDM=; b=E284aHF1fr7eWSFP+hpYP8T0clWHeqTxJt00PbJ5CG+0mesZgeibyBOj5/wuZr/Ik3jsd7 VPOy1VZpQQpLKWAtCW5h0v2m9Eud7lFAt7KcJczepFjEu7l/yQxL1W5avSpry9nrDK6bmE W/Trgz8BnPTWPVoKByhNRGS8riXtXKYruRQeUeAU8F2cqs9DLY0FtDkP420X5/JsYAh8k2 Pnz6p8f8KfT9hBnqOHMm25NSmN6m7oCFVc/0Tk5sy0WuH1lRiMAwrgtDcSypIxZX83X4l7 PfKmKRDJr+ZCbjI1w2WxSPOxx43UsmTJJq2/TYZ5vBpcMcg6quj6rS6vVf+rxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=default; t=1729110533; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rX5PqwD9Y3XV1u1Ffi5ZNXCF/qb9ruMdFX3A1EpOsDM=; b=MBXFkTSTCGOPzmHyUuLMN26mbw28W80T6y3gg3z36Fn/lAWYcrRkKn7cg1dnp9a4X5A5bW D41p3kp7EWg5Cw/C2NhxUEN/Fe9T7guYZbBzpBfHp9Y7XDf018e7KjOrTkykIKrVNET6vJ lrJtyOJjeRANojMH0ttg9IyeSX1BKoM= ARC-Seal: i=1; s=default; d=freedom.nl; t=1729110533; a=rsa-sha256; cv=none; b=RqFbbIOkMymAfnpbBcRiCdQ+eKh5S7Zz4mt8HBORK2sW4t1dOhhw+0qQdVl53HH/UkeJPg vAFmVSvQY80p2hvh26dTv7lpsxXsQAz0cShkdoCk4K0idjoCQkOxvXSHd0jrQLufIMaiEE YzIE6pnKSATW/8lQvXaPEdPVc93dbhU= ARC-Authentication-Results: i=1; smtp.freedom.nl; auth=pass smtp.mailfrom=j.hagen@freedom.nl Message-ID: <981e8392-6a5e-43ff-afc9-abf49386545f@freedom.nl> Date: Wed, 16 Oct 2024 22:28:51 +0200 MIME-Version: 1.0 Content-Language: nl To: ntg-context@ntg.nl References: <64D32432-DDCA-4B79-882E-795105BC2532@scorecrow.com> In-Reply-To: <64D32432-DDCA-4B79-882E-795105BC2532@scorecrow.com> X-Spampanel-Class: ham Message-ID-Hash: XUUKMZ63XYGFRCXNSMOD2A5JY6NZXA5Q X-Message-ID-Hash: XUUKMZ63XYGFRCXNSMOD2A5JY6NZXA5Q X-MailFrom: j.hagen@freedom.nl X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Artifact in flow cell connection List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Hans Hagen via ntg-context Cc: Hans Hagen Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit Hi Bruce, > If you change the following MWE line > > \connection [bt] {compiler} > > to > > \connection [br] {compiler} > > then the glitch goes away, so I suggest that means it is a bug in the flow chart module. Actually not (but you're close) ... so for a moment put your calculator (hardware) hat on (although they use decimal clipping and rounding i guess) You noticed that coming from one directions gives a different result than coming from the other: metapost > message : 1.4999979972839355 1.8181943026455964 metapost > message : 1.5 2.1818056973544033 Now, why does this fail? We use a double instance here and as we calculate intersection points we are too precise compared to scaled where we get twice 1.5, so the points collapse in scaled mode and not in double. Maybe I need to make some helper for clipping a given precision. The mp graphic that does the framed loads a metafun double instance so a later instance with the same name in the chart (lua) module takes that one; when it is the first one it will take the scaled instance (mkiv is scaled by default and mkxl defaults to double). We can run these charts in their own instance (i'll do that). Here is the patch for mp-char.mpiv that fixes the issue: def flow_collapse_points = % this can become a core macro begingroup ; % remove redundant points save n ; numeric n ; n := 1 ; for i=2 upto flow_xypoint : % if not (flow_xypoints[i] = flow_xypoints[n]) : if abs(flow_xypoints[i] - flow_xypoints[n]) > eps : n := n + 1 ; flow_xypoints[n] := flow_xypoints[i] fi ; endfor ; flow_xypoint := n ; % make straight lines % if flow_xypoints[2] = flow_xypoints[flow_xypoint-1] : if abs(flow_xypoints[2] - flow_xypoints[flow_xypoint-1]) < eps : flow_xypoints[3] := flow_xypoints[flow_xypoint] ; flow_xypoint := 3 ; fi ; endgroup ; enddef ; But best check this! So the bt / tb was a clue indeed. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________