Search found 101 matches

by stefankorisnik3
Mon Sep 26, 2022 12:02 pm
Forum: Python scripting and macros
Topic: Time complexity of tesselation
Replies: 4
Views: 469

Re: Time complexity of tesselation

Thanks. Can you tell me what OCCT stands for?
by stefankorisnik3
Mon Sep 26, 2022 11:14 am
Forum: Python scripting and macros
Topic: Time complexity of tesselation
Replies: 4
Views: 469

Time complexity of tesselation

How can i find the procedure tesselation or makeLoft in source code to determine what is time complexity
given in bit O notation?
by stefankorisnik3
Wed Sep 14, 2022 10:54 pm
Forum: Python scripting and macros
Topic: Converting shape to mesh time complexity
Replies: 0
Views: 564

Converting shape to mesh time complexity

What is time complexity of converting shape into mesh?
In other words what is time complexity of the triangulation of the shape
by stefankorisnik3
Wed Sep 14, 2022 6:39 pm
Forum: Python scripting and macros
Topic: What is the algorithm behind the function .transform of the mesh?
Replies: 1
Views: 348

What is the algorithm behind the function .transform of the mesh?

Code: Select all

 mat = App.Matrix()
		factor = ratio
		mat.scale(factor,factor,factor)
		meshCopy = mesh.copy()
		meshCopy.transform(mat)
What is the algorithm behind the transform function of the mesh object and what is the time complexity?
by stefankorisnik3
Wed Sep 14, 2022 4:42 pm
Forum: Python scripting and macros
Topic: How to get cross section with BOPTools.SplitFeatures.SplitAPI.slice
Replies: 1
Views: 325

How to get cross section with BOPTools.SplitFeatures.SplitAPI.slice

Having next command: shapes = BOPTools.SplitFeatures.SplitAPI.slice(s, [ps.Shape, pe.Shape], "Standard", 0) where s is the shape and ps and pe are the planes. how to find two cross sections wires? I know how to get the Shells but i need also cross sections. shapes.Shells OS: Windows 10 Ver...
by stefankorisnik3
Wed Sep 14, 2022 4:05 pm
Forum: Python scripting and macros
Topic: Difference between shape and solid
Replies: 0
Views: 496

Difference between shape and solid

Given a shape and solid of one model mesh is it beneficial for some reason to use solid over shape?
For example some geometrical operation like intersection with a plane is it better to be done on the solid or on the shape?
by stefankorisnik3
Wed Sep 14, 2022 3:35 pm
Forum: Python scripting and macros
Topic: [solved] How to use BOPTools.SplitFeatures.SplitAPI.slice?
Replies: 1
Views: 333

Re: How to use BOPTools.SplitFeatures.SplitAPI.slice?

I have been slicing the compound object.
The solution is to first convert the compound object into solid. We can do this in the gui
clicking part -> convert to solid. Then you can slice the solid.
by stefankorisnik3
Wed Sep 14, 2022 3:27 pm
Forum: Python scripting and macros
Topic: [solved] How to use BOPTools.SplitFeatures.SplitAPI.slice?
Replies: 1
Views: 333

[solved] How to use BOPTools.SplitFeatures.SplitAPI.slice?

I have a solid shape and a plane. I want to slice the shape so i have two objects (two splited objects). I have solid shape sh and plane p . I have tried the following but i'm getting CompSolid and in Shells property i have only one object (the whole start model not splited objects): j = BOPTools.Sp...
by stefankorisnik3
Wed Sep 14, 2022 2:39 pm
Forum: Python scripting and macros
Topic: Time complexity of plane intersection with 3D model
Replies: 0
Views: 486

Time complexity of plane intersection with 3D model

Given a plane and 3D model (have solid shape) what is the time complexity given in big O notation?
If the 3D model have n vertices is the time complexity O(n)?
by stefankorisnik3
Tue Sep 13, 2022 12:32 pm
Forum: Python scripting and macros
Topic: How to check if given point is in the closed curve (wire) in one plane or not?
Replies: 14
Views: 3142

Re: How to check if given point is in the closed curve (wire) in one plane or not?

Here is another example that is more relevant.
In the file we can find firstCurve, secondCurve and two points.
I have checked with the method firstCurve.Shape.isInside for that two points but for both i got return value False.