pycatia.smt_interfaces.three_d_cuts¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.smt_interfaces.three_d_cuts.ThreeDCuts(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionThreeDCutsInterface to compute 3D cuts- compute3_d_cut_with_a_reference(group_of_selected_products: Group, i_reference_product: Product, three_d_cut_document: Document) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Compute3DCutWithAReference(GroupGroupOfSelectedProducts,Product iReferenceProduct,Document ThreeDCutDocument)Computes the 3DCut on the selected products, according to a referenceproduct.Parameters:GroupOfSelectedProductsThe selected products on which you want to perform the 3D cut.iReferenceProductProduct taken as a reference.Returns:ThreeDCutDocument: Document containing the result.
- compute_3d_cut(group_of_selected_products: Group, three_d_cut_document: Document) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Compute3DCut(Group GroupOfSelectedProducts,Document ThreeDCutDocument)Computes the 3DCut on the selected products.Parameters:GroupOfSelectedProductsThe selected products on which you want to perform the 3D cut.Returns:ThreeDCutDocument: Document containing the result.
- get_compute_3d_cut(group_of_selected_products: Group) Document ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetCompute3DCut(Group GroupOfSelectedProducts) AsDocumentComputes the 3DCut on the selected products (bettersignature).Parameters:GroupOfSelectedProductsThe selected products on which you want to perform the 3D cut.Returns:ThreeDCutDocument: Document containing the result.
- get_compute_3d_cut_with_a_reference(group_of_selected_products: Group, i_reference_product: Product) Document ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetCompute3DCutWithAReference(GroupGroupOfSelectedProducts,Product iReferenceProduct) As DocumentComputes the 3DCut on the selected products, according to a referenceproduct (better signature).Parameters:GroupOfSelectedProductsThe selected products on which you want to perform the 3D cut.iReferenceProductProduct taken as a reference.Returns:ThreeDCutDocument: Document containing the result.
- set_box(origin_x: float, origin_y: float, origin_z: float, vx: float, vy: float, vz: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetBox(double OriginX,double OriginY,double OriginZ,double VX,double VY,double VZ)Sets the RELATIVE box used for the 3D cut computation.Be aware of the behavior:Vz^_________________/| /|/ / |/ | / |/ / |/—-+———–/ || | || | * | || O | || | | || | || | | || * - - - - - + - -|> Vy| Origin | /| / | /| | //—————-/<VxIn the relative referential, O is (0,0,0)This method sets the RELATIVE box : the rotation and translation matrix will then set the absolute position of O.Remember where the center of the relative referential lies!Can have unexpected results if you don’t use it properly.Parameters:OriginXOrigin coordinate (X)OriginYOrigin coordinate (Y)OriginZOrigin coordinate (Z)VXLength of the box (along X)VYLength of the box (along Y)VZLength of the box (along Z)
- Parameters:
origin_x (float) –
origin_y (float) –
origin_z (float) –
vx (float) –
vy (float) –
vz (float) –
- Return type:
None
- set_matrix(i_components: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetMatrix(CATSafeArrayVariant iComponents)Sets the rotation AND translation matrix.Beware : After a SetBox, the matrix is not changed.Parameters:iComponentsComponents of the 4x4 matrix, placed in rows.
- Parameters:
i_components (tuple) –
- Return type:
None
- set_on_borders(on_borders: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetOnBorders(long OnBorders)Sets the behavior on borders.Parameters:Type0 : We keep partially included triangles1 : We keep entirely included triangles
- Parameters:
on_borders (int) –
- Return type:
None
- set_type(type: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetType(long Type)Sets the type of cut we’re doing.Parameters:Type0 : We keep the inner triangles1 : We keep the outer triangles
- Parameters:
type (int) –
- Return type:
None
- three_d_cut_shape_name(name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ThreeDCutShapeName(CATBSTR Name)Returns the name of the associated shape.
- Parameters:
name (str) –
- Return type:
None