Jump to content
Dhanrajd

Slice command fails with no error

Recommended Posts

Dhanrajd

Hello,

 

I want to slice frustum with plane. I have frustums of various diameters and I slice them at required point slice works fine for most of my frustums, only for particular input diameter it fails and does not give any error. Please find attached dwg file.

 

 

Thanks,

Dhanraj

Slice-Issue.dwg

Edited by Dhanrajd
mistake

Share this post


Link to post
Share on other sites
Dadgad

This is pretty strange. :huh:

I got a non intersecting disclaimer a bunch of times, although that doesn't appear to be correct.

I usually SLICE with a planar Object (the circle in this case), but I could not get that to work.

The quadrant snaps did not seem to want to be picked up, as I tried to use them to define a 3Point slice plane, eventually got it to work that way.

I won't pretend to understand it. :|

 

I just went back into the drawing and tried it again, using the planar Object option and it worked fine, being the one with the pink dots on it.

Odd for sure, wish I could explain it.

fustrum slicing problem.JPG

now planar object works.jpg

Share this post


Link to post
Share on other sites
Dhanrajd

Thanks for reply, but I dint understood it :(.

Actually Plane i am creating with base point as (10,0,0) and X -axis as normal. Or planer geometry Circle is created at center 10,0,0 then it doesn't work. If you slightly move plane or circle from 10,0,0 (even 10.01,0,0) it works fine.

I don't understand why it is not working at particular point .

 

3 point for plane I gave are 10,0,0 - 10,10,0 - and 10,10,10

Share this post


Link to post
Share on other sites
Dadgad

If you have a circle there already, just turn on the QUADRANT osnaps, and select 3 of them with your mouse.

I see no need to enter the 3D coordinates, seems tedious.

 

I am sorry I too find it weird, wish I could explain it to you. :huh:

Share this post


Link to post
Share on other sites
Dhanrajd

Thanks for solution, but it will not help me as I am doing all this through lisp and objectArx so I want to understand reason for failure so that I can modify my program for such cases :huh:

Share this post


Link to post
Share on other sites
Dadgad

That explains why you are using coordinate entries then.

Good luck with it.

Lots of seriously smart forum members, hopefully somebody else will be able to understand and explain it. :)

 

As you seem to be using the circle only to define the cutting plane, why is the center point so critical?

As in your first post you mention specific input diameters?

Share this post


Link to post
Share on other sites
SEANT

How was the frustum created? ObjectARX?

Share this post


Link to post
Share on other sites
Dadgad

Okay, no more fooling around, here comes the A Team! :)

Share this post


Link to post
Share on other sites
SEANT

In this case, I hope the "A" in A Team doesn't mean answers; I don't know what's causing problems either.

 

The GRIP on the cone seams weird. And the cone is mildly elliptical. Still, doesn't seam like that should be a problem.

Share this post


Link to post
Share on other sites
Dhanrajd

Yes , frustum is created by acis modeler api in turn objectArx, and it is elliptical . I have series of elliptical cone and the method works for all only this case is failing and code is very old so I can not simply change the slicing plane coordinates. I will post the input values for frustom.

Share this post


Link to post
Share on other sites
Dhanrajd

Also I am creating frustum at fix co-ordinates so, slicing plane is hard coded at 10,0,0 and x -axis as normal. For all other frustum it works fine

Share this post


Link to post
Share on other sites
SEANT

The 3d Solid modeler seems particularly sensitive to the quirks associated with floating point operation. Would performing the slice routine with scaled geometry, and subsequent re-scale, be an option?

Share this post


Link to post
Share on other sites
Dhanrajd

Thanks SEANT,

This seems to work :thumbsup:

Will check for different inputs :)

Share this post


Link to post
Share on other sites
Dadgad
Would performing the slice routine with scaled geometry, and subsequent re-scale, be an option?

 

Inspirationally devious workaround SEANT!

I knew you'd come up with something. :beer:

Share this post


Link to post
Share on other sites
Dhanrajd

Hi SEANT,

 

As expected scaling works for this diameter but creates same issue for frustum with other diameter, currently I tested for hard coded scaling factor of 10. May be I can try with scaling factor based on diameter. Or is there any setting in AutoCAD where I can define floating point tolerances etc which can affect slice.

Share this post


Link to post
Share on other sites
SEANT

If you expect to be dealing with solids at an architectural scale, I'd suggest scaling by a factor of 1000. Essentially, treating units as Meters instead of millimeters.

 

Part of the problem, as related to floating point operations and 3d solids, is how quickly some of the secondary property values escalate. For instance, run the MASSPROP command on the frustum, and look at the magnitude of some of the returned values. Especially the Principal Moments

Share this post


Link to post
Share on other sites
Dhanrajd

I am working on layout diagrams mostly scale is mm or inch , tried with higher scaling factors like 100000, it works for most of cases but still there are cases which fails :( , As these are just surfaces MASSPROP is not valid.

Share this post


Link to post
Share on other sites
SEANT
. . . . As these are just surfaces MASSPROP is not valid.

 

What are just surfaces?

Share this post


Link to post
Share on other sites
Dhanrajd

as MASSPROP is giving error "No solids or regions selected" I thought these are just surface no solid , but I am wrong the reason for MASSPROP error is different that I will try to find.

Share this post


Link to post
Share on other sites
Dhanrajd
as MASSPROP is giving error "No solids or regions selected" I thought these are just surface no solid , but I am wrong the reason for MASSPROP error is different that I will try to find.

 

 

Could use MASSPROP,

THE VALUES Are

Mass: 49062369.679

Volume: 49062369.679

Bounding box: X: 35418.489 -- 36077.146

Y: 64914.275 -- 65328.765

Z: -250.714 -- 153.000

Centroid: X: 35696.529

Y: 65121.520

Z: -8.768

Moments of inertia: X: 2.081E+17

Y: 6.252E+16

Z: 2.706E+17

Products of inertia: XY: 1.141E+17

YZ: -2.802E+13

ZX: -1.517E+13

Radii of gyration: X: 65121.633

Y: 35697.045

Z: 74263.658

Principal moments and X-Y-Z directions about centroid:

I: 689522537049.509 along [0.986 0.000 0.165]

J: 1.802E+12 along [0.000 1.000 0.000]

K: 1.811E+12 along [-0.165 0.000 0.986

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...