News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Extrusion bug

Started by Dr PR, September 10, 2007, 02:11:39 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dr PR

DesignCAD user since 1987

Rob S


I can confirm this bug - and I thought it was only me.

Every time I try extrude along a curve, the extrusion appears on the opposite side of the curve as my template shape.

I usually just stick it onto the opposite side, and try again, but one should not have to do that!!
User since forever

support

There is a button at the top of the info box to reverse the point order in a  selected object. Have you tried using the info box to reverse the point order of the curve? That should cause the extrusion to work in the method you are wanting.

prl

#3
Good post Dr.  It's been a while since I tried to "get to the bottom" of this but it came down to a point order direction of the "follow me" curve and some sort of clockwise/counterclockwise/right hand/left hand convention.

If I'm not mistaken I'm fairly sure I complained about it in the old forum or testing forums, but then again, I do that so frequently maybe I was just thinking it.

Edit:  I searched the old forum and found a few topics about this.  Probably worth reading.

http://forums.upperspace.com/topic.asp?TOPIC_ID=3536
http://forums.upperspace.com/topic.asp?TOPIC_ID=3348





Bob P

Yes.  Apparently the extrusion works correctly if the generating line's first point is coincident with the curve to be extruded.

Dr PR

Satori!

I always assumed that the point order for the extrusion was determined by the order in which I set the points while executing the command. That is essentially what the Manual tells you to do.

Thanks!
DesignCAD user since 1987

Dr PR

OK, I read the earlier forum posts, and I think I understand the problem, and I am a bit miffed. It represents a more fundamental problem permeating DesignCAD design. Why (logically) should the order if the points in a line have any effect?

In Extrude Along a Curve with variable scale we set a series of points. This has to determine the extrusion order because the associated scale factors define what the shape should be - you can't just scramble the point order. Since the command point order is unambiguously defined, what the **** does the creation order of points in the line have to do with anything!?

In a simple extrusion, with no variable scale, if you set the object's handle at one end of the curve it seems pretty obvious that the extrusion should proceed from there to the more distant end of the curve, regardless of the creation order of the points in the curve. Again, what the **** does the creation order of points in the line have to do with anything!?

Finally, to fully vent my spleen, this point order mess if the cause of a lot of problems with other commands. Surface connect can do some pretty wierd things, even though the relative association of the lines is obvious. Again, "point order" is the cause of the problem.

I have been using DesignCAD for about 20 years, and NEVER have I seen anything in the Manual telling us to consider the creation order of the points in lines. Not once have I seen anything about "reversing point order." I can't begin to estimate the number of hours this nonsense has cost me!

The order of creation of the points in a line, curve, plane - anything - should have no influence upon the operation of commands. Period!
DesignCAD user since 1987

Rob S


I just tried this again in V18

I drew a line consisting of several points.

Then, starting on the starting point of said line, i drew a closed shape consisting of several segments.

Important point - both starting points were the same.

I extruded the shape along the "curve" being in this case a multi-segmented line.

The extrusion occurred on the opposite side of the line from where I drew the shape.

SO - common starting point does not fix the problem.

Furthermore, I reversed the order of the points in both objects both ways ( four combinations) and all of them extruded on the opposite side of the line.

So, I say Point order has nothing to do with it.  The problem lies elswhere
User since forever

prl

Quote from: Rob Schippers on September 10, 2007, 08:06:58 PM
So, I say Point order has nothing to do with it.  The problem lies elswhere

I don't claim to have the answer, but point order does affect things. Draw a 2d profile and a follow-me line and try this code.  I used the door frame sample in the old posts. I get four different sizes and/or positions of the door frame.

'Program: eac_test.d3m (extrude along curve)

setpoint "set a point on the profile. This point will also be sweep location", 1
pointval x1,y1,z1, 1
sys(1)=0

setpoint "set a point on the follow-me curve.", 1
pointval x2,y2,z2, 1
sys(1)=0

'         Profile      follow-me
'Case 1   as-is        as-is '
'first select profile
>pointselect
{
<pointxyz [x1,y1,z1]
}

>extrudealongcurve
{
<type 0
<orientation 5
<pointxyz [x2,y2,z2]
}
gosub isok


'Case 2   reverse        as-is '
'first select profile
>pointselect
{
<pointxyz [x1,y1,z1]
}

>reversepoints
{
}

>extrudealongcurve
{
<type 0
<orientation 5
<pointxyz [x2,y2,z2]
}
gosub isok



'Case 3   reverse        reverse'
'select path and reverse points'
sys(80)= 0
>pointselect
{
<pointxyz [x2,y2,z2]
}
>reversepoints
{
}
sys(80)=0

'again select profile, note point order is still reversed
>pointselect
{
<pointxyz [x1,y1,z1]
}

>extrudealongcurve
{
<type 0
<orientation 5
<pointxyz [x2,y2,z2]
}
gosub isok



'Case 4   as-is        reverse'
'again select profile, reverse so as to get back original point order'
>pointselect
{
<pointxyz [x1,y1,z1]
}

>reversepoints
{
}

>extrudealongcurve
{
<type 0
<orientation 5
<pointxyz [x2,y2,z2]
}
gosub isok

regen
end


isok:
regen
Sys(1027) = 4
message "Is extrusion correct?"
if sys(1028) = 6 then
   end
else
  >eraselast
  {
  }
endif
return