Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated circle funtion #357

Merged
merged 2 commits into from
Jul 16, 2016
Merged

updated circle funtion #357

merged 2 commits into from
Jul 16, 2016

Conversation

remcmurry
Copy link
Contributor

changed function to relate thickness of drawn cylinder to radius object such that thickness will always be 1/50 of circle diameter, 1/25 of radius. such that the thickness and fact that it is a cylinder is not readily apparent to the casual user.

changed function to relate thickness of drawn cylinder to radius object such that thickness will always be 1/50 of circle diameter, 1/25 of radius. such that the thickness and fact that it is a cylinder is not readily apparent to the casual user.
@@ -246,7 +246,7 @@ DynamicsVisualizer.Scene = Object.extend(DynamicsVisualizer, {
case "Circle":
var geometry = new THREE.CylinderGeometry(object.radius,
object.radius,
0.5,100);
object.radius/25,100);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the line you could enter zero or a higher divisor if you want a thinner disc shape.

@remcmurry
Copy link
Contributor Author

here is a pic of the result, this can be changed to be thinner if we want
image

if we choose to always use zero the two sides have different colors blue and black in my case.
image

image

decided after discussion to use the zero as the default value
@moorepants moorepants merged commit b473f4c into pydy:master Jul 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants