Author Topic: slice 1 solid multiple times  (Read 2191 times)

0 Members and 1 Guest are viewing this topic.

ArgV

  • Guest
slice 1 solid multiple times
« on: January 13, 2010, 04:59:12 PM »
I'm having trouble here.

I want to slice all four edges off the rectangles I am making, however, to use the vla-slidesolid method, you need a solid object. Thats fine at first, but once you slice a solid, it becomes two objects. It seems like the original solid, instead of just updating, creates and entirely new object. Is there a way to keep the main solid as your "object"?

thanks,

ArgV

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: slice 1 solid multiple times
« Reply #1 on: January 13, 2010, 05:00:55 PM »
I've never used that method, but if what you are saying is correct, why not just use the newly created objects as your "object" as you say?

ArgV

  • Guest
Re: slice 1 solid multiple times
« Reply #2 on: January 15, 2010, 04:26:49 PM »
I've never used that method, but if what you are saying is correct, why not just use the newly created objects as your "object" as you say?

That works the first time, but if I do that a second time, then it slices the small object, not the big one.

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: slice 1 solid multiple times
« Reply #3 on: January 15, 2010, 05:29:06 PM »
I've never used that method, but if what you are saying is correct, why not just use the newly created objects as your "object" as you say?

That works the first time, but if I do that a second time, then it slices the small object, not the big one.

Perhaps test the objects for which is bigger?

SEANT

  • Bull Frog
  • Posts: 345
Re: slice 1 solid multiple times
« Reply #4 on: January 16, 2010, 02:45:18 AM »
The side of a sliced solid left as the original is the portion on the positive side of the plane (the negative side would be a new object).  The positive side is determined in the same way the positive Z direction is determined in the UCS – 3point.  These procedures follow the “Right Hand Rule” for vector cross product where “a” is the point1 to point2 , “b” is point2 to point3.

http://images.google.com/imgres?imgurl=http://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Right_hand_rule_cross_product.svg/507px-Right_hand_rule_cross_product.svg.png&imgrefurl=http://commons.wikimedia.org/wiki/File:Right_hand_rule_cross_product.svg&usg=__RJzt3VKNmBmKNrGoF7ycn7wLaE8=&h=459&w=507&sz=35&hl=en&start=16&um=1&tbnid=mqmh9HNF9WO8eM:&tbnh=119&tbnw=131&prev=/images%3Fq%3Dright%2Bhand%2Brules%26hl%3Den%26sa%3DX%26um%3D1
Sean Tessier
AutoCAD 2016 Mechanical

ArgV

  • Guest
Re: slice 1 solid multiple times
« Reply #5 on: January 25, 2010, 03:14:42 PM »
The side of a sliced solid left as the original is the portion on the positive side of the plane (the negative side would be a new object).  The positive side is determined in the same way the positive Z direction is determined in the UCS – 3point.  These procedures follow the “Right Hand Rule” for vector cross product where “a” is the point1 to point2 , “b” is point2 to point3.

http://images.google.com/imgres?imgurl=http://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Right_hand_rule_cross_product.svg/507px-Right_hand_rule_cross_product.svg.png&imgrefurl=http://commons.wikimedia.org/wiki/File:Right_hand_rule_cross_product.svg&usg=__RJzt3VKNmBmKNrGoF7ycn7wLaE8=&h=459&w=507&sz=35&hl=en&start=16&um=1&tbnid=mqmh9HNF9WO8eM:&tbnh=119&tbnw=131&prev=/images%3Fq%3Dright%2Bhand%2Brules%26hl%3Den%26sa%3DX%26um%3D1


Ok, so how to I tell my program to always slice the "big" solid?

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: slice 1 solid multiple times
« Reply #6 on: January 25, 2010, 03:24:08 PM »
This will help you:

Code: [Select]
;; Vector Cross Product (Lee Mac)
;; Args: a,b Vectors

(defun cross (a b)
  (list (- (* (cadr a)  (caddr b))
           (* (cadr b)  (caddr a)))
        (- (* (car  b)  (caddr a))
           (* (car  a)  (caddr b)))
        (- (* (car  a)  (cadr  b))
           (* (car  b)  (cadr  a)))))

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: slice 1 solid multiple times
« Reply #7 on: January 25, 2010, 03:53:21 PM »
Alternatively, you could just compare the volumes...  ;-)

ArgV

  • Guest
Re: slice 1 solid multiple times
« Reply #8 on: January 26, 2010, 12:00:08 PM »
Alternatively, you could just compare the volumes...  ;-)

well, in this case it's easier just to make the big solid smaller and just "add" the edging to the sides afterwards, rather than slicing it. Hmm.. well thank you!