.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Xline is only one direction?

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
joantopo
889 Views, 3 Replies

Xline is only one direction?

Why, with xline (not a ray) I have to create two xline if I want to look for the intersecction (  GetIntersectionWith()  ) for both sides.?

 

For example, If I have a circle and I create a xline with BasePoint in the center, with  GetIntersectionWith() we will get only 1 cross point.

 

I know that we can do:

   xl.UnitDir = vector;

and

xl.UnitDir=vector.negate;

 

But it is the same that create 2 rays. So, what is the benefits of using xline?

 

Thanks in advance.

 

 

 

 

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
3 REPLIES 3
Message 2 of 4
joantopo
in reply to: joantopo

Is not the same this?:

 

              
                Xline LineaAuxiliar = new Xline();
                //LineaAuxiliar.BasePoint = new Point3d(ptBase.X, ptBase.Y, 0);
                //LineaAuxiliar.SecondPoint = new Point3d(segundoPunto.X, segundoPunto.Y, 0);

 

 

than:

 

 Xline LineaAuxiliar = new Xline(); 
Vector3d vector = new Vector3d(segundoPunto.X - ptBase.X, segundoPunto.Y - ptBase.Y, 0);
 LineaAuxiliar.UnitDir = vector;

 I don´t get the same results.Smiley Frustrated

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
Message 3 of 4
joantopo
in reply to: joantopo

UnitDir is always from origin, isn´t it?

 

So, I have to use BasePoint and SecondPoint obligatory.

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
Message 4 of 4
joantopo
in reply to: joantopo

Sorry, I was wrong. 

 

I have fixed the length  to obtain Second point very far from BasePoint.

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost