How to draw a generic cylinder with arbitrary orientation
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mohammad Reza
le 4 Déc 2023
Modifié(e) : Mohammad Reza
le 24 Déc 2023
Hi,
How to draw a generic cylinder, we have its radius, length, position of center of mass ( or bottom face center) and its orientation (using a unit vector, for example 0,0,1 for z-axis ). Any help would be appreciated.
Regards
Reza
Réponse acceptée
Matt J
le 4 Déc 2023
Modifié(e) : Matt J
le 4 Déc 2023
See this File Exchange download,
[cCenter,cRadius,cHeight,cYawPitch]=...
deal([0 0 0], 2, 10, [45 -30]); %Cylinder parameters
gtCyl=cylindricalFit.groundtruth([],cCenter,cRadius,cHeight,cYawPitch); %Data-less ground truth objects
plot(gtCyl)
1 commentaire
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Report Generator dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
