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.

Missing tick marks

Started by Dr PR, January 30, 2014, 10:12:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

V23.0
Win 7 Pro 64

Here is an old bug that seems to still be with us.

In the attached image notice the tick marks along the blue horizontal (more or less) lines. There are 17 marks on the top 4 lines,  but you only see 16 marks on the bottom 3 lines.

However, there are 17 marks on all 7 lines. On the right side of the bottom 3 lines the 17th tick mark is positioned at the same place as the 16th mark.

I have attached the drawing so you can verify this for yourselves. NOTE: This isn't the entire drawing where the problem occurred - I copied and pasted these lines into a new drawing.

Can someone erase the tick marks and repeat the process? Do you get double marks at the next to last position on any of the lines? If so, the drawing can be used to track down and fix the bug.

****

The original drawing isn't very large, and I just started it yesterday and haven't done anything special or odd. The horizontal curves are simple 17 point curves. What I was trying to do was redraw them with all points evenly spaced along the curves. The curves will be the template curves for a "Surface Connect" operation.

Phil
DesignCAD user since 1987

magic

Hi Phil,

I get the same result you've got, except I'm missing tick marks on the two middle curves.
It's a kind of magic!




minstrel

#2
Quote from: Dr PR on January 30, 2014, 10:12:59 PM
Here is an old bug that seems to still be with us.

Confirmed.  Even re-drew a new set of curves perchance your drawing was bug-ered up; it was not.

Where the bug appears seems dependent upon axis/plane in which the curves are drawn.

Edit:  It should be noted, however, should the 'curves' be converted to 'vector' prior to placing the 'tick's' the issue is resolved.

prl

#3
Phil, the errors in the tickmark program are noted.  But you don't really need the tickmark command anyway. For what you are doing, manually moving the curve points to the tickmark locations using point select mode, you can save yourself some time and use the segit.d3m routine.  In your sample file you want 16 segments.  Also the segit.d3m generally makes a vector curve but your can easily change that to a "curve" curve if take the vector curve and use the line to curve command under edit.

http://forum.designcad.com/index.php?topic=4606.msg28241#msg28241

Graphic belows show the results of segit.d3m. In this case, I put them on layer 13 in yellow. I've converted them (the segit curves) from vector curves to "curve" curves using the LinetoCurve command. Note your original curves are still there (on layer 6 but turned off).

Dr PR

prl,

Thanks. Your segit.d3m macro works nicely.

In my current project I will be creating grids (Surface Connect) for multiple surfaces that intersect each other. I have found that it is very important to control point numbers and positions on adjacent grids to be sure to end up with "leakless" solids.
Each grid must have the same number of points/sections along the common edge, and the points must be in exactly the same positions.

Also, curves tend to have fewer wrinkles if the segments on different length template lines are proportioned properly. That is the reason for generating curves with the same number of equal length segments to serve as template lines across the grid surface.

Your macro will help with both of these problems.

Phil

NOTE: Some improvements would be:

1. Use the original layer where the original curve was.
2. Generate a vector or curve.
3. Select a different layer for the new line/curve.
DesignCAD user since 1987

prl

#5
Quote from: Dr PR on January 31, 2014, 10:49:16 AM
I have found that it is very important to control point numbers and positions on adjacent grids to be sure to end up with "leakless" solids.

I agree.  Controlling the number of points DesignCAD generates and how they are spaced was the motivation for the code.  In order to reduce the number of faces (planes), I use as few (points) as possible. SketchUp has a neat feature of letting one model curved surfaces with very few facets and then simply telling the program to smooth out the selected surface visually.  This can be done per surface. It reduces the total facet/point load for a model.  This would be useful addition to DesignCAD.

prl

#6
Quote from: Dr PR on January 31, 2014, 10:49:16 AM
NOTE: Some improvements would be:

1. Use the original layer where the original curve was.
2. Generate a vector or curve.
3. Select a different layer for the new line/curve.

Phil,  I massaged the code to put it into a loop so you can continue selecting curves. Added the other requests too.  Not sure if it is 100% but on your sample file it seems to work.  If it fails, let me know how and where.

http://forum.designcad.com/index.php?topic=5368

JJG

Quote from: prl on January 31, 2014, 01:21:42 PM
SketchUp has a neat feature of letting one model curved surfaces with very few facets and then simply telling the program to smooth out the selected surface visually.  This can be done per surface. It reduces the total facet/point load for a model.  This would be useful addition to DesignCAD.

Yes !!! I vote for. To be add in Feature Requests !

Dr PR

prl,

Thanks! Your original macro has come in very handy - this should be even better.

Phil
DesignCAD user since 1987

prl

#9
Quote from: JJG on February 01, 2014, 10:06:28 AM
Yes !!! I vote for. To be add in Feature Requests !

Here is an example of how I use Segit.d3m when sending things to SketchUP.  In the SketchUP graphics below, the bottom model in each graphic shows how DesignCAD creates way too many faces to model the curved corner.  (Keep in mind, DesignCAD created the models, I'm just importing into SketchUp for rendering work). I reduce the point count so I get 8 segments to the corner.  That is shown in the top model.  I then tell SketchUP to smooth the corner faces.  First the upper one (the coarse one, graphic 2), then the lower one (graphic 3).  Both are visually the same.  The last graphic is where I tell SketchUP to show me the hidden geometry.  Obviously the top model has much less data associated with it.  This can add up in large models.

prl

And when applying materials, no difference. Hence in SketchUP, one can model surfaces crudely.

JJG

Thanks Prl for these explanations : do you use SketchUp-pro or free version ?

prl

#12
Quote from: JJG on February 02, 2014, 08:55:24 AM
Thanks Prl for these explanations : do you use SketchUp-pro or free version ?

I have and use both.