ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Gavin via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Gavin <gavinpublic@icloud.com>
Subject: [NTG-context] Re: Do we have a geometry library for Metafun?
Date: Fri, 12 Jan 2024 09:06:00 -0700	[thread overview]
Message-ID: <2B39CFC3-1F35-40F0-9C5D-BD773F372A8C@icloud.com> (raw)
In-Reply-To: <CALJ_jGS8qFXhxCsTRSdMbGsSerOJkR6U2yMtR4Jc8d8cYZtfUg@mail.gmail.com>

Hi Shiv,

> Do we have a geometry library for common operations like finding tangents, perpendiculars, circumcircle, orthocenters and such?

I don’t think we have anything like that specifically in the MetaFun world, but if there is a MetaPost package you like, you can use it with MetaFun. For example, the TeX Live installation includes both ConTeXt and 3dgeom.mp, so you should be able to use the 3dgeom package in MetaFun simply with "input 3dgeom" in your MetaPost code. (I did a quick check, successfully drawing a drawing a cube with 3dgeom. I have not tested it beyond than that.)

If there isn’t a MetaPost package for what you want, Lua may be useful for doing the calculations.

Gavin
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2024-01-12 16:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-12 14:22 [NTG-context] " Shiv Shankar Dayal
2024-01-12 16:06 ` Gavin via ntg-context [this message]
2024-01-12 16:32   ` [NTG-context] " Shiv Shankar Dayal
2024-01-13  0:07 ` Aditya Mahajan
2024-01-13  1:27   ` Shiv Shankar Dayal
2024-01-13 14:54     ` Gavin via ntg-context
2024-01-13 15:56       ` Henning Hraban Ramm
2024-01-13 16:53         ` Shiv Shankar Dayal
2024-01-13 17:00           ` Shiv Shankar Dayal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2B39CFC3-1F35-40F0-9C5D-BD773F372A8C@icloud.com \
    --to=ntg-context@ntg.nl \
    --cc=gavinpublic@icloud.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).