0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

MayaでテニスボールをモデリングするMEL

Posted at

image.png

この動画を参考にMELにしました。

手順

①プラトン立方体をサブディビジョン1で作る
②4頂点を移動
③16エッジを選択し、ベベルエッジ
④サブディビジョンを2回
⑤正規化して球状化の代わりに、スカルプトしてスケールで球状化
⑥エッジ選択で、ダブルクリックのループ選択をして、スケールでへこます。
6は、ラインを見やすくするためのもの。

MEL

polyPlatonic -primitive 1 -subdivisionMode 0 -subdivisions 1 -radius 1 -sphericalInflation 1;
rename "pPlatonic1" "ball";

select -r ball.vtx[13] ball.vtx[15] ;
move -r 0 0 -0.292893 ;
select -r ball.vtx[9] ball.vtx[11] ;
move -r 0 0 0.292893 ;

/*
select -r
ball.e[5] ball.e[7]
ball.e[24] ball.e[39]
ball.e[27] ball.e[37]
ball.e[13] ball.e[22]
ball.e[16] ball.e[20]
ball.e[29] ball.e[35]
ball.e[31] ball.e[32]
ball.e[0] ball.e[11];
*/

polyBevel3 -fraction 0.001 -offsetAsFraction 1 -autoFit 1 -depth 1 -mitering 0 -miterAlong 0 -chamfer 1 -segments 1 -worldSpace 1 -smoothingAngle 30 -subdivideNgons 1 -mergeVertices 1 -mergeVertexTolerance 0.0001 -miteringAngle 180 -angleTolerance 180 -ch 1 ball.e[0] ball.e[5] ball.e[7] ball.e[11] ball.e[13] ball.e[16] ball.e[20] ball.e[22] ball.e[24] ball.e[27] ball.e[29] ball.e[31:32] ball.e[35] ball.e[37] ball.e[39];

polySmooth ball;
polySmooth ball;
sculpt ball;

select -r ball.e[321] ;
select -add ball.e[320:321] ball.e[324:325] ball.e[328:329] ball.e[332:333] ball.e[336:337] ball.e[340:341] ball.e[344:345] ball.e[348:349] ball.e[352:353] ball.e[356:357] ball.e[360:361] ball.e[364:365] ball.e[368:369] ball.e[372:373] ball.e[376:377] ball.e[380:381] ball.e[384:385] ball.e[388:389] ball.e[392:393] ball.e[396:397] ball.e[400:401] ball.e[404:405] ball.e[408:409] ball.e[412:413] ball.e[416:417] ball.e[420:421] ball.e[424:425] ball.e[428:429] ball.e[432:433] ball.e[436:437] ball.e[440:441] ball.e[444:445] ;
scale -r 0 0 0;

3Dプリントすると、ぴったりハマって面白いと思う。

数学的な洞察

長さの決まった線を、おらずに曲げながら球面に添わせる最適解でも、テニスボールは登場する。
※一致するかどうかはわからない。

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?