SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Modeling / Modeling / probleme avec "LOFT"
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 21-06-2008, 03:55 AM   #1
darkcyber
Registered User
 
Join Date: Jun 2008
Location: falling_darkness@msn.com
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy probleme avec "LOFT"

bonjour.

j'utilise ce code MEL:


global vector $OM,$T,$B,$N,$P;

proc CreerVecteur(float $a,float $b,float $r,float $t,float $s,int $j)
{
global vector $OM,$T,$B,$N,$P;
float $c = sqrt($a * $a + $b * $b);

$OM = << $a * cos( $t ), $b * $t, $a * sin( $t )>>;
$T = << -$a/$c*sin($t) , $b/$c , $a/$c * cos($t) >>;
$N = << -cos( $t ), 0, - sin( $t )>>;
$B = ( -1 / $c) * << $b * sin( $t ), $a, -$b * cos($t)>>;
$P = $OM + $r * (cos($s + 10 * $j ) * $N + sin($s + 10 * $j ) * $B );
}


proc CreerCercle(int $t,float $pas, float $rayonCentral)
{
global vector $OM,$T,$B,$N,$P;
circle -nr ($T.x) ($T.y) ($T.z) -r 0.2;
move -r ($P.x) ($P.y) ($P.z);
}


proc dessine(string $nom, int $ray_central )
{
float $i;
int $nbre_solenoide;
int $nmax = 5;
float $nbre_tours = 2;
float $nbre_pts_tour = 50;
float $PI = 3.141519;
$nbre_solenoide=1;

for ($i=0 ; $i < $nbre_tours*360 ; $i+=360.0/$nbre_pts_tour)
{
float $angle_central = $i * 2 * $PI / 360;
float $angle_solenoide = $i * 2 * $PI / 360;
float $pas=1.5;
float $rayon= 1.5;
CreerVecteur($ray_central,$pas,$rayon,$angle_centr al,$angle_solenoide,$nbre_solenoide);
CreerCercle($angle_central,$pas,$ray_central);
};


};

proc dessiner()
{
dessine("SDRD",15) ;
};


dessiner();





**********************************
ce code me donne une spirale, et quand je sélectionne tous les cercles,et j'applique LOFT, dans précisément 2 endroits à chaque tour, j'obtient une spirale applatie (rayon nul)! pour remedier a ça j'ai essayé de séléctionner quelques cercles et de leur faire subir un inversement de sens, mais ca marche toujours pas.
svp quelqu'un pour aider?
merci

Last edited by darkcyber : 21-06-2008 at 04:11 AM.
darkcyber is offline   Reply With Quote
Old 21-06-2008, 04:20 AM   #2
mastone
Maniacal boy king of Babylon
 
mastone's Avatar
 
Join Date: Aug 2005
Location: the netherlands
Posts: 1,605
Thanks: 1
Thanked 59 Times in 58 Posts
Default

ENGLISH!!!!!!!!!Sil vous plait LOL
mastone is offline   Reply With Quote
Old 21-06-2008, 11:04 AM   #3
Acid44
Registered User
 
Acid44's Avatar
 
Join Date: Sep 2006
Location: Toronto, Ontario, Canada
Posts: 2,639
Thanks: 12
Thanked 186 Times in 179 Posts
Default

ENGLISH HERE:

this code gives me a spiral, and when I select all the circles, and j' applies LOFT, in precisely 2 places with each turn, j' a spiral applatie obtains (null ray)! to cure that j' has; tried to select some circles and to make them undergo conversely direction, but Ca still does not go. please quelqu' to help? thank you

please note some couldn't be translated by opera...

Acid44 is offline   Reply With Quote
Old 21-06-2008, 05:38 PM   #4
darkcyber
Registered User
 
Join Date: Jun 2008
Location: falling_darkness@msn.com
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

LOL
Really sorry for having wrote that in French, and thanks a lot for you acid44

here is what i wanted to say:
the code gives me circles which are disposed in a specific way, when i select all of the them and apply LOFT, it gives me a spiral. until nnow everything is OK but the problem is that in this spiral, and exactly in 2 places of each turn, the spiral gets a null ray..
i didn't knew what was the problem so i tried to select some of the circles (which i thought to be causing the problem) and applied "reverse curve direction", but the problem is still there!

i don't really know how to do about
so if someone is able to help,i'll be very thankful
[excuse my english please] :blush:
darkcyber is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.