Skip to main content
1-Visitor
May 19, 2016
Solved

Sawtooth Wave Curve on a Cylinder Using Curve From Equation

  • May 19, 2016
  • 2 replies
  • 2197 views

Hello,

 

I'm attempting to create a sawtooth wave curve that is on a cylinder using the Curve:From Equation feature.  This requires the use of the floor() function which does not seem to work properly for some reason.  My equation is as below:

 

R = Constant Parameter equal to the cylinder OD

THETA = 360*t

z = .125*((t/20*360)-floor(t/20*360))

 

Z should give me an oscillating sawtooth wave of amplitude .125 with 20 total oscillations along the length of the curve if I am understanding it properly.  However no curve appears and the feature fails when attempting to build.  Even when I set the equation to z = floor(1) (which should give me a circle at z = 1) I get a failed curve.  I'm not sure what the issue is and why floor() seems to fail the feature.  In the parameters section underneath the the input window it will even list the value of Z as 1 when inputting floor(1) and the feature still fails.  Is there a setting that is the problem possibly? 

 

Thanks,

Joseph Seymour


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
Best answer by kdirth

I get a message saying "floor" cannot be used in equations.  I would say you are out of luck with that method.  I would suggest making one ramp and patterning it about the axis.  Make the backside of the tooth and pattern.  Then create a single copy of all of the curves.Capture.JPG

2 replies

kdirth
kdirth21-Topaz IAnswer
21-Topaz I
May 19, 2016

I get a message saying "floor" cannot be used in equations.  I would say you are out of luck with that method.  I would suggest making one ramp and patterning it about the axis.  Make the backside of the tooth and pattern.  Then create a single copy of all of the curves.Capture.JPG

There is always more to learn.
jseymour1-VisitorAuthor
1-Visitor
May 19, 2016

That's unfortunate, thanks for your help.