From owner-freebsd-questions@freebsd.org Sun Aug 27 13:51:18 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6B45CDF0699 for ; Sun, 27 Aug 2017 13:51:18 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-vk0-x229.google.com (mail-vk0-x229.google.com [IPv6:2607:f8b0:400c:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 38039727C5 for ; Sun, 27 Aug 2017 13:51:18 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: by mail-vk0-x229.google.com with SMTP id s199so9976360vke.1 for ; Sun, 27 Aug 2017 06:51:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Df6BEthrmtedWu6gPAyLjSCc0K9pEDzUU24xDbxJED8=; b=T/uN/1iZz4s2Ov/YxZGg24wXC3OmwSozh8GPUqrPTryRer6TqVIW1XNwfS1FPQMFt/ h/MtUa+5MIGnIRJYpFAfrHV7jz52vjsIcbtSbgNlsDh9XwmlEF/Ny+qBWHGlDxyMfwQh AheqZByCypmOAdCoWo5zJA5W8/9kgelkeok/+Wl2KayEycNNYQIooYdV7wqQYp7ybHQe 6U9EXYMlcheymP+AF7tusPbaP4eUvaBmgpozmzRAMufRcpIdLnnGyV0f49IxOi+yGUih 3I0pOWEOuncRPTXeh3Xz1VhhqvE5xcWBhmZWAc7/XGxTGQbFxTkhJOALIZvZVI9ro4CU gcEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Df6BEthrmtedWu6gPAyLjSCc0K9pEDzUU24xDbxJED8=; b=E5bGXBhyUSJN1sggrPI/3FF+N/4DATctWD8Uy0VAFjmpGCdinW1bpbTvl6PmZKTwvc izwKdnuhcmGWAl5PHIjLv07ew4IBh7MJYsuME8zLKiPFfpBD7matDIAoAssE05qlH7Yb 7LXc8xPsd6IG7LKBvmhBl8dotf0ApkCvfZDXAZ8ZQy9Rokw0VkzDQJbqF/JitNz5rafq 76zgXwMhovEkJ/CGs2g+e+nWi3vtI68QNsNsS1IAC9g1m1EbynYk2ItwQVvFrw3GyLQB 3kEsXjEfDPsST3VHs4jFcoQfccuPA4WvZ+oJFGsDBN4yeZu3I/vtl91VH78acnvoE04W tUeA== X-Gm-Message-State: AHYfb5iuKPZSRHmpex7mK8fCBgWAm2gwU3STM31ytQkl51ZzEj/qPNYO xpxruOFkmZ1S9QGNijFJL0P7T+ltmw== X-Received: by 10.31.108.215 with SMTP id j84mr2457818vki.190.1503841876905; Sun, 27 Aug 2017 06:51:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.33.199 with HTTP; Sun, 27 Aug 2017 06:51:16 -0700 (PDT) From: Antonio Olivares Date: Sun, 27 Aug 2017 08:51:16 -0500 Message-ID: Subject: Create a truncated icosahedron with gnuplot or metapost To: FreeBSD Questions Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2017 13:51:18 -0000 Dear freebsd-users, In looking for a way to draw a royalty free soccer ball with open source software like gnuplot or metapost, I have found a promising page http://math.lbl.gov/voro++/examples/platonic/ I have to run the programs there, but the problem becomes how can we shade the pentagons in black. We can create a sphere in gnuplot, but to change the faces into pentagons and hexagons? http://soukoreff.com/gnuplot/ I have found a nice page that uses java to draw a soccerball http://www.hoist-point.com/soccerball.htm If somehow the github code can be converted to metapost?, or generated to get the points and then get the shading correctly. I hope someone can help. I have also looked into metapost extensions by Anthony Phan m3D package http://www-math.univ-poitiers.fr/~phan/m3Dplain.html And unfortunately I do not know enough of metapost coding, other than copying examples and run them on my machines. Is there a nice idiot proof way of drawing a soccerball or a truncated icosahedron with gnuplot or metapost? If anyone can help/advice/suggest please share your thoughts. Best Regards, Antonio