bitbybit core layer
-
bitbybit.babylon.material.pbrMetallicRoughness.create - exposed emissive color property
-
bitbybit.draw.drawAnyAsync - extended to support drawing vertices. Users can choose vertex colour and size. It is also possible to enable or disable the drawing of vertices on the shape.
There are many methods for creating and interacting with circular edges
-
bitbybit.occt.shape.edge.arcThroughTwoPointsAndTangent - creates an arc edge between two points given the tangent direction for first point.
-
bitbybit.occt.shape.edge.arcFromCircleAndTwoPoints - creates an arc edge between two points that are on the circle. Users need to provide the circle and two points.
-
bitbybit.occt.shape.edge.arcFromCircleAndTwoAngles - creates an arc edge between two alpha angles on the circle. Users need to provide a circle and two alpha angles.
-
bitbybit.occt.shape.edge.arcFromCirclePointAndAngle - creates an arc edge between the point and alpha angles on the circle. Users need to provide a circle, alpha angle and a point.
-
bitbybit.occt.shape.edge.getCircularEdgesAlongWire - gets all circular edges along the wire.
-
bitbybit.occt.shape.edge.getLinearEdgesAlongWire - gets all linear edges along the wire.
-
bitbybit.occt.shape.edge.getCircularEdgeCenterPoint - gets the center point on the circular edge, which can also be an arc.
-
bitbybit.occt.shape.edge.getCircularEdgeRadius - gets the radius of the circular edge, which can also be an arc.
-
bitbybit.occt.shape.edge.getCircularEdgePlaneDirection - gets the direction of the circular edge, which can also be an arc.
Creating edges from various constraints was not really a thing in bitbybit, but with these few methods it becomes possible to achieve some cool circular geometries
-
bitbybit.occt.shape.edge.constraintTanLinesFromTwoPtsToCircle - Creates tangential lines towards the circle from two given points. You can optimize the solutions to include the inner and outer parts of the circle.
-
bitbybit.occt.shape.edge.constraintTanLinesFromPtToCircle - Creates tangential lines towards the circle from one given point. You can optimize the solutions to include the inner and outer parts of the circle.
-
bitbybit.occt.shape.edge.constraintTanLinesOnTwoCircles - Creates tangential lines between the two circles You can optimize the solutions to include the inner and outer parts of the circle and keep the inner or outer solution lines.
Vertex is a native shape type in OCCT, which was not exposed in bitbybit till now. bitbybit.occt.shapes.vertex - new category for vertex type shapes of occt. Vertex is basically a point, but it does work as a shape of opencascade, it means you can combine it to composed shapes, apply transformations and do other cool things with it.
-
bitbybit.occt.shapes.vertex.vertexFromPoint - creates vertex shape from the regular bitbybit point represented by 3 numbers in the array.
-
-
bitbybit.occt.shapes.vertex.verticesFromPoints - creates vertex shapes from the regular bitbybit points array.
-
bitbybit.occt.shapes.vertex.getVerticesAsPoints - gets the vertices from any kind of shape as points. Shapes that are made out of edges have vertices.
-
bitbybit.occt.shapes.vertex.verticesToPoints - transforms vertices to regular bitbybit points represented by 3 numbers in the array
-
bitbybit.occt.shapes.vertex.vertexToPoint - transforms single vertex shape to bitbybit point represented by 3 numbers in the array
-
bitbybit.occt.shapes.vertex.getVertices - gets the vertices from any kind of shape as OCCT Vertex shapes.
-
bitbybit.occt.shapes.vertex.verticesCompoundFromPoints - creates single compound shape consisting of multiple vertices.
Higher level methods on wires will be useful in the future.
-
bitbybit.occt.shapes.wire.createZigZagBetweenTwoWires - creates a zig zag polyline wire between two wires. Each edge on the wires gets divided into given number of segments and those points are joined together into a polyline.
Due to exposed vertex type we now need to be able to get vertices of shapes when transforming shapes to meshes in order to render geometry correctly.
-
bitbybit.occt.shapeToMesh - improved to return vertices as points for visualization purposes