Help Needed: Drawing a Cylinder with Labels for Height and Radius in JSXGraph

27 views
Skip to first unread message

DANIEL MURUNGA

unread,
Jan 6, 2025, 9:56:04 AMJan 6
to JSXGraph

Hello all, I'm Murunga. I am currently working on a project where I need to draw a 3D representation of a cylinder using JSXGraph. Specifically, I want to:

  1. Draw the cylinder with circular bases.
  2. Label the height of the cylinder.
  3. Label the radius of the circular base.

I’ve been exploring the documentation and examples but can’t figure out where to start or how to achieve this. If anyone could provide guidance or point me to an example, it would be greatly appreciated!

Thank you in advance for your support.

Best regards,
Daniel Murunga

Tom Berend

unread,
Jan 6, 2025, 11:11:10 AMJan 6
to JSXGraph
Hi Murunga,

Here's a 2D construction that might get you started (we call our drawings 'constructions'):  https://communityreading.org/jsxgraph/playground/?script=X9B4ZQK77   It uses a TypeScript wrapper, so if you convert to plain JavaScript you must change the calls like TSX.line(...) to traditional board.create('line'...)

If you are just starting, you probably will find that construction encouraging, but not helpful.   A better way is to invest a half-day learning and playing with JSXGraph.  Here is a pretty good manual:  https://ipesek.github.io/jsxgraphbook/

Let us know how you progress with your project!

Tom

DANIEL MURUNGA

unread,
Jan 7, 2025, 11:47:51 PMJan 7
to JSXGraph

Hi Tom,

Thanks for the resources! The 2D construction is a helpful starting point, and I'll definitely take a look at the JSXGraph manual you linked. I'll keep you updated on my progress and let you know if I have any questions.

Thanks again for your help!

Best regards,

 Murunga

Reply all
Reply to author
Forward
0 new messages