TheSwamp

CAD Forums => CAD General => Topic started by: Andrea on November 02, 2005, 09:25:46 AM

Title: 3Doffset and 3Dpoly joint ??
Post by: Andrea on November 02, 2005, 09:25:46 AM
does anyone know if thers is any command to....

1) Joint 3Dpoly with line polyline or 3Dpoly ?

2) Offset with 3d point ??

thanks.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Swift on November 02, 2005, 07:53:27 PM
1. Not by default but can be written

2. that is a tricky question, yes, it is possible, yes, in a way it is easy but in another it is extremely difficult. It has to do with the fact that each segment of a 3d polyline has the ability to fall in a different plane. Think of a lwpoly it always has the same elevation thoughout its length so the segments are offset only in the x-yplane and the same z is maintained in the offset entity. To offset a unconstrained 3dpolyline (any 3dpolyline that I can draw) would be a feat of linear algebra and may or not be possible, depending on what you are wanting to do. HOWEVER, if all you want to do is move the 3dpolyline in the x-y plane and maintain the same z for each vertex then that is fairly easy.

 I need more information.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Andrea on November 03, 2005, 08:53:32 AM
oh... :?

Ok....so let'S write a little routine...

I have compared both...LWPOLYLINE and POLYLINE
there is the result..

PLINE
((-1 . <Nom d'entité: 7ef5bfa8>) (0 . "LWPOLYLINE") (330 .
<Nom d'entité: 7ef5bcf8>) (5 . "F5") (100 . "AcDbEntity") (67 . 0) (410 .
"Model") (8 . "0") (100 . "AcDbPolyline") (90 . 4) (70 . 0) (43 . 0.0) (38 .
0.0) (39 . 0.0) (10 129.383 122.43) (40 . 0.0) (41 . 0.0) (42 . 0.0) (10
295.489 185.299) (40 . 0.0) (41 . 0.0) (42 . 0.0) (10 368.576 129.957) (40 .
0.0) (41 . 0.0) (42 . 0.0) (10 421.73 188.398) (40 . 0.0) (41 . 0.0) (42 . 0.0)
(210 0.0 0.0 1.0))

3DPOLY
Choix de l'objet: ((-1 . <Nom d'entité: 7ef5bfb0>) (0 . "POLYLINE") (330 . <Nom
d'entité: 7ef5bcf8>) (5 . "F6") (100 . "AcDbEntity") (67 . 0) (410 . "Model")
(8 . "0") (100 . "AcDb3dPolyline") (66 . 1) (10 0.0 0.0 0.0) (70 . 8) (40 .
0.0) (41 . 0.0) (210 0.0 0.0 1.0) (71 . 0) (72 . 0) (73 . 0) (74 . 0) (75 . 0))


Now with the 3DPOLY I can not see all the endpoints of each segment...
how can I get it ?

I would like to do this..
1) select the entity
2) filter if it'S a POLYLINE or LWPOLYLINE or LINE
2) Get all the end points and put in a list
3) delete the selected entity
4) and remake it with LWPOLYLINE with all the points in the created list.

this is the way it seem would like to do.
But if you have better idea...or better suggestion...i'll take it. ^-^
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Bob Wahr on November 03, 2005, 11:22:27 AM
Now with the 3DPOLY I can not see all the endpoints of each segment...
how can I get it ?
they are exposed in VBA although I know you don't care, I would assume to lisp as well.

4) and remake it with LWPOLYLINE with all the points in the created list.
If that's what you want, assuming you don't have a lot of them, this will be a lot less headache and will get it done:

EXPLODE
<pick a 3dpolyline>
-CHANGE
P

E
0

PEDIT
L
J
P
<select other lines, polylines, lwpolylines as desired>

and you have done it.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Andrea on November 03, 2005, 11:25:54 AM
Ok Bob..

good suggestion....but do you think this is the only way ? :?
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Bob Wahr on November 03, 2005, 11:31:55 AM
No, not the only way.  Like I said, if you have a lot of them, it might be worth writing a program.  if not, it's a pretty big hassle.  Have to figure out which way each thing is running, compare coordinates, figure out what if any fuzz factor you want to apply.  Definitely not a 30 minute program.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Andrea on November 03, 2005, 01:28:46 PM
Ok thanks...

Last question....:

What exactly the difference between 3DPOLY and simple PLINE (excluding the width) ?
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Bob Wahr on November 03, 2005, 01:39:38 PM
THE SHORTEST MOST BASIC ANSWER (sry) is that polylines (light or heavy) have a consistant Z relative to the plane they are in or to put it another way, they are flat.  3dpolylines can have a different relative Z at each vertex.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: MP on November 03, 2005, 02:13:51 PM
Just to add what Bob said, I believe they are also ucs agnostic even tho they have a 210 group.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Andrea on November 03, 2005, 06:01:10 PM
 :ugly:
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Bob Wahr on November 03, 2005, 06:02:30 PM
Are you making fun of the fact that my left eye is smaller than my right?  See if I ever try to help you again.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: MP on November 03, 2005, 06:04:51 PM
Alfred, is that you?
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Bob Wahr on November 03, 2005, 06:05:32 PM
I'm Melvin the Mop Boy.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Kerry on November 03, 2005, 06:08:57 PM
It's time to test the water.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: LE on November 03, 2005, 06:20:57 PM
Is there a drawing that I can run some tests?.....

Also:
There are plenty of information about geometry out there in hyper-space, look into patterns, sequences, paths, algorithms... all about analytic geometry, graphics, etc..... why are you trying to use or focus on what AutoCAD has built-in?

There are forms to follow a pattern or path.... but is not simple or easy to do.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: MP on November 03, 2005, 06:34:16 PM
True, but a dark roast has less caffeine.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: LE on November 03, 2005, 06:47:44 PM
True, but a dark roast has less caffeine.

?

My previous post was for the OP.....
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: LE on November 03, 2005, 09:41:28 PM
EXPLODE
<pick a 3dpolyline>
-CHANGE
P

E
0

PEDIT
L
J
P
<select other lines, polylines, lwpolylines as desired>

and you have done it.

This is the small test I did:

Code: [Select]
Command: -ch
CHANGE
Select objects: Specify opposite corner: 2 found

Select objects:
Specify change point or [Properties]: p

Enter property to change [Color/Elev/LAyer/LType/ltScale/LWeight/Thickness]: e

Specify new elevation <varies>: 0

Enter property to change [Color/Elev/LAyer/LType/ltScale/LWeight/Thickness]:

Cannot change elevation of objects with differing Z coordinates.
Command: *Cancel*
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Bob Wahr on November 04, 2005, 10:26:04 AM
EXPLODE
<pick a 3dpolyline>
-CHANGE
P

E
0

PEDIT
L
J
P
<select other lines, polylines, lwpolylines as desired>

and you have done it.

This is the small test I did:

Code: [Select]
Command: -ch
CHANGE
Select objects: Specify opposite corner: 2 found

Select objects:
Specify change point or [Properties]: p

Enter property to change [Color/Elev/LAyer/LType/ltScale/LWeight/Thickness]: e

Specify new elevation <varies>: 0

Enter property to change [Color/Elev/LAyer/LType/ltScale/LWeight/Thickness]:

Cannot change elevation of objects with differing Z coordinates.
Command: *Cancel*
doh!  My bad.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Bob Wahr on November 04, 2005, 10:27:12 AM
EXPLODE
FLATTEN
<pick>

PEDIT
L
J
P
<select other lines, polylines, lwpolylines as desired>

Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Serge J. Gianolla on November 04, 2005, 05:38:56 PM
Ciao Andrea,
For 3D Offset check Jun 03 here:
http://new.cadalyst.com/code/
Have not tried it!
By the way, tu as ecrit 3D Poly joint, un joint c'est ce qu'on fume :-D but maybe that's what you were after?
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: deegeecees on November 04, 2005, 05:55:19 PM
Ciao Andrea,
For 3D Offset check Jun 03 here:
http://new.cadalyst.com/code/
Have not tried it!
By the way, tu as ecrit 3D Poly joint, un joint c'est ce qu'on fume :-D but maybe that's what you were after?

Hey now, I don't think she's a hop head.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: LE on November 04, 2005, 06:02:01 PM
tu as ecrit 3D Poly joint, un joint c'est ce qu'on fume

He sounds like a serious person.... I don't think so.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Kerry on November 04, 2005, 06:02:29 PM
Who is "she" deeg' ?

.. and I think Serge was joshing about the smoke.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: deegeecees on November 04, 2005, 06:05:07 PM
Who is "she" deeg' ?

.. and I think Serge was joshing about the smoke.

Oooooops, sorry Andrea. I forgot.  :ugly: Andrea is a common name in the U.S. for females. No offense meant towards you whatsoever.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: LE on November 04, 2005, 06:09:14 PM
Same when using:

Louis

That is not right....   :pissed: ... it is:

Luis

The first one is like the one reporter that works in the Daily Planet with Clark Kent.....

 :lmao:


Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Bob Wahr on November 04, 2005, 06:13:09 PM
not quite.  Ms. Lane was Lois, not Louis.  Louis is either a saint or a trumpet player.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: LE on November 04, 2005, 06:19:20 PM
not quite.  Ms. Lane was Lois, not Louis.  Louis is either a saint or a trumpet player.

He he.....

1. Not saint et-al
2. I like "Hello dolly"... do not have that talent....
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Bob Wahr on November 04, 2005, 06:23:17 PM
1. Not saint et-al
Sounded nicer than dirty grimy town with absolutely nothing going for it except half a McDonalds sign spanning an oil slick though.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Serge J. Gianolla on November 04, 2005, 06:30:22 PM
First names are deceptive from country to country. It is only recently i realised Kerry Brown was a guy! [Sorry Kerry - I was more thinking along the line of KAK!] In italian Michele is for males, but a lot of english girls are using same spelling, not double L for their names!
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Kerry on November 04, 2005, 06:32:46 PM
kerry
kerri
kerie

blame the Irish, Serge :)
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Kerry on November 04, 2005, 06:35:38 PM
I'spose this may have helped    :lol:


[edit:]
or perhaps not :)
<link removed>
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: LE on November 04, 2005, 06:37:29 PM
Is that you Kerry?
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Kerry on November 04, 2005, 06:38:41 PM
.. very old photo Luis  :) :lol:
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Bob Wahr on November 04, 2005, 06:41:34 PM
I'm thinking that somewhere in the world exists a picture of Kerry that isn't from an old passport and I wonder if I will ever see one.  Given that this is the one that always appears, probably not.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: LE on November 04, 2005, 06:42:48 PM
.. very old photo Luis  :) :lol:

Nice to meet you sir!
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Kerry on November 04, 2005, 06:46:26 PM
Someone who can should probably split this thread.

Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Mark on November 04, 2005, 07:49:23 PM
I'll take care of it later tonight. The thread that is.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: MP on November 04, 2005, 07:54:27 PM
Very nice to make your acquaintance Mr. Brown.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Kerry on November 04, 2005, 08:01:18 PM
That was when I had hair worth growing long Michael.

<sigh.wav>
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: MP on November 04, 2005, 08:10:49 PM
Didn't seem to affect your personality, so still very pleased to meet you.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Kerry on November 05, 2005, 09:30:53 PM
....  [Sorry Kerry - I was more thinking along the line of KAK!] ....

 :)

for the uninitiated :-
Quote
Kerri-Anne, host of the top-rating ‘Mornings with Kerri-Anne’ show on Channel 9, has been a part of daily life for Australian television viewers for more than 30 years.

edit:
modified to suit the sensibilities of those possibly upset by the politically incorrect : 
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Andrea on November 07, 2005, 12:58:09 PM
sorry guys....verry interesting..

but is the swamp a chat room ?

 :?
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Bob Wahr on November 07, 2005, 02:03:06 PM
perhaps not but seeing as people asked you questions pertaining to the original topic that you aren't answering, there was no reason for it to not degenerate.
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Andrea on November 07, 2005, 04:54:46 PM
perhaps not but seeing as people asked you questions pertaining to the original topic that you aren't answering, there was no reason for it to not degenerate.

Questions ??...dont see any serious questions here.. sorry   8-)
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Jochen on January 17, 2006, 11:43:51 AM
For PEDIT3D have a look at www.black-cad.de
I'm just finishing the OFFSET3D-problem too.
Regards
Jochen
Title: Re: 3Doffset and 3Dpoly joint ??
Post by: Andrea on January 17, 2006, 05:05:41 PM
Jochen ..

First..welcome to the swamp.
and second....thanks, i'll take a look.

 :wink: